java.lang.IllegalStateException

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


Solutions on the web16719

Solution icon of github
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
via Stack Overflow by Shudy
, 9 months ago
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
via Stack Overflow by rguerra
, 2 months ago
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of github
via GitHub by genaforvena
, 1 year ago
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Solution icon of stackoverflow
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

Stack trace

  • 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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
2 times, 1 year ago
12 times, 1 year ago
1 more bugmates