java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Paras Mishra,
  • 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".
    via by Lokesh Choudhary,
  • 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".
    via by Lokesh Choudhary,
  • john thomas - Google+
    via by Unknown author,
  • GitHub comment 346#199534072
    via GitHub by jasontsh
    ,
    • java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1354) at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1372) at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595) at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574) at android.support.v7.app.ActionBarImplICS.commitActiveTransaction(ActionBarImplICS.java:378) at android.support.v7.app.ActionBarImplICS$TabWrapper.onTabSelected(ActionBarImplICS.java:559) at com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:577) at com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:363) at com.android.internal.app.ActionBarImpl.setNavigationMode(ActionBarImpl.java:1196) at android.support.v7.app.ActionBarImplICS.setNavigationMode(ActionBarImplICS.java:229) at android.support.v7.app.ActionBarImplJB.setNavigationMode(ActionBarImplJB.java:20) at org.appcelerator.titanium.proxy.ActionBarProxy.handlesetNavigationMode(ActionBarProxy.java:321) at org.appcelerator.titanium.proxy.ActionBarProxy.handleMessage(ActionBarProxy.java:352) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method)

    Users with the same issue

    Unknown visitor1 times, last one,
    filpgame
    13 times, last one,
    gamebusterz
    1 times, last one,
    dealloc
    2 times, last one,
    adawolfs
    4 times, last one,
    49 more bugmates