Rxjava: java.lang.IllegalStateException: at rx.internal.schedulers.ScheduledAction.run

Created on 18 Dec 2017  路  1Comment  路  Source: ReactiveX/RxJava

java.lang.IllegalStateException: 
  at rx.internal.schedulers.ScheduledAction.run (ScheduledAction.java:62)
  at android.os.Handler.handleCallback (Handler.java:815)
  at android.os.Handler.dispatchMessage (Handler.java:104)
  at android.os.Looper.loop (Looper.java:207)
  at android.app.ActivityThread.main (ActivityThread.java:5765)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:789)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:679)
Caused by: rx.exceptions.OnErrorFailedException: 
  at rx.observers.SafeSubscriber._onError (SafeSubscriber.java:192)
  at rx.observers.SafeSubscriber.onError (SafeSubscriber.java:120)
  at rx.exceptions.Exceptions.throwOrReport (Exceptions.java:200)
  at rx.observers.SafeSubscriber.onNext (SafeSubscriber.java:144)
  at rx.internal.operators.OperatorDoOnEach$1.onNext (OperatorDoOnEach.java:85)
  at rx.observers.Subscribers$5.onNext (Subscribers.java:229)
  at rx.internal.producers.SingleDelayedProducer.emit (SingleDelayedProducer.java:102)
  at rx.internal.producers.SingleDelayedProducer.setValue (SingleDelayedProducer.java:85)
  at rx.internal.operators.OperatorToObservableList$1.onCompleted (OperatorToObservableList.java:93)
  at rx.internal.operators.OperatorMap$1.onCompleted (OperatorMap.java:43)
  at rx.internal.operators.OperatorMerge$MergeSubscriber.emitLoop (OperatorMerge.java:617)
  at rx.internal.operators.OperatorMerge$MergeSubscriber.emit (OperatorMerge.java:529)
  at rx.internal.operators.OperatorMerge$MergeSubscriber.onCompleted (OperatorMerge.java:258)
  at rx.internal.operators.OperatorMap$1.onCompleted (OperatorMap.java:43)
  at rx.internal.operators.OperatorMap$1.onCompleted (OperatorMap.java:43)
  at rx.internal.operators.OperatorDoOnEach$1.onCompleted (OperatorDoOnEach.java:53)
  at rx.internal.operators.OnSubscribeRedo$4$1.onCompleted (OnSubscribeRedo.java:326)
  at rx.internal.operators.OperatorDematerialize$1.onCompleted (OperatorDematerialize.java:80)
  at rx.internal.operators.OperatorMap$1.onCompleted (OperatorMap.java:43)
  at rx.internal.operators.OnSubscribeRedo$3$1.onNext (OnSubscribeRedo.java:303)
  at rx.internal.operators.OnSubscribeRedo$3$1.onNext (OnSubscribeRedo.java:289)
  at rx.internal.operators.NotificationLite.accept (NotificationLite.java:150)
  at rx.subjects.SubjectSubscriptionManager$SubjectObserver.emitNext (SubjectSubscriptionManager.java:253)
  at rx.subjects.BehaviorSubject.onNext (BehaviorSubject.java:160)
  at rx.internal.operators.OnSubscribeRedo$2$1.onCompleted (OnSubscribeRedo.java:233)
  at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.checkTerminated (OperatorObserveOn.java:262)
  at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call (OperatorObserveOn.java:199)
  at rx.internal.schedulers.ScheduledAction.run (ScheduledAction.java:55)

Hi please help me to solve this issue . I almost tried and included try catch exception in almost all the
onError(Throwable throwable) , which handles any values inside them .

Still the crash keeps on coming . I am updating my library versions below please check .

"io.reactivex:rxjava:1.1.1"
"io.reactivex:rxandroid:1.1.0"
"com.squareup.retrofit2:retrofit:2.0.2" .

Please help .

1.x Question

Most helpful comment

You are using quite outdated RxJava. Please upgrade to 1.3.4 first and retry. If it still fails, post the new stacktrace which should contain way more information than that old RxJava version.

>All comments

You are using quite outdated RxJava. Please upgrade to 1.3.4 first and retry. If it still fails, post the new stacktrace which should contain way more information than that old RxJava version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nltran picture nltran  路  4Comments

hoc081098 picture hoc081098  路  3Comments

aballano picture aballano  路  3Comments

dimsuz picture dimsuz  路  4Comments

midnight-wonderer picture midnight-wonderer  路  3Comments