java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

Appcelerator JIRA | Paras Mishra | 3 years ago
  1. 0

    Android: ActionBar: setNavigationMode() crashes the app This is regression.It works fine with 3.2.3.GA SDK Steps to reproduce: 1. Run the app attached app TIMOB-13135.zip 2. Tap on button "open childWin(same activity)". 3. Tap on button "show the tabs". Expected: Tabs should be shown Actual: App crashes, logs are as follows {code} [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41e88ba8) [ERROR] : TiApplication: (main) [246940,246940] Sending event: exception on thread: main msg:java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState; Titanium 3.3.0,2014/06/05 15:06,708f5ce [ERROR] : TiApplication: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState [ERROR] : TiApplication: at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1354) [ERROR] : TiApplication: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1372) [ERROR] : TiApplication: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595) [ERROR] : TiApplication: at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574) [ERROR] : TiApplication: at android.support.v7.app.ActionBarImplICS.commitActiveTransaction(ActionBarImplICS.java:378) [ERROR] : TiApplication: at android.support.v7.app.ActionBarImplICS$TabWrapper.onTabSelected(ActionBarImplICS.java:559) [ERROR] : TiApplication: at com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:577) [ERROR] : TiApplication: at com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:363) [ERROR] : TiApplication: at com.android.internal.app.ActionBarImpl.setNavigationMode(ActionBarImpl.java:1196) [ERROR] : TiApplication: at android.support.v7.app.ActionBarImplICS.setNavigationMode(ActionBarImplICS.java:229) [ERROR] : TiApplication: at android.support.v7.app.ActionBarImplJB.setNavigationMode(ActionBarImplJB.java:20) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handlesetNavigationMode(ActionBarProxy.java:321) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:352) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:136) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5017) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:515) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code}

    Appcelerator JIRA | 3 years ago | Paras Mishra
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  2. 0

    h5.This is a regression. It works fine with 3.2.3.GA. h5.Description: 1. Use the code from https://jira.appcelerator.org/browse/TIMOB-13135. 2. Make sure you use the legacy window property as the test code uses light weight window. {code} <property name="ti.android.useLegacyWindow" type="bool">true</property> {code} 2. Build the app for android device 4.4 & android 2.3.7. 3. After the app launches, tap on "Open childWin(same activity). 4. Tap on "Show the tabs". h5.Actual Result: 1. We get errors below and the app crashes. Nexus 5 - android 4.4: {code} [ERROR] : [Nexus 5] TiApplication: (main) [4820,4820] Sending event: exception on thread: main msg:java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState; Titanium 3.3.0,2014/06/27 14:25,ca2a035 [ERROR] : [Nexus 5] TiApplication: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1354) [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1372) [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595) [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplICS.commitActiveTransaction(ActionBarImplICS.java:378) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplICS$TabWrapper.onTabSelected(ActionBarImplICS.java:559) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:577) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:363) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.app.ActionBarImpl.setNavigationMode(ActionBarImpl.java:1196) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplICS.setNavigationMode(ActionBarImplICS.java:229) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplJB.setNavigationMode(ActionBarImplJB.java:20) [ERROR] : [Nexus 5] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handlesetNavigationMode(ActionBarProxy.java:321) [ERROR] : [Nexus 5] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:352) [ERROR] : [Nexus 5] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : [Nexus 5] TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : [Nexus 5] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4998) [ERROR] : [Nexus 5] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : [Nexus 5] TiApplication: at java.lang.reflect.Method.invoke(Method.java:515) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) [ERROR] : [Nexus 5] TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} Sony Xperia - android 2.3.7: {code} [ERROR] : [ST25i] TiApplication: (main) [283310,452997] Sending event: exception on thread: main msg:java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState; Titanium 3.3.0,2014/06/27 14:25,ca2a035 [ERROR] : [ST25i] TiApplication: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState [ERROR] : [ST25i] TiApplication: at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1354) [ERROR] : [ST25i] TiApplication: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1372) [ERROR] : [ST25i] TiApplication: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595) [ERROR] : [ST25i] TiApplication: at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574) [ERROR] : [ST25i] TiApplication: at android.support.v7.app.ActionBarImplBase.selectTab(ActionBarImplBase.java:491) [ERROR] : [ST25i] TiApplication: at android.support.v7.app.ActionBarImplBase.setSelectedNavigationItem(ActionBarImplBase.java:227) [ERROR] : [ST25i] TiApplication: at android.support.v7.app.ActionBarImplBase.setNavigationMode(ActionBarImplBase.java:381) [ERROR] : [ST25i] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handlesetNavigationMode(ActionBarProxy.java:321) [ERROR] : [ST25i] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:352) [ERROR] : [ST25i] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : [ST25i] TiApplication: at android.os.Looper.loop(Looper.java:138) [ERROR] : [ST25i] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:3701) [ERROR] : [ST25i] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : [ST25i] TiApplication: at java.lang.reflect.Method.invoke(Method.java:507) [ERROR] : [ST25i] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878) [ERROR] : [ST25i] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) [ERROR] : [ST25i] TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} h5.Expected Result: 1. We should see the tabs after tapping button "Show the tabs".

    Appcelerator JIRA | 2 years ago | Lokesh Choudhary
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  3. 0

    h5.This is a regression. It works fine with 3.2.3.GA. h5.Description: 1. Use the code from https://jira.appcelerator.org/browse/TIMOB-13135. 2. Make sure you use the legacy window property as the test code uses light weight window. {code} <property name="ti.android.useLegacyWindow" type="bool">true</property> {code} 2. Build the app for android device 4.4 & android 2.3.7. 3. After the app launches, tap on "Open childWin(same activity). 4. Tap on "Show the tabs". h5.Actual Result: 1. We get errors below and the app crashes. Nexus 5 - android 4.4: {code} [ERROR] : [Nexus 5] TiApplication: (main) [4820,4820] Sending event: exception on thread: main msg:java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState; Titanium 3.3.0,2014/06/27 14:25,ca2a035 [ERROR] : [Nexus 5] TiApplication: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1354) [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1372) [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595) [ERROR] : [Nexus 5] TiApplication: at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplICS.commitActiveTransaction(ActionBarImplICS.java:378) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplICS$TabWrapper.onTabSelected(ActionBarImplICS.java:559) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:577) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:363) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.app.ActionBarImpl.setNavigationMode(ActionBarImpl.java:1196) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplICS.setNavigationMode(ActionBarImplICS.java:229) [ERROR] : [Nexus 5] TiApplication: at android.support.v7.app.ActionBarImplJB.setNavigationMode(ActionBarImplJB.java:20) [ERROR] : [Nexus 5] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handlesetNavigationMode(ActionBarProxy.java:321) [ERROR] : [Nexus 5] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:352) [ERROR] : [Nexus 5] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : [Nexus 5] TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : [Nexus 5] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4998) [ERROR] : [Nexus 5] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : [Nexus 5] TiApplication: at java.lang.reflect.Method.invoke(Method.java:515) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) [ERROR] : [Nexus 5] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) [ERROR] : [Nexus 5] TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} Sony Xperia - android 2.3.7: {code} [ERROR] : [ST25i] TiApplication: (main) [283310,452997] Sending event: exception on thread: main msg:java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState; Titanium 3.3.0,2014/06/27 14:25,ca2a035 [ERROR] : [ST25i] TiApplication: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState [ERROR] : [ST25i] TiApplication: at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1354) [ERROR] : [ST25i] TiApplication: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1372) [ERROR] : [ST25i] TiApplication: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595) [ERROR] : [ST25i] TiApplication: at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574) [ERROR] : [ST25i] TiApplication: at android.support.v7.app.ActionBarImplBase.selectTab(ActionBarImplBase.java:491) [ERROR] : [ST25i] TiApplication: at android.support.v7.app.ActionBarImplBase.setSelectedNavigationItem(ActionBarImplBase.java:227) [ERROR] : [ST25i] TiApplication: at android.support.v7.app.ActionBarImplBase.setNavigationMode(ActionBarImplBase.java:381) [ERROR] : [ST25i] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handlesetNavigationMode(ActionBarProxy.java:321) [ERROR] : [ST25i] TiApplication: at org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:352) [ERROR] : [ST25i] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : [ST25i] TiApplication: at android.os.Looper.loop(Looper.java:138) [ERROR] : [ST25i] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:3701) [ERROR] : [ST25i] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : [ST25i] TiApplication: at java.lang.reflect.Method.invoke(Method.java:507) [ERROR] : [ST25i] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878) [ERROR] : [ST25i] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) [ERROR] : [ST25i] TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} h5.Expected Result: 1. We should see the tabs after tapping button "Show the tabs".

    Appcelerator JIRA | 2 years ago | Lokesh Choudhary
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash report 2.9 - IllegalStateException in ReaderActivity.showListFragmentForTag

    GitHub | 3 years ago | maxme
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  6. 0

    Getting illegalstateexception while exiting from fragment containing map

    Stack Overflow | 2 years ago | Achuthan M
    java.lang.RuntimeException: Unable to destroy activity {com.igloo.marinaretail/com.igloo.marinaretail.UserMain}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

  1. filpgame 1 times, last 5 days ago
  2. dealloc 2 times, last 2 weeks ago
  3. adawolfs 4 times, last 2 months ago
  4. 0x60 4 times, last 2 months ago
  5. Rajesh 6 times, last 4 months ago
8 more registered users
13 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.IllegalStateException

    Can not perform this action after onSaveInstanceState

    at android.support.v4.app.FragmentManagerImpl.checkStateLoss()
  2. Android Support v4
    BackStackRecord.commit
    1. android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1354)
    2. android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1372)
    3. android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595)
    4. android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574)
    4 frames
  3. Android v7
    ActionBarImplICS$TabWrapper.onTabSelected
    1. android.support.v7.app.ActionBarImplICS.commitActiveTransaction(ActionBarImplICS.java:378)
    2. android.support.v7.app.ActionBarImplICS$TabWrapper.onTabSelected(ActionBarImplICS.java:559)
    2 frames
  4. Android
    ActionBarImpl.setNavigationMode
    1. com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:577)
    2. com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:363)
    3. com.android.internal.app.ActionBarImpl.setNavigationMode(ActionBarImpl.java:1196)
    3 frames
  5. Android v7
    ActionBarImplJB.setNavigationMode
    1. android.support.v7.app.ActionBarImplICS.setNavigationMode(ActionBarImplICS.java:229)
    2. android.support.v7.app.ActionBarImplJB.setNavigationMode(ActionBarImplJB.java:20)
    2 frames
  6. org.appcelerator.titanium
    ActionBarProxy.handleMessage
    1. org.appcelerator.titanium.proxy.ActionBarProxy.handlesetNavigationMode(ActionBarProxy.java:321)
    2. org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:352)
    2 frames
  7. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:98)
    2. android.os.Looper.loop(Looper.java:136)
    3. android.app.ActivityThread.main(ActivityThread.java:5017)
    3 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame