java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

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.

  • Rxjava + Realm access from incorrect thread
    via Stack Overflow by rguerra
    ,
  • GitHub comment 1#184681764
    via GitHub by genaforvena
    ,
  • GitHub comment 2170#175753300
    via GitHub by Sutirth
    ,
    • java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created. at io.realm.BaseRealm.checkIfValid(BaseRealm.java:449) at io.realm.RealmResults.isLoaded(RealmResults.java:872) at io.realm.RealmResults.size(RealmResults.java:372) at java.util.AbstractCollection.toArrayList(AbstractCollection.java:348) at java.util.AbstractCollection.toArray(AbstractCollection.java:339) at java.util.ArrayList.<init>(ArrayList.java:97) at android.widget.ArrayAdapter$ArrayFilter.performFiltering(ArrayAdapter.java:456) at android.widget.Filter$RequestHandler.handleMessage(Filter.java:234) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.os.HandlerThread.run(HandlerThread.java:61)

    Users with the same issue

    Indri Yunita
    Indri Yunita2 times, last one,
    Unknown visitor1 times, last one,
    Diogo Jaym
    Diogo Jaym3 times, last one,
    bayukresno
    bayukresno2 times, last one,
    brunosatriani
    brunosatriani12 times, last one,
    1 more bugmates