android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running?

Apereo Issues | Jeff Cross | 5 years ago
  1. 0

    Known issue with Titanium, with open ticket. Will experiment with workarounds: Ticket: http://jira.appcelerator.org/browse/TIMOB-4357 QA: http://developer.appcelerator.com/question/120635/android-webview-crashes----theyre-not-your-fault Log with stack trace: 06-28 10:45:55.856: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [4226,470912] onPortletLoad() in PortletWindowController, index: 0 06-28 10:45:55.856: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [0,470912] Visiting a portal link 06-28 10:45:55.956: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [100,471012] onSessionActivity() in SessionProxy 06-28 10:45:55.956: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [1,471013] Resetting Webview session 06-28 10:45:55.966: INFO/TiAPI(6128): (kroll$1: app://app.js) [1,471014] Reset the timer for: Webview & timer= 7200000 06-28 10:45:55.966: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [1,471015] counter variable defined, clearing timeout 06-28 10:45:57.387: WARN/WindowManager(169): Failed looking up window 06-28 10:45:57.387: WARN/WindowManager(169): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@40ced140 does not exist 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8177) 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService.addWindow(WindowManagerService.java:1813) 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService$Session.add(WindowManagerService.java:5660) 06-28 10:45:57.387: WARN/WindowManager(169): at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:68) 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService$Session.onTransact(WindowManagerService.java:5632) 06-28 10:45:57.387: WARN/WindowManager(169): at android.os.Binder.execTransact(Binder.java:320) 06-28 10:45:57.387: WARN/WindowManager(169): at dalvik.system.NativeStart.run(Native Method) 06-28 10:45:57.387: WARN/WindowManager(169): Attempted to add window with token that is not a window: android.os.BinderProxy@40ced140. Aborting. 06-28 10:45:57.397: DEBUG/AndroidRuntime(6128): Shutting down VM 06-28 10:45:57.397: WARN/dalvikvm(6128): threadid=1: thread exiting with uncaught exception (group=0x402c6560) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): (main) [1431,472446] Sending event: exception on thread: main msg:android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running?; Titanium 1.7.0,2011/05/17 23:06,41eefd... 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running? 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewRoot.setView(ViewRoot.java:527) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.Window$LocalWindowManager.addView(Window.java:465) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:370) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.webkit.WebView.startDrag(WebView.java:5624) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.webkit.WebView.onTouchEvent(WebView.java:5355) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.View.dispatchTouchEvent(View.java:3901) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1714) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1130) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.app.Activity.dispatchTouchEvent(Activity.java:2096) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1698) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2195) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewRoot.handleMessage(ViewRoot.java:1879) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.os.Looper.loop(Looper.java:123) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.app.ActivityThread.main(ActivityThread.java:3835) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at dalvik.system.NativeStart.main(Native Method) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): FATAL EXCEPTION: main 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running? 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewRoot.setView(ViewRoot.java:527) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.Window$LocalWindowManager.addView(Window.java:465) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:370) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.webkit.WebView.startDrag(WebView.java:5624) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.webkit.WebView.onTouchEvent(WebView.java:5355) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.View.dispatchTouchEvent(View.java:3901) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1714) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1130) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.app.Activity.dispatchTouchEvent(Activity.java:2096) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1698) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2195) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewRoot.handleMessage(ViewRoot.java:1879) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.os.Looper.loop(Looper.java:123) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.app.ActivityThread.main(ActivityThread.java:3835) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at dalvik.system.NativeStart.main(Native Method) 06-28 10:45:57.417: WARN/ActivityManager(169): Force finishing activity org.jasig.portal.mobile.app/org.appcelerator.titanium.TiActivity 06-28 10:45:57.918: WARN/ActivityManager(169): Activity pause timeout for HistoryRecord{40a3d368 org.jasig.portal.mobile.app/org.appcelerator.titanium.TiActivity} 06-28 10:45:59.920: INFO/TelephonyRegistry(169): notifyServiceState: 0 home Sprint Sprint 31000 EvDo rev. A CSS supported 2 4170RoamInd: 128DefRoamInd: 1EmergOnly: false 06-28 10:46:02.452: INFO/InputDispatcher(169): Application is not responding: Window{40bf7858 org.jasig.portal.mobile.app/org.appcelerator.titanium.TiActivity paused=false}. 5004.3ms since event, 5004.2ms since wait started

    Apereo Issues | 5 years ago | Jeff Cross
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running?
  2. 0

    Known issue with Titanium, with open ticket. Will experiment with workarounds: Ticket: http://jira.appcelerator.org/browse/TIMOB-4357 QA: http://developer.appcelerator.com/question/120635/android-webview-crashes----theyre-not-your-fault Log with stack trace: 06-28 10:45:55.856: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [4226,470912] onPortletLoad() in PortletWindowController, index: 0 06-28 10:45:55.856: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [0,470912] Visiting a portal link 06-28 10:45:55.956: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [100,471012] onSessionActivity() in SessionProxy 06-28 10:45:55.956: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [1,471013] Resetting Webview session 06-28 10:45:55.966: INFO/TiAPI(6128): (kroll$1: app://app.js) [1,471014] Reset the timer for: Webview & timer= 7200000 06-28 10:45:55.966: DEBUG/TiAPI(6128): (kroll$1: app://app.js) [1,471015] counter variable defined, clearing timeout 06-28 10:45:57.387: WARN/WindowManager(169): Failed looking up window 06-28 10:45:57.387: WARN/WindowManager(169): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@40ced140 does not exist 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8177) 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService.addWindow(WindowManagerService.java:1813) 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService$Session.add(WindowManagerService.java:5660) 06-28 10:45:57.387: WARN/WindowManager(169): at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:68) 06-28 10:45:57.387: WARN/WindowManager(169): at com.android.server.WindowManagerService$Session.onTransact(WindowManagerService.java:5632) 06-28 10:45:57.387: WARN/WindowManager(169): at android.os.Binder.execTransact(Binder.java:320) 06-28 10:45:57.387: WARN/WindowManager(169): at dalvik.system.NativeStart.run(Native Method) 06-28 10:45:57.387: WARN/WindowManager(169): Attempted to add window with token that is not a window: android.os.BinderProxy@40ced140. Aborting. 06-28 10:45:57.397: DEBUG/AndroidRuntime(6128): Shutting down VM 06-28 10:45:57.397: WARN/dalvikvm(6128): threadid=1: thread exiting with uncaught exception (group=0x402c6560) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): (main) [1431,472446] Sending event: exception on thread: main msg:android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running?; Titanium 1.7.0,2011/05/17 23:06,41eefd... 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running? 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewRoot.setView(ViewRoot.java:527) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.Window$LocalWindowManager.addView(Window.java:465) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:370) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.webkit.WebView.startDrag(WebView.java:5624) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.webkit.WebView.onTouchEvent(WebView.java:5355) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.View.dispatchTouchEvent(View.java:3901) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1714) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1130) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.app.Activity.dispatchTouchEvent(Activity.java:2096) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1698) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2195) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.view.ViewRoot.handleMessage(ViewRoot.java:1879) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.os.Looper.loop(Looper.java:123) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at android.app.ActivityThread.main(ActivityThread.java:3835) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 06-28 10:45:57.397: ERROR/TiUncaughtHandler(6128): at dalvik.system.NativeStart.main(Native Method) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): FATAL EXCEPTION: main 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running? 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewRoot.setView(ViewRoot.java:527) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.Window$LocalWindowManager.addView(Window.java:465) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:370) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.webkit.WebView.startDrag(WebView.java:5624) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.webkit.WebView.onTouchEvent(WebView.java:5355) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.View.dispatchTouchEvent(View.java:3901) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1714) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1130) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.app.Activity.dispatchTouchEvent(Activity.java:2096) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1698) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2195) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.view.ViewRoot.handleMessage(ViewRoot.java:1879) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.os.Looper.loop(Looper.java:123) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at android.app.ActivityThread.main(ActivityThread.java:3835) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 06-28 10:45:57.407: ERROR/AndroidRuntime(6128): at dalvik.system.NativeStart.main(Native Method) 06-28 10:45:57.417: WARN/ActivityManager(169): Force finishing activity org.jasig.portal.mobile.app/org.appcelerator.titanium.TiActivity 06-28 10:45:57.918: WARN/ActivityManager(169): Activity pause timeout for HistoryRecord{40a3d368 org.jasig.portal.mobile.app/org.appcelerator.titanium.TiActivity} 06-28 10:45:59.920: INFO/TelephonyRegistry(169): notifyServiceState: 0 home Sprint Sprint 31000 EvDo rev. A CSS supported 2 4170RoamInd: 128DefRoamInd: 1EmergOnly: false 06-28 10:46:02.452: INFO/InputDispatcher(169): Application is not responding: Window{40bf7858 org.jasig.portal.mobile.app/org.appcelerator.titanium.TiActivity paused=false}. 5004.3ms since event, 5004.2ms since wait started

    Apereo Issues | 5 years ago | Jeff Cross
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running?
  3. 0

    Issue 15694 - android - Receiver not registered: android.widget.ZoomButtonsController crash - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 6 months ago
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRoot$W@407f8368 is not valid; is your activity running?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Strange Behavior - VideoViewer Fragment not working with MediaController

    Stack Overflow | 5 years ago | 500865
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
  6. 0

    How to fix the BadTokenException error in android??

    Stack Overflow | 5 years ago | Prachi
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@62668448 is not valid; is your activity running?

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. android.view.WindowManager$BadTokenException

      Unable to add window -- token android.view.ViewRoot$W@40a8f0f0 is not valid; is your activity running?

      at android.view.ViewRoot.setView()
    2. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.ViewRoot.setView(ViewRoot.java:527)
      2. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
      3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
      4. android.view.Window$LocalWindowManager.addView(Window.java:465)
      5. android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:370)
      6. android.webkit.WebView.startDrag(WebView.java:5624)
      7. android.webkit.WebView.onTouchEvent(WebView.java:5355)
      8. android.view.View.dispatchTouchEvent(View.java:3901)
      9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903)
      10. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
      11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
      12. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
      12 frames
    3. Android
      PhoneWindow.superDispatchTouchEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1714)
      2. com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1130)
      2 frames
    4. Android Platform
      Activity.dispatchTouchEvent
      1. android.app.Activity.dispatchTouchEvent(Activity.java:2096)
      1 frame
    5. Android
      PhoneWindow$DecorView.dispatchTouchEvent
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1698)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2195)
      2. android.view.ViewRoot.handleMessage(ViewRoot.java:1879)
      3. android.os.Handler.dispatchMessage(Handler.java:99)
      4. android.os.Looper.loop(Looper.java:123)
      5. android.app.ActivityThread.main(ActivityThread.java:3835)
      5 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:507)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
      2 frames
    9. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame