pedroremedios

Error with fragment transactions Android

Mar 24th, 2021
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2021-03-24 10:32:57.538 30677-30677/com.salsation.fitness.store E/AndroidRuntime: FATAL EXCEPTION: main
  2. Process: com.salsation.fitness.store, PID: 30677
  3. java.lang.RuntimeException: Unable to resume activity {com.salsation.fitness.store/com.salsation.fitness.view.main.MainActivity}: java.lang.IllegalStateException: FragmentManager is already executing transactions
  4. at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4205)
  5. at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237)
  6. at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
  7. at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
  8. at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
  9. at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
  10. at android.os.Handler.dispatchMessage(Handler.java:107)
  11. at android.os.Looper.loop(Looper.java:214)
  12. at android.app.ActivityThread.main(ActivityThread.java:7356)
  13. at java.lang.reflect.Method.invoke(Native Method)
  14. at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
  15. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
  16. Caused by: java.lang.IllegalStateException: FragmentManager is already executing transactions
  17. at androidx.fragment.app.FragmentManager.ensureExecReady(FragmentManager.java:1790)
  18. at androidx.fragment.app.FragmentManager.execSingleAction(FragmentManager.java:1826)
  19. at androidx.fragment.app.BackStackRecord.commitNow(BackStackRecord.java:297)
  20. at com.salsation.fitness.view.activity.ActivityCreateWebViewFragment.loadWebViewFragment(ActivityCreateWebViewFragment.kt:64)
  21. at com.salsation.fitness.view.activity.ActivityCreateWebViewFragment.onResume(ActivityCreateWebViewFragment.kt:51)
  22. at androidx.fragment.app.Fragment.performResume(Fragment.java:2748)
  23. at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:373)
  24. at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1211)
  25. at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)
  26. at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)
  27. at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509)
  28. at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2637)
  29. at androidx.fragment.app.FragmentManager.dispatchResume(FragmentManager.java:2601)
  30. at androidx.fragment.app.Fragment.performResume(Fragment.java:2757)
  31. at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:373)
  32. at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1211)
  33. at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)
  34. at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)
  35. at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509)
  36. at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2637)
  37. at androidx.fragment.app.FragmentManager.dispatchResume(FragmentManager.java:2601)
  38. at androidx.fragment.app.FragmentController.dispatchResume(FragmentController.java:269)
  39. at androidx.fragment.app.FragmentActivity.onResumeFragments(FragmentActivity.java:478)
  40. at androidx.fragment.app.FragmentActivity.onPostResume(FragmentActivity.java:467)
  41. at androidx.appcompat.app.AppCompatActivity.onPostResume(AppCompatActivity.java:195)
  42. at android.app.Activity.performResume(Activity.java:7964)
  43. at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4195)
RAW Paste Data