java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8404cc does not exist

Appcelerator JIRA | Michael G | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When I start my titanium apps and put them to background for a long time (e.g. over night) and then start my app again I quiet often get a forced restart. You see the UI for a second and then it restarts. I was able to catch the log: {code} 04-17 12:56:09.490: I/ActivityManager(4386): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.miga.podstars/.PodstarsActivity bnds=[540,870][804,1167] (has extras)} from uid 10055 pid 12269 on display 0 04-17 12:56:09.527: I/ActivityManager(4386): Start proc 25370:com.miga.podstars/u0a172 for activity com.miga.podstars/org.appcelerator.titanium.TiActivity 04-17 12:56:09.542: I/ActivityManager(4386): Start proc 25381:com.google.android.googlequicksearchbox:search/u0a55 for broadcast com.google.android.googlequicksearchbox/com.google.android.apps.gsa.search.core.icingsync.ApplicationLaunchReceiver 04-17 12:56:09.663: D/StatusBarManagerService(4386): setSystemUiVisibility(0x8600) 04-17 12:56:09.663: D/StatusBarManagerService(4386): disable:userId=0 what=0x0 which=0x1 pkg=Window{36a3c9c u0 Starting com.miga.podstars} 04-17 12:56:09.663: D/StatusBarManagerService(4386): hiding MENU key 04-17 12:56:09.744: I/TiApplication(25370): (main) [2,2] checkpoint, app created. 04-17 12:56:09.882: I/TiApplication(25370): (main) [138,140] Titanium 5.1.2 (2015/12/16 19:00 ca822b2) 04-17 12:56:10.018: I/TiApplication(25370): (main) [136,276] Titanium Javascript runtime: v8 04-17 12:56:10.068: W/TiBaseActivity(25370): (main) [50,326] Runtime has been disposed or app has been killed. Finishing. 04-17 12:56:10.115: W/TiApplication(25370): (main) [47,373] Scheduling application restart 04-17 12:56:10.268: W/V8Object(25370): (KrollRuntimeThread) [153,526] Runtime disposed, cannot set property 'userAgent' 04-17 12:56:10.312: I/ActivityManager(4386): Recipient 24757 04-17 12:56:10.622: I/WindowManager(4386): Screenshot max retries 4 of Token{f433e60 ActivityRecord{fa16263 u0 com.miga.podstars/.PodstarsActivity t3924 f}} appWin=Window{3746315 u0 Starting com.miga.podstars} drawState=3 04-17 12:56:10.622: D/ActivityManager(4386): screenshot for ActivityRecord{fa16263 u0 com.miga.podstars/.PodstarsActivity t3924 f}, bitmap=null, time = 301 04-17 12:56:10.752: I/ActivityManager(4386): Recipient 24892 04-17 12:56:10.767: E/InputEventReceiver(4386): Looper::removeFd(210) is failed, result(0), input channel '3746315 Starting com.miga.podstars (client)' 04-17 12:56:10.777: W/WindowManager(4386): Failed looking up window 04-17 12:56:10.777: W/WindowManager(4386): java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8404cc does not exist 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8975) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8966) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2755) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.Session.remove(Session.java:187) 04-17 12:56:10.777: W/WindowManager(4386): at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3244) 04-17 12:56:10.777: W/WindowManager(4386): at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5821) 04-17 12:56:10.777: W/WindowManager(4386): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3576) 04-17 12:56:10.777: W/WindowManager(4386): at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 12:56:10.777: W/WindowManager(4386): at android.os.Looper.loop(Looper.java:168) 04-17 12:56:10.777: W/WindowManager(4386): at android.os.HandlerThread.run(HandlerThread.java:61) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.ServiceThread.run(ServiceThread.java:46) 04-17 12:56:11.213: W/OpenGLRenderer(12269): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 04-17 12:56:11.214: W/OpenGLRenderer(12269): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 04-17 12:56:11.675: I/RecentsTaskLoadPlan(5504): icon(3924,144,144) 04-17 12:56:11.676: D/ActivityManager(4386): getTaskThumbnailLocked mainThumbnail is null, TaskRecord{b93f082 #3924 A=com.miga.podstars U=0 sz=0} 04-17 12:56:15.764: I/ActivityManager(4386): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x4 cmp=com.miga.podstars/.PodstarsActivity (has extras)} from uid 10172 pid -1 on display 0 04-17 12:56:15.765: W/ActivityManager(4386): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x4 cmp=com.miga.podstars/.PodstarsActivity (has extras) } 04-17 12:56:15.773: V/AlarmManager(4386): sending alarm PendingIntent{ac33e7: PendingIntentRecord{cccab94 com.miga.podstars startActivity}}, i=android.intent.action.MAIN, t=1, cnt=1, w=1460890570762, Int=0 04-17 12:56:15.784: I/TiRootActivity(25370): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null 04-17 12:56:15.785: I/TiApplication(25370): (main) [1,1] Analytics have been disabled 04-17 12:56:15.926: D/Module(25370): Loading module: alloy -> Resources/alloy.js 04-17 12:56:15.941: D/Module(25370): Loading module: alloy/underscore -> Resources/alloy/underscore.js 04-17 12:56:16.018: D/Module(25370): Loading module: alloy/backbone -> Resources/alloy/backbone.js 04-17 12:56:16.056: D/Module(25370): Loading module: alloy/constants -> Resources/alloy/constants.js 04-17 12:56:16.076: D/Module(25370): Loading module: alloy/CFG -> Resources/alloy/CFG.js 04-17 12:56:16.078: D/Module(25370): Loading module: alloy/controllers/index -> Resources/alloy/controllers/index.js 04-17 12:56:16.089: D/Module(25370): Loading module: alloy/controllers/BaseController -> Resources/alloy/controllers/BaseController.js 04-17 12:56:16.114: D/Module(25370): Loading module: alloy/styles/index -> Resources/alloy/styles/index.js 04-17 12:56:16.174: I/ActivityManager(4386): START u0 {cmp=com.miga.podstars/org.appcelerator.titanium.TiActivity (has extras)} from uid 10172 pid 25370 on display 0 04-17 12:56:16.268: I/TiRootActivity(25370): (main) [0,0] checkpoint, on root activity resume. activity = com.miga.podstars.PodstarsActivity@c04b27d 04-17 12:56:16.363: W/TiUIScrollView(25370): (main) [95,95] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction. 04-17 12:56:16.383: W/TiUICardView(25370): (main) [20,115] The cardCornerRadius property is deprecated, use borderRadius instead. 04-17 12:56:16.384: W/TiUICardView(25370): (main) [1,116] The cardUseCompatPadding property is deprecated, use useCompatPadding instead. 04-17 12:56:16.385: W/TiUICardView(25370): (main) [1,117] The contentPadding property is deprecated, use padding instead. 04-17 12:56:16.405: W/TiUICardView(25370): (main) [20,137] The cardCornerRadius property is deprecated, use borderRadius instead. 04-17 12:56:16.405: W/TiUICardView(25370): (main) [0,137] The cardUseCompatPadding property is deprecated, use useCompatPadding instead. 04-17 12:56:16.406: W/TiUICardView(25370): (main) [1,138] The contentPadding property is deprecated, use padding instead. 04-17 12:56:16.412: D/Window(25370): Checkpoint: postWindowCreated() ....normal app start..... {code} The issue was mentioned in this post already but I think an own issue wasn't created: https://jira.appcelerator.org/browse/TIMOB-17016?focusedCommentId=321321&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-321321 It is not happening all the time but even with 5.2.2.GA I can reproduce it after a while. Android 6.0.1 (HTC A9) Android 5.1.1 (Nexus 4)

    Appcelerator JIRA | 1 year ago | Michael G
    java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8404cc does not exist
  2. 0

    When I start my titanium apps and put them to background for a long time (e.g. over night) and then start my app again I quiet often get a forced restart. You see the UI for a second and then it restarts. I was able to catch the log: {code} 04-17 12:56:09.490: I/ActivityManager(4386): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.miga.podstars/.PodstarsActivity bnds=[540,870][804,1167] (has extras)} from uid 10055 pid 12269 on display 0 04-17 12:56:09.527: I/ActivityManager(4386): Start proc 25370:com.miga.podstars/u0a172 for activity com.miga.podstars/org.appcelerator.titanium.TiActivity 04-17 12:56:09.542: I/ActivityManager(4386): Start proc 25381:com.google.android.googlequicksearchbox:search/u0a55 for broadcast com.google.android.googlequicksearchbox/com.google.android.apps.gsa.search.core.icingsync.ApplicationLaunchReceiver 04-17 12:56:09.663: D/StatusBarManagerService(4386): setSystemUiVisibility(0x8600) 04-17 12:56:09.663: D/StatusBarManagerService(4386): disable:userId=0 what=0x0 which=0x1 pkg=Window{36a3c9c u0 Starting com.miga.podstars} 04-17 12:56:09.663: D/StatusBarManagerService(4386): hiding MENU key 04-17 12:56:09.744: I/TiApplication(25370): (main) [2,2] checkpoint, app created. 04-17 12:56:09.882: I/TiApplication(25370): (main) [138,140] Titanium 5.1.2 (2015/12/16 19:00 ca822b2) 04-17 12:56:10.018: I/TiApplication(25370): (main) [136,276] Titanium Javascript runtime: v8 04-17 12:56:10.068: W/TiBaseActivity(25370): (main) [50,326] Runtime has been disposed or app has been killed. Finishing. 04-17 12:56:10.115: W/TiApplication(25370): (main) [47,373] Scheduling application restart 04-17 12:56:10.268: W/V8Object(25370): (KrollRuntimeThread) [153,526] Runtime disposed, cannot set property 'userAgent' 04-17 12:56:10.312: I/ActivityManager(4386): Recipient 24757 04-17 12:56:10.622: I/WindowManager(4386): Screenshot max retries 4 of Token{f433e60 ActivityRecord{fa16263 u0 com.miga.podstars/.PodstarsActivity t3924 f}} appWin=Window{3746315 u0 Starting com.miga.podstars} drawState=3 04-17 12:56:10.622: D/ActivityManager(4386): screenshot for ActivityRecord{fa16263 u0 com.miga.podstars/.PodstarsActivity t3924 f}, bitmap=null, time = 301 04-17 12:56:10.752: I/ActivityManager(4386): Recipient 24892 04-17 12:56:10.767: E/InputEventReceiver(4386): Looper::removeFd(210) is failed, result(0), input channel '3746315 Starting com.miga.podstars (client)' 04-17 12:56:10.777: W/WindowManager(4386): Failed looking up window 04-17 12:56:10.777: W/WindowManager(4386): java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8404cc does not exist 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8975) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8966) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2755) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.wm.Session.remove(Session.java:187) 04-17 12:56:10.777: W/WindowManager(4386): at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3244) 04-17 12:56:10.777: W/WindowManager(4386): at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5821) 04-17 12:56:10.777: W/WindowManager(4386): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3576) 04-17 12:56:10.777: W/WindowManager(4386): at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 12:56:10.777: W/WindowManager(4386): at android.os.Looper.loop(Looper.java:168) 04-17 12:56:10.777: W/WindowManager(4386): at android.os.HandlerThread.run(HandlerThread.java:61) 04-17 12:56:10.777: W/WindowManager(4386): at com.android.server.ServiceThread.run(ServiceThread.java:46) 04-17 12:56:11.213: W/OpenGLRenderer(12269): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 04-17 12:56:11.214: W/OpenGLRenderer(12269): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 04-17 12:56:11.675: I/RecentsTaskLoadPlan(5504): icon(3924,144,144) 04-17 12:56:11.676: D/ActivityManager(4386): getTaskThumbnailLocked mainThumbnail is null, TaskRecord{b93f082 #3924 A=com.miga.podstars U=0 sz=0} 04-17 12:56:15.764: I/ActivityManager(4386): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x4 cmp=com.miga.podstars/.PodstarsActivity (has extras)} from uid 10172 pid -1 on display 0 04-17 12:56:15.765: W/ActivityManager(4386): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x4 cmp=com.miga.podstars/.PodstarsActivity (has extras) } 04-17 12:56:15.773: V/AlarmManager(4386): sending alarm PendingIntent{ac33e7: PendingIntentRecord{cccab94 com.miga.podstars startActivity}}, i=android.intent.action.MAIN, t=1, cnt=1, w=1460890570762, Int=0 04-17 12:56:15.784: I/TiRootActivity(25370): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null 04-17 12:56:15.785: I/TiApplication(25370): (main) [1,1] Analytics have been disabled 04-17 12:56:15.926: D/Module(25370): Loading module: alloy -> Resources/alloy.js 04-17 12:56:15.941: D/Module(25370): Loading module: alloy/underscore -> Resources/alloy/underscore.js 04-17 12:56:16.018: D/Module(25370): Loading module: alloy/backbone -> Resources/alloy/backbone.js 04-17 12:56:16.056: D/Module(25370): Loading module: alloy/constants -> Resources/alloy/constants.js 04-17 12:56:16.076: D/Module(25370): Loading module: alloy/CFG -> Resources/alloy/CFG.js 04-17 12:56:16.078: D/Module(25370): Loading module: alloy/controllers/index -> Resources/alloy/controllers/index.js 04-17 12:56:16.089: D/Module(25370): Loading module: alloy/controllers/BaseController -> Resources/alloy/controllers/BaseController.js 04-17 12:56:16.114: D/Module(25370): Loading module: alloy/styles/index -> Resources/alloy/styles/index.js 04-17 12:56:16.174: I/ActivityManager(4386): START u0 {cmp=com.miga.podstars/org.appcelerator.titanium.TiActivity (has extras)} from uid 10172 pid 25370 on display 0 04-17 12:56:16.268: I/TiRootActivity(25370): (main) [0,0] checkpoint, on root activity resume. activity = com.miga.podstars.PodstarsActivity@c04b27d 04-17 12:56:16.363: W/TiUIScrollView(25370): (main) [95,95] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction. 04-17 12:56:16.383: W/TiUICardView(25370): (main) [20,115] The cardCornerRadius property is deprecated, use borderRadius instead. 04-17 12:56:16.384: W/TiUICardView(25370): (main) [1,116] The cardUseCompatPadding property is deprecated, use useCompatPadding instead. 04-17 12:56:16.385: W/TiUICardView(25370): (main) [1,117] The contentPadding property is deprecated, use padding instead. 04-17 12:56:16.405: W/TiUICardView(25370): (main) [20,137] The cardCornerRadius property is deprecated, use borderRadius instead. 04-17 12:56:16.405: W/TiUICardView(25370): (main) [0,137] The cardUseCompatPadding property is deprecated, use useCompatPadding instead. 04-17 12:56:16.406: W/TiUICardView(25370): (main) [1,138] The contentPadding property is deprecated, use padding instead. 04-17 12:56:16.412: D/Window(25370): Checkpoint: postWindowCreated() ....normal app start..... {code} The issue was mentioned in this post already but I think an own issue wasn't created: https://jira.appcelerator.org/browse/TIMOB-17016?focusedCommentId=321321&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-321321 It is not happening all the time but even with 5.2.2.GA I can reproduce it after a while. Android 6.0.1 (HTC A9) Android 5.1.1 (Nexus 4)

    Appcelerator JIRA | 1 year ago | Michael G
    java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8404cc does not exist
  3. 0

    Android wallet crashes on start (small delay before crash)

    GitHub | 2 years ago | kobocoin
    java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@1a0a87af does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 68#222506662

    GitHub | 11 months ago | Evg33
    java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@2412139c does not exist
  6. 0

    [LP] Sometimes app crashes after update without reboot

    GitHub | 2 years ago | DavisNT
    java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@3e2ab333 does not exist

  1. Adrien 64 times, last 3 months ago
  2. Reich 33 times, last 3 months ago
  3. gamebusterz 28 times, last 1 month ago
  4. malhobayyeb 1 times, last 5 months ago
  5. dealloc 3 times, last 5 months ago
60 more registered users
9 unregistered visitors
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. java.lang.IllegalArgumentException

    Requested window android.view.ViewRootImpl$W@8404cc does not exist

    at com.android.server.wm.WindowManagerService.windowForClientLocked()
  2. Android
    Session.remove
    1. com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8975)
    2. com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8966)
    3. com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2755)
    4. com.android.server.wm.Session.remove(Session.java:187)
    4 frames
  3. Android Platform
    HandlerThread.run
    1. android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3244)
    2. android.view.ViewRootImpl.doDie(ViewRootImpl.java:5821)
    3. android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3576)
    4. android.os.Handler.dispatchMessage(Handler.java:102)
    5. android.os.Looper.loop(Looper.java:168)
    6. android.os.HandlerThread.run(HandlerThread.java:61)
    6 frames
  4. Android
    ServiceThread.run
    1. com.android.server.ServiceThread.run(ServiceThread.java:46)
    1 frame