java.lang.IllegalStateException: This Realm instance has already been closed, making it unusable.

GitHub | Osteri | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 890#230979761

    GitHub | 8 months ago | Osteri
    java.lang.IllegalStateException: This Realm instance has already been closed, making it unusable.
  2. 0

    AIMSICD crash in Map view

    GitHub | 5 months ago | Nordlenning
    java.lang.IllegalStateException: This Realm instance has already been closed, making it unusable.
  3. 0

    AIMSICD Crash in DB view

    GitHub | 2 months ago | Nordlenning
    java.lang.IllegalStateException: This Realm instance has already been closed, making it unusable.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    This Realm instance has already been closed - getting this as soon as the fragment is destroyed.

    GitHub | 9 months ago | anjanibansal
    java.lang.IllegalStateException: This Realm instance has already been closed, making it unusable.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      This Realm instance has already been closed, making it unusable.

      at io.realm.BaseRealm.checkIfValid()
    2. io.realm
      RealmBaseAdapter.getCount
      1. io.realm.BaseRealm.checkIfValid(BaseRealm.java:437)
      2. io.realm.RealmResults.isLoaded(RealmResults.java:872)
      3. io.realm.RealmResults.size(RealmResults.java:371)
      4. io.realm.RealmBaseAdapter.getCount(RealmBaseAdapter.java:98)
      4 frames
    3. Android Platform
      View.measure
      1. android.widget.ListView.onMeasure(ListView.java:1155)
      2. android.view.View.measure(View.java:18796)
      3. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
      4. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
      5. android.view.View.measure(View.java:18796)
      6. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
      7. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      8. android.view.View.measure(View.java:18796)
      9. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
      10. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
      11. android.view.View.measure(View.java:18796)
      11 frames
    4. Android Support v4
      DrawerLayout.onMeasure
      1. android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1075)
      1 frame
    5. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:18796)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      3 frames
    6. Android v7
      ContentFrameLayout.onMeasure
      1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
      1 frame
    7. Android Platform
      ViewGroup.measureChildWithMargins
      1. android.view.View.measure(View.java:18796)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
      2 frames
    8. Android v7
      ActionBarOverlayLayout.onMeasure
      1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:391)
      1 frame
    9. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:18796)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      4. android.view.View.measure(View.java:18796)
      5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
      6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1458)
      7. android.widget.LinearLayout.measureVertical(LinearLayout.java:746)
      8. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
      9. android.view.View.measure(View.java:18796)
      10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
      11. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      11 frames
    10. Android
      PhoneWindow$DecorView.onMeasure
      1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2658)
      1 frame
    11. Android Platform
      ActivityThread.main
      1. android.view.View.measure(View.java:18796)
      2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2108)
      3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1224)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1460)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1115)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6023)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      9. android.view.Choreographer.doFrame(Choreographer.java:606)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      11. android.os.Handler.handleCallback(Handler.java:739)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:148)
      14. android.app.ActivityThread.main(ActivityThread.java:5422)
      14 frames
    12. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    13. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames