java.lang.IllegalStateException

Fatal Exception thrown on Scheduler.Worker thread.

Solutions on the web5385

  • via GitHub by Lineflyer
    , 1 year ago
    Fatal Exception thrown on Scheduler.Worker thread.
  • via GitHub by EGOISTK21
    , 3 weeks ago
    Fatal Exception thrown on Scheduler.Worker thread.
  • Fatal Exception thrown on Scheduler.Worker thread.
  • Stack trace

    • java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread. at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:62) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5340) at java.lang.reflect.Method.invokeNative(Method.java:-2) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) at dalvik.system.NativeStart.main(NativeStart.java:-2) Caused by: rx.exceptions.UnsubscribeFailedException at rx.observers.SafeSubscriber.onCompleted(SafeSubscriber.java:98) at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.pollQueue(OperatorObserveOn.java:195) at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber$2.call(OperatorObserveOn.java:162) at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) ... 9 more Caused by: android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1128) at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.close(OpenSSLSocketImpl.java:906) at com.squareup.okhttp.Connection.closeIfOwnedBy(Connection.java:148) at com.squareup.okhttp.OkHttpClient$1.closeIfOwnedBy(OkHttpClient.java:75) at com.squareup.okhttp.internal.http.HttpConnection.closeIfOwnedBy(HttpConnection.java:137) at com.squareup.okhttp.internal.http.HttpTransport.disconnect(HttpTransport.java:135) at com.squareup.okhttp.internal.http.HttpEngine.disconnect(HttpEngine.java:573) at com.squareup.okhttp.Call.cancel(Call.java:122) at retrofit.OkHttpCall.cancel(OkHttpCall.java:162) at retrofit.RxJavaCallAdapterFactory$CallOnSubscribe$1.call(RxJavaCallAdapterFactory.java:102) at rx.subscriptions.BooleanSubscription.unsubscribe(BooleanSubscription.java:71) at rx.internal.util.SubscriptionList.unsubscribeFromAll(SubscriptionList.java:124) at rx.internal.util.SubscriptionList.unsubscribe(SubscriptionList.java:113) at rx.Subscriber.unsubscribe(Subscriber.java:98) at rx.internal.util.SubscriptionList.unsubscribeFromAll(SubscriptionList.java:124) at rx.internal.util.SubscriptionList.unsubscribe(SubscriptionList.java:113) at rx.Subscriber.unsubscribe(Subscriber.java:98) at rx.internal.util.SubscriptionList.unsubscribeFromAll(SubscriptionList.java:124) at rx.internal.util.SubscriptionList.unsubscribe(SubscriptionList.java:113) at rx.Subscriber.unsubscribe(Subscriber.java:98) at rx.observers.SafeSubscriber.onCompleted(SafeSubscriber.java:95) ... 12 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

    3 times, 1 week ago
    6 times, 4 months ago
    34 times, 4 months ago
    4 times, 5 months ago
    Once, 6 months ago
    38 more bugmates