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

Crash report "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?" #777

Closed
K1rakishou opened this issue Feb 29, 2020 · 2 comments · Fixed by #805
Labels
bug Something isn't working report/crash report Report made via the in-app reporter (auto or manual)

Comments

@K1rakishou
Copy link

UUID: 714ef788e54162b6c68cc226f034402e
Build flavor: stable
Version name: v4.11.2
OS info: Android 9, sdk version: 28
Report description: No title
Logs:

=== LOGS(2020-02-29 19:05:17 UTC) ===
I/Kuroba | FilterWatchManager: Processing filter loaders, started at 20:05:15
E/Kuroba | UNCAUGHT: Called from unhandled exception handler.
E/Kuroba | UNCAUGHT: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
E/Kuroba | UNCAUGHT: 	at android.view.ViewRootImpl.setView(ViewRootImpl.java:844)
E/Kuroba | UNCAUGHT: 	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356)
E/Kuroba | UNCAUGHT: 	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
E/Kuroba | UNCAUGHT: 	at android.widget.PopupWindow.invokePopup(PopupWindow.java:1434)
E/Kuroba | UNCAUGHT: 	at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:1284)
E/Kuroba | UNCAUGHT: 	at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:1240)
E/Kuroba | UNCAUGHT: 	at com.github.adamantcheese.chan.ui.helper.HintPopup.lambda$show$2$HintPopup(HintPopup.java:101)
E/Kuroba | UNCAUGHT: 	at com.github.adamantcheese.chan.ui.helper.-$$Lambda$HintPopup$hBi4QFp2ri6_Ly0bfOG6CowvOtw.run(Unknown Source:2)
E/Kuroba | UNCAUGHT: 	at android.os.Handler.handleCallback(Handler.java:873)
E/Kuroba | UNCAUGHT: 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/Kuroba | UNCAUGHT: 	at android.os.Looper.loop(Looper.java:201)
E/Kuroba | UNCAUGHT: 	at android.app.ActivityThread.main(ActivityThread.java:6831)
E/Kuroba | UNCAUGHT: 	at java.lang.reflect.Method.invoke(Native Method)
E/Kuroba | UNCAUGHT: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
E/Kuroba | UNCAUGHT: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)
E/Kuroba | UNCAUGHT: ------------------------------
E/Kuroba | UNCAUGHT: END OF CURRENT RUNTIME MESSAGES
E/Kuroba | UNCAUGHT: ------------------------------
E/Kuroba | UNCAUGHT: Android API Level: 28
E/Kuroba | UNCAUGHT: App Version: v4.11.2
E/Kuroba | UNCAUGHT: Development Build: No
E/Kuroba | UNCAUGHT: Phone Model: Xiaomi Redmi Note 8 Pro


=== SETTINGS ===
Prefetching enabled: false
Thread downloading enabled: true, active downloads = 0
Hi-res thumbnails enabled: false
Youtube titles parsing enabled: true
Youtube durations parsing enabled: false
Concurrent file loading chunks count: 2
WEBM streaming enabled: false
Saved files base dir info: Java API location: /storage/emulated/0/Kuroba/files, SAF location: , active: Java API
Local threads base dir info: Java API location: /storage/emulated/0/Kuroba/saved_threads, SAF location: , active: Java API
Phone layout mode: AUTO
@K1rakishou K1rakishou added bug Something isn't working report/crash report Report made via the in-app reporter (auto or manual) labels Feb 29, 2020
@K1rakishou
Copy link
Author

This stupid shit still keeps happening. I had it happen to me too today, on the emulator.

@K1rakishou
Copy link
Author

Still keeps happening. I think we need just wrap that one call into a try/catch and ignore it.

Adamantcheese added a commit that referenced this issue Mar 7, 2020
…o-fix-popup-exception

(#777) Yet another check to (hopefully) fix stupid popup window exceptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working report/crash report Report made via the in-app reporter (auto or manual)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant