java.lang.OutOfMemoryError: Could not allocate JNI Env

Hot problem!
This exception has a lot of traffic. You can help 17 users by writing a short tip.

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 manuel-sejourne
, 4 months ago
Could not allocate JNI Env --
via Stack Overflow by f4b
, 1 year ago
via GitHub by Fgabz
, 1 year ago
via GitHub by danvinokour
, 1 year ago
Could not allocate JNI Env
via GitHub by younes88
, 3 months ago
Could not allocate JNI Env
java.lang.OutOfMemoryError: Could not allocate JNI Env
at java.lang.Thread.nativeCreate(Thread.java)
at java.lang.Thread.start(Thread.java:1063)
at io.intercom.android.sdk.nexus.NexusSocket.(NexusSocket.java:55)
at io.intercom.android.sdk.nexus.NexusClient.connect(NexusClient.java:39)
at io.intercom.android.sdk.NexusWrapper.connect(NexusWrapper.java:19)
at io.intercom.android.sdk.NexusWrapper.cycle(NexusWrapper.java:31)
at io.intercom.android.sdk.identity.AppConfig.update(AppConfig.java:129)
at io.intercom.android.sdk.identity.AppIdentity.updateAppConfig(AppIdentity.java:41)
at io.intercom.android.sdk.identity.IdentityStore.setAppConfig(IdentityStore.java:55)
at io.intercom.android.sdk.api.CallbackHolder.updateAppConfig(CallbackHolder.java:131)
at io.intercom.android.sdk.api.CallbackHolder.updateBaseResponseObjects(CallbackHolder.java:123)
at io.intercom.android.sdk.api.CallbackHolder.access$000(CallbackHolder.java:31)
at io.intercom.android.sdk.api.CallbackHolder$3.onSuccess(CallbackHolder.java:67)
at io.intercom.android.sdk.api.CallbackHolder$3.onSuccess(CallbackHolder.java:64)
at io.intercom.android.sdk.api.BaseCallback.success(BaseCallback.java:22)
at io.intercom.retrofit.CallbackRunnable$1.run(CallbackRunnable.java:45)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

2 times, 2 months ago
19 times, 5 months ago
Once, 11 months 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.