java.lang.IllegalStateException

Can not perform this action inside of onLoadFinished

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web380

Stack trace

  • java.lang.IllegalStateException: Can not perform this action inside of onLoadFinished at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1369) at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1383) at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:636) at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:615) at com.example.android.sunshine.app.MainActivity.onListItemClicked(MainActivity.java:200) at com.example.android.sunshine.app.ForecastFragment.onLoadFinished(ForecastFragment.java:285) at com.example.android.sunshine.app.ForecastFragment.onLoadFinished(ForecastFragment.java:46) at android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:427) at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:395) at android.support.v4.content.Loader.deliverResult(Loader.java:104) at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:73) at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:35) at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:223) at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:61) at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:461) at android.support.v4.content.ModernAsyncTask.access$500(ModernAsyncTask.java:47) at android.support.v4.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:474) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5257) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

filpgamefilpgame
2 times, last one
Unknown visitor
Unknown visitorOnce,
gamebusterzgamebusterz
Once,
deallocdealloc
2 times, last one
adawolfsadawolfs
4 times, last one
49 more bugmates