Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutOfMemorryError #983

Open
LeoKingdom opened this issue Dec 3, 2021 · 1 comment
Open

OutOfMemorryError #983

LeoKingdom opened this issue Dec 3, 2021 · 1 comment

Comments

@LeoKingdom
Copy link

java.lang.OutOfMemoryError

pthread_create (1040KB stack) failed: Try again

出错堆栈:

java.lang.Thread.nativeCreate(Native Method)

java.lang.Thread.start(Thread.java:733)

java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:975)

java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1393)

okhttp3.RealCall$AsyncCall.executeOn(RealCall.java:154)

okhttp3.Dispatcher.promoteAndExecute(Dispatcher.java:204)

okhttp3.Dispatcher.enqueue(Dispatcher.java:144)

okhttp3.RealCall.enqueue(RealCall.java:93)

com.lzy.okgo.cache.policy.BaseCachePolicy.requestNetworkAsync(BaseCachePolicy.java:129)

com.lzy.okgo.cache.policy.NoCachePolicy$3.run(NoCachePolicy.java:85)

android.os.Handler.handleCallback(Handler.java:873)

android.os.Handler.dispatchMessage(Handler.java:99)

android.os.Looper.loop(Looper.java:224)

android.app.ActivityThread.main(ActivityThread.java:7139)

java.lang.reflect.Method.invoke(Native Method)

com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)

com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876)

有大佬遇到过这个OOM吗,请大神指教,作者看到的话也请协助解决一下

@xiexindev
Copy link

日志打印不要打印Body, 因为当Body是文本的时候, 会将Body全量读取再打印, 非常容易OOM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants