android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java)

NEW
Unassigned

Status

()

Firefox for Android
General
--
critical
6 years ago
3 years ago

People

(Reporter: Scoobidiver (away), Unassigned)

Tracking

({crash})

Trunk
ARM
Android
crash
Points:
---

Firefox Tracking Flags

(firefox17 affected, firefox18 affected, firefox20 affected)

Details

(Whiteboard: [native-crash][startupcrash], crash signature)

(Reporter)

Description

6 years ago
It's similar to bug 759304 but with a slightly different crash signature (ViewRootImpl.java instead of ViewRoot.java) and stack trace (showAsDropDown instead of showAtLocation).

There are 83 crashes in 17.0, 7 in 18.0 Beta and one in 20.0a1/20121212, bp-f5996ede-1e35-49a2-8407-77a742121212.

android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
	at android.view.ViewRootImpl.setView(ViewRootImpl.java:513)
	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:317)
	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:231)
	at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:142)
	at android.view.Window$LocalWindowManager.addView(Window.java:537)
	at android.widget.PopupWindow.invokePopup(PopupWindow.java:988)
	at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:897)
	at org.mozilla.gecko.DoorHangerPopup.updatePopup(DoorHangerPopup.java:273)
	at org.mozilla.gecko.DoorHangerPopup.addDoorHanger(DoorHangerPopup.java:176)
	at org.mozilla.gecko.DoorHangerPopup$1.run(DoorHangerPopup.java:77)
	at android.os.Handler.handleCallback(Handler.java:605)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:4429)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
	at dalvik.system.NativeStart.main(Native Method)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=android.view.WindowManager%24BadTokenException%3A+Unable+to+add+window+--+token+null+is+not+valid%3B+is+your+activity+running%3F+at+android.view.ViewRootImpl.setView%28ViewRootImpl.java%29
(Reporter)

Updated

6 years ago
Whiteboard: [native-crash] → [native-crash][startupcrash]

Updated

3 years ago
Crash Signature: [@ android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java)] → [@ android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java)] [@ android.view.WindowManager$BadTokenException: Unable to add window -- …
You need to log in before you can comment on or make changes to this bug.