java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by dritan-x
, 1 year ago
pthread_create (1040KB stack) failed: Try again
via samsung.com by Unknown author, 2 years ago
pthread_create (1040KB stack) failed: Try again
via samsung.com by Unknown author, 1 year ago
pthread_create (1040KB stack) failed: Try again
via GitHub by JulyDev
, 8 months ago
pthread_create (1040KB stack) failed: Try again
via Stack Overflow by hyunwookcho
, 2 weeks ago
pthread_create (1040KB stack) failed: Try again
via GitHub by pengjinning
, 1 year ago
pthread_create (1040KB stack) failed: Try again
java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
at java.lang.Thread.nativeCreate(Native Method)
at java.lang.Thread.start(Thread.java:1063)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:921)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1339)
at okhttp3.ConnectionPool.put(ConnectionPool.java:134)
at okhttp3.OkHttpClient$1.put(OkHttpClient.java:96)
at okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:183)
at okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:127)
at okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:97)
at okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:289)
at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:241)
at okhttp3.RealCall.getResponse(RealCall.java:240)
at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160)
at okhttp3.RealCall.access$100(RealCall.java:30)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:127)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

2 times, 3 months ago
19 times, 6 months ago
Once, 1 year ago
47 times, 1 year ago
4 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.