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

GitHub | ravishankar-dale | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    OutOfMemoryError while uploading videos

    GitHub | 2 months ago | ravishankar-dale
    java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.
  2. 0
    samebug tip
    You need the same JWT secret keys everywhere
    via GitHub by deepu105
  3. 0
    samebug tip
    If your row exceed the limit of 2mb of SQLite you're gonna receive this exception, consider using your database just for filepaths and then store your files in a filesystem.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fatal Exception: java.lang.OutOfMemoryError using okhttp3 okio for download files

    Stack Overflow | 11 months ago | Joolah
    java.lang.OutOfMemoryError: Failed to allocate a 2060 byte allocation with 16777232 free bytes and 308MB until OOM; failed due to fragmentation (required continguous free 4096 bytes where largest contiguous free 0 bytes)
  6. 0

    FATAL EXCEPTION: OkHttp Dispatcher

    GitHub | 11 months ago | MrThiago
    java.lang.OutOfMemoryError: Failed to allocate a 2060 byte allocation with 16777232 free bytes and 308MB until OOM; failed due to fragmentation (required continguous free 4096 bytes where largest contiguous free 0 bytes)

    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.OutOfMemoryError

      Failed to allocate a 2060 byte allocation with 1380 free bytes and 1380B until OOM

      at com.android.okio.Segment.<init>()
    2. Android
      HttpsURLConnectionImpl.getResponseCode
      1. com.android.okio.Segment.<init>(Segment.java:34)
      2. com.android.okio.SegmentPool.take(SegmentPool.java:48)
      3. com.android.okio.OkBuffer.writableSegment(OkBuffer.java:511)
      4. com.android.okio.OkBuffer.write(OkBuffer.java:424)
      5. com.android.okio.OkBuffer.clone(OkBuffer.java:740)
      6. com.android.okhttp.internal.http.RetryableSink.writeToSocket(RetryableSink.java:77)
      7. com.android.okhttp.internal.http.HttpConnection.writeRequestBody(HttpConnection.java:240)
      8. com.android.okhttp.internal.http.HttpTransport.writeRequestBody(HttpTransport.java:77)
      9. com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:622)
      10. com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:388)
      11. com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
      12. com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500)
      13. com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
      14. com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
      14 frames
    3. com.cloudinary.android
      UploaderStrategy.callApi
      1. com.cloudinary.android.UploaderStrategy.callApi(UploaderStrategy.java:81)
      1 frame
    4. com.cloudinary
      Uploader.upload
      1. com.cloudinary.Uploader.callApi(Uploader.java:22)
      2. com.cloudinary.Uploader.upload(Uploader.java:55)
      2 frames
    5. my.package.name
      CloudinaryUtils$$Lambda$1.call
      1. my.package.name.common.utils.CloudinaryUtils.uploadMediaInternal(CloudinaryUtils.java:106)
      2. my.package.name.common.utils.CloudinaryUtils.lambda$uploadMedia$0(CloudinaryUtils.java:90)
      3. my.package.name.common.utils.CloudinaryUtils.access$lambda$0(CloudinaryUtils.java:0)
      4. my.package.name.common.utils.CloudinaryUtils$$Lambda$1.call(Unknown Source)
      4 frames
    6. rxjava
      ScheduledAction.run
      1. rx.Observable.unsafeSubscribe(Observable.java:9860)
      2. rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
      3. rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:221)
      4. rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
      4 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      7. java.lang.Thread.run(Thread.java:818)
      7 frames