java.lang.IllegalStateException

Exception thrown on Scheduler.Worker thread. Add `onError` handling.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5984

  • Exception thrown on Scheduler.Worker thread. Add `onError` handling.
  • Exception thrown on Scheduler.Worker thread. Add `onError` handling.
  • Exception thrown on Scheduler.Worker thread. Add `onError` handling.
  • Stack trace

    • java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling. at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:60) at rx.internal.schedulers.ExecutorScheduler$ExecutorSchedulerWorker.run(ExecutorScheduler.java:104) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5631) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754) Caused by: rx.exceptions.OnErrorNotImplementedException: Invalid index 20, size is 12 at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386) at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383) at rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44) at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:157) at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120) at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:204) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:144) at rx.subjects.SubjectSubscriptionManager$SubjectObserver.onNext(SubjectSubscriptionManager.java:225) at rx.subjects.PublishSubject.onNext(PublishSubject.java:114) at y2k.joyreactor.common.ObservableProperty$$special$$inlined$observable$1.afterChange(Delegates.kt:57) at kotlin.properties.ObservableProperty.setValue(ObservableProperty.kt:36) at y2k.joyreactor.common.ObservableProperty.setValue(ObservableProperty.kt) at y2k.joyreactor.common.ObservableProperty.plusAssign(ObservableProperty.kt:24) at y2k.joyreactor.common.BindingBuilder$bind$1.invoke(ViewBinding.kt:229) at y2k.joyreactor.common.BindingBuilder$bind$1.invoke(ViewBinding.kt:60) at y2k.joyreactor.common.ObservablePropertyKt$sam$Action1$fb5cd431.call(ObservableProperty.kt) at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139) at rx.subjects.SubjectSubscriptionManager$SubjectObserver.onNext(SubjectSubscriptionManager.java:225) at rx.subjects.PublishSubject.onNext(PublishSubject.java:114) at y2k.joyreactor.common.ObservableProperty$$special$$inlined$observable$1.afterChange(Delegates.kt:57) at kotlin.properties.ObservableProperty.setValue(ObservableProperty.kt:36) at y2k.joyreactor.common.ObservableProperty.setValue(ObservableProperty.kt) at y2k.joyreactor.common.ObservableProperty.plusAssign(ObservableProperty.kt:24) at y2k.joyreactor.common.ObservableProperty$subscribe$sub$1.call(ObservableProperty.kt:39) at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139) at rx.subjects.SubjectSubscriptionManager$SubjectObserver.onNext(SubjectSubscriptionManager.java:225) at rx.subjects.PublishSubject.onNext(PublishSubject.java:114) at y2k.joyreactor.common.ObservableProperty$$special$$inlined$observable$1.afterChange(Delegates.kt:57) at kotlin.properties.ObservableProperty.setValue(ObservableProperty.kt:36) at y2k.joyreactor.common.ObservableProperty.setValue(ObservableProperty.kt) at y2k.joyreactor.common.ObservableProperty.plusAssign(ObservableProperty.kt:24) at y2k.joyreactor.viewmodel.PostListViewModel$1.invoke(PostListViewModel.kt:30) at y2k.joyreactor.viewmodel.PostListViewModel$1.invoke(PostListViewModel.kt:13) at y2k.joyreactor.common.ObservableExtensionsKt$sam$Action1$0605da30.call(ObservableExtensions.kt) at rx.Single$16.onNext(Single.java:1687) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139) at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:227) at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) ... 9 more Caused by: java.lang.IndexOutOfBoundsException: Invalid index 20, size is 12 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.add(ArrayList.java:147) at y2k.joyreactor.widget.PostListComponent$1.invoke(PostListComponent.kt:36) at y2k.joyreactor.widget.PostListComponent$1.invoke(PostListComponent.kt:17) at y2k.joyreactor.common.ObservablePropertyKt$sam$Action1$fb5cd431.call(ObservableProperty.kt) at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139) ... 42 more

    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

    Once, 6 months ago
    4 times, 1 year ago
    Unknown user
    Once, 1 year ago
    3 times, 2 months ago
    Unknown user
    Once, 11 months ago
    89 more bugmates