java.lang.IllegalStateException: Illegal State: Object is no longer valid to operate on. Was it deleted by another thread?

Stack Overflow | Isabelle | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android - Realm - Object delete - Object is no longer valid to operate on

    Stack Overflow | 10 months ago | Isabelle
    java.lang.IllegalStateException: Illegal State: Object is no longer valid to operate on. Was it deleted by another thread?
  2. 0

    App suddenly stops after onResume

    GitHub | 1 year ago | migueljrodrigues
    java.lang.IllegalStateException: Illegal State: Object is no longer valid to operate on. Was it deleted by another thread?

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Illegal State: Object is no longer valid to operate on. Was it deleted by another thread?

      at io.realm.internal.UncheckedRow.nativeGetString()
    2. io.realm.internal
      UncheckedRow.getString
      1. io.realm.internal.UncheckedRow.nativeGetString(Native Method)
      2. io.realm.internal.UncheckedRow.getString(UncheckedRow.java:153)
      2 frames
    3. io.realm
      CityRealmProxy.realmGet$cityName
      1. io.realm.CityRealmProxy.realmGet$cityName(CityRealmProxy.java:75)
      1 frame
    4. com.ilepez.weatherapp
      CityListAdapter.onBindViewHolder
      1. com.ilepez.weatherapp.data.model.City.getCityName(City.java:41)
      2. com.ilepez.weatherapp.adapter.CityListAdapter.onBindViewHolder(CityListAdapter.java:56)
      3. com.ilepez.weatherapp.adapter.CityListAdapter.onBindViewHolder(CityListAdapter.java:20)
      3 frames
    5. Android v7
      RecyclerView.onMeasure
      1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5768)
      2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5801)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5037)
      4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
      5. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
      6. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
      7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
      8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:588)
      9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)
      10. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2788)
      10 frames
    6. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:20151)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      3 frames
    7. android.support.design
      NavigationView.onMeasure
      1. android.support.design.widget.NavigationView.onMeasure(NavigationView.java:218)
      1 frame
    8. Android Platform
      View.measure
      1. android.view.View.measure(View.java:20151)
      1 frame
    9. Android Support v4
      DrawerLayout.onMeasure
      1. android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1108)
      1 frame
    10. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:20151)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      3 frames
    11. Android v7
      ContentFrameLayout.onMeasure
      1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
      1 frame
    12. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:20151)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
      6. android.view.View.measure(View.java:20151)
      7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
      8. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      9. android.view.View.measure(View.java:20151)
      10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
      11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
      12. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
      13. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
      14. android.view.View.measure(View.java:20151)
      15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
      16. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
      16 frames
    13. Android
      PhoneWindow$DecorView.onMeasure
      1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3158)
      1 frame
    14. Android Platform
      Choreographer$FrameDisplayEventReceiver.run
      1. android.view.View.measure(View.java:20151)
      2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2594)
      3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1549)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1841)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7403)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:695)
      9. android.view.Choreographer.doFrame(Choreographer.java:631)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
      10 frames