java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.


Solutions on the web245

Solution icon of github
via GitHub by schrej
, 10 months ago
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
via GitHub by BobKyle
, 6 months ago
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
via GitHub by vadims
, 1 year ago
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
via GitHub by Lineflyer
, 1 year ago
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
Fatal Exception thrown on Scheduler.Worker thread.

Solution icon of github
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:59)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 2060 byte allocation with 1380 free bytes and 1380B until OOM
	at com.android.okio.Segment.<init>(Segment.java:34)
	at com.android.okio.SegmentPool.take(SegmentPool.java:48)
	at com.android.okio.OkBuffer.writableSegment(OkBuffer.java:511)
	at com.android.okio.OkBuffer.write(OkBuffer.java:424)
	at com.android.okio.OkBuffer.clone(OkBuffer.java:740)
	at com.android.okhttp.internal.http.RetryableSink.writeToSocket(RetryableSink.java:77)
	at com.android.okhttp.internal.http.HttpConnection.writeRequestBody(HttpConnection.java:240)
	at com.android.okhttp.internal.http.HttpTransport.writeRequestBody(HttpTransport.java:77)
	at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:622)
	at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:388)
	at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
	at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500)
	at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
	at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
	at com.cloudinary.android.UploaderStrategy.callApi(UploaderStrategy.java:81)
	at com.cloudinary.Uploader.callApi(Uploader.java:22)
	at com.cloudinary.Uploader.upload(Uploader.java:55)
	at my.package.name.common.utils.CloudinaryUtils.uploadMediaInternal(CloudinaryUtils.java:106)
	at my.package.name.common.utils.CloudinaryUtils.lambda$uploadMedia$0(CloudinaryUtils.java:90)
	at my.package.name.common.utils.CloudinaryUtils.access$lambda$0(CloudinaryUtils.java:0)
	at my.package.name.common.utils.CloudinaryUtils$$Lambda$1.call(Unknown Source)
	at rx.Observable.unsafeSubscribe(Observable.java:9860)
	at rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
	at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:221)
	at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
	... 7 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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.