java.lang.IllegalStateException

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.

  • Searchable Spinner combined with Realm
    via Stack Overflow by FiN
    ,
  • GitHub comment 1#184681764
    via GitHub by genaforvena
    ,
  • GitHub comment 2170#175753300
    via GitHub by Sutirth
    ,
  • Access realm object inside AsyncTask
    via Stack Overflow by rosu alin
    ,
  • GitHub comment 890#230979761
    via GitHub by Osteri
    ,
    • 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:383) at io.realm.MaterialDocRealmProxy.realmGet$document_number(MaterialDocRealmProxy.java:126) at com.my.application.test.Model.MaterialDoc.getDocumentNumber(MaterialDoc.java:29) at com.my.application.test.Model.MaterialDoc.toString(MaterialDoc.java:42) at android.widget.ArrayAdapter$ArrayFilter.performFiltering(ArrayAdapter.java:480) at android.widget.Filter$RequestHandler.handleMessage(Filter.java:234) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.os.HandlerThread.run(HandlerThread.java:61)

    Users with the same issue

    Indri Yunita
    2 times, last one,
    Unknown visitor1 times, last one,
    Diogo Jaym
    3 times, last one,
    bayukresno
    2 times, last one,
    brunosatriani
    12 times, last one,
    1 more bugmates