question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OutOfMemoryError in interceptor

See original GitHub issue

📢 Describe the bug

This came to me from firebase crashlytics, i don’t know the reproduction steps

Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 13536178 byte allocation with 5074056 free bytes and 4MB until OOM
       at okio.Buffer.readByteArray(Buffer.java:1438)
       at okio.Buffer.readString(Buffer.java:301)
       at okio.Buffer.readString(Buffer.java:290)
       at com.chuckerteam.chucker.api.ChuckerInterceptor.processResponseBody(ChuckerInterceptor.java:156)
       at com.chuckerteam.chucker.api.ChuckerInterceptor.processResponse(ChuckerInterceptor.java:130)
       at com.chuckerteam.chucker.api.ChuckerInterceptor.intercept(ChuckerInterceptor.java:61)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:112)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:87)
// rest of interceptors

💣 To Reproduce

I don’t know how to reproduce that

🔧 Expected behavior

Chucker should handle any payload size gracefully

📱 Smartphone

  • Device: Galaxy A5 (2016)
  • OS: 7.1.1
  • Lib version: 3.1.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
jakosscommented, Feb 18, 2020

I have chucker on staging version for internal and external (clients) QA. It does not go into production itself

0reactions
vbuberencommented, Mar 6, 2020

I believe that this is the same problem as in #263

Read more comments on GitHub >

github_iconTop Results From Across the Web

OutofmemoryError while uploading a hugefile using cxf ...
Logginginterceptor is causing problem in my client's code. Once server resposes with the attachment, the attachment is placed in my memory ...
Read more >
OutOfMemoryError: Java heap space after zwave on- ...
Hello there, I just migrated from OH2.5 to OH 3.1 on my RP4 with Openhabian and have everything up and running again.
Read more >
java.lang.OutOfMemoryError and PermGen errors
Every day we get OutOfMemory and PermGen errors, and nobody seems to be able to solve them. ... at com.evermind.server.ejb.interceptor.system.
Read more >
java.lang.OutOfMemoryError: Java heap space
I have a LC server working in a LInux 5.0 environment.it is a 64bit AMD and a 4GB RAM machine.All the required services...
Read more >
java - Tomcat crashes again and again because of "Out ...
DefaultActionInvocation.invoke(DefaultActionInvocation.java:253) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found