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

  1. 0

    Threading in Realm - Clean Code Architecture

    Stack Overflow | 4 months ago | Leonardo Ferrari
    java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.
  2. 0

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

    GitHub | 4 weeks ago | kevivforever
    java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.
  3. 0

    GitHub comment 1#184681764

    GitHub | 10 months ago | genaforvena
    java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 2170#175753300

    GitHub | 10 months ago | Sutirth
    java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.
  6. 0

    Realm access from incorrect thread

    Stack Overflow | 1 month ago | Shudy
    java.lang.IllegalStateException: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. io.realm
      RealmResults.addChangeListener
      1. io.realm.BaseRealm.checkIfValid(BaseRealm.java:456)
      2. io.realm.RealmResults.addChangeListener(RealmResults.java:926)
      2 frames
    3. io.realm.rx
      RealmObservableFactory$5.call
      1. io.realm.rx.RealmObservableFactory$5.call(RealmObservableFactory.java:147)
      2. io.realm.rx.RealmObservableFactory$5.call(RealmObservableFactory.java:131)
      2 frames
    4. rxjava
      ExecutorScheduler$ExecutorSchedulerWorker.run
      1. rx.Observable.unsafeSubscribe(Observable.java:9860)
      2. rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48)
      3. rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33)
      4. rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
      5. rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
      6. rx.Observable.unsafeSubscribe(Observable.java:9860)
      7. rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48)
      8. rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33)
      9. rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
      10. rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
      11. rx.Observable.unsafeSubscribe(Observable.java:9860)
      12. rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
      13. rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
      14. rx.internal.schedulers.ExecutorScheduler$ExecutorSchedulerWorker.run(ExecutorScheduler.java:104)
      14 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:841)
      3 frames