Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #2755

Open
1 task done
santo998 opened this issue Jan 29, 2025 · 2 comments
Open
1 task done

[BUG] #2755

santo998 opened this issue Jan 29, 2025 · 2 comments
Labels

Comments

@santo998
Copy link

Checks

  • I have read the FAQ section, searched the open issues, and still think this is a new bug.

Describe the bug you encountered:

After logging into ChatGPT Android app (which uses a webview to login), I pressed on TOTP and KeePass2Android stopped working.

Here are the logs I got using the command:
adb logcat --buffer=crash

01-27 22:05:00.381 29225 29225 E AndroidRuntime: FATAL EXCEPTION: main
01-27 22:05:00.381 29225 29225 E AndroidRuntime: Process: keepass2android.keepass2android, PID: 29225
01-27 22:05:00.381 29225 29225 E AndroidRuntime: android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@ce6d25 is not valid; is your activity running?
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl.setView(ViewRootImpl.java:1002)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:384)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:101)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.app.Dialog.show(Dialog.java:430)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.KP2AKeyboard.showKp2aDialog(KP2AKeyboard.java:1615)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.KP2AKeyboard.onKp2aKeyPressed(KP2AKeyboard.java:1469)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.KP2AKeyboard.onKey(KP2AKeyboard.java:1288)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.PointerTracker.detectAndSendKey(PointerTracker.java:515)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.PointerTracker.onUpEvent(PointerTracker.java:384)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.LatinKeyboardBaseView.onUpEvent(LatinKeyboardBaseView.java:1450)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.LatinKeyboardBaseView.onTouchEvent(LatinKeyboardBaseView.java:1415)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at keepass2android.softkeyboard.LatinKeyboardView.onTouchEvent(LatinKeyboardView.java:250)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.View.dispatchTouchEvent(View.java:12632)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3172)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2857)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3172)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2857)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3172)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2857)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3172)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2857)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3172)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2857)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:615)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1879)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.app.Dialog.dispatchTouchEvent(Dialog.java:935)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.inputmethodservice.SoftInputWindow.dispatchTouchEvent(SoftInputWindow.java:147)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:577)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.View.dispatchPointerEvent(View.java:12880)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5863)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5658)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5151)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5204)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5170)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5307)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5178)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5364)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5151)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5204)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5170)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5178)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5151)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7981)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7921)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7882)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8092)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:198)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.os.MessageQueue.nativePollOnce(Native Method)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.os.MessageQueue.next(MessageQueue.java:325)
01-27 22:05:00.381 29225 29225 E AndroidRuntime: at android.os.Looper.loop(Looper.java:142)
01-27 22:05:00.382 29225 29225 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7000)
01-27 22:05:00.382 29225 29225 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-27 22:05:00.382 29225 29225 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
01-27 22:05:00.382 29225 29225 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

Describe what you expected to happen:

No response

What version of Keepass2Android are you using?

1.11-r0

Which version of Android are you on?

8.1

@santo998 santo998 added the bug label Jan 29, 2025
@PhilippC
Copy link
Owner

a few questions:

  • is this reproducible? (I guess it is because you were able to record the logcat)
  • after this crash, you can restart the app and use it normally again, right?
  • when you pressed the TOTP button (on the keyboard?), what was the current screen? Was any text view focused?

@santo998
Copy link
Author

@PhilippC

is this reproducible? (I guess it is because you were able to record the logcat)

I didn't "record". I just got the logs using adb hours after the bug happened.

I tried to reproduce it multiple times right now, but I couldn't.

after this crash, you can restart the app and use it normally again, right?

Yes, after the crash I could log in using the app again.

when you pressed the TOTP button (on the keyboard?), what was the current screen? Was any text view focused?

I don't remember. All I know is:

I logged out and then logged in ChatGPT app. It uses webview inside the app as login, so anything could happen.

When login, it opens a webview (inside app window) and after login it redirects you to the app again.

I'm using Firefox, so when redirecting to the app it asks for permission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants