Skip to content

Instantly share code, notes, and snippets.

@luisfelipeas5
Created November 6, 2023 12:46
Show Gist options
  • Save luisfelipeas5/cc1d11d6c80a93b53b640207371fa84c to your computer and use it in GitHub Desktop.
Save luisfelipeas5/cc1d11d6c80a93b53b640207371fa84c to your computer and use it in GitHub Desktop.
Kustomer OutOfMemoryError stacktrace
Fatal Exception: java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
at java.lang.Thread.nativeCreate(Thread.java)
at java.lang.Thread.start(Thread.java:733)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:975)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1393)
at okhttp3.RealCall$AsyncCall.executeOn(RealCall.java:154)
at okhttp3.Dispatcher.promoteAndExecute(Dispatcher.java:204)
at okhttp3.Dispatcher.enqueue(Dispatcher.java:143)
at okhttp3.RealCall.enqueue(RealCall.java:93)
at retrofit2.OkHttpCall.enqueue(OkHttpCall.java:147)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall.enqueue(DefaultCallAdapterFactory.java:78)
at com.pubnub.api.Endpoint.async(Endpoint.kt:114)
at com.kustomer.core.network.services.KusPubnubService.await(KusPubnubService.kt:641)
at com.kustomer.core.network.services.KusPubnubService.access$setAuthRetries$p(KusPubnubService.kt)
at com.kustomer.core.network.services.KusPubnubService.access$await(KusPubnubService.kt)
at com.kustomer.core.network.services.KusPubnubService$registerDeviceToken$3.invokeSuspend(KusPubnubService.kt:405)
at com.kustomer.core.network.services.KusPubnubService$registerDeviceToken$3.invoke(KusPubnubService.kt:8)
at com.kustomer.core.network.services.KusPubnubService$registerDeviceToken$3.invoke(KusPubnubService.kt:4)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
at kotlinx.coroutines.BuildersKt.withContext(Builders.kt)
at com.kustomer.core.network.services.KusPubnubService.registerDeviceToken(KusPubnubService.kt:391)
at com.kustomer.core.network.services.KusPubnubService$subscribePubnub$2.invokeSuspend(KusPubnubService.kt:213)
at com.kustomer.core.network.services.KusPubnubService$subscribePubnub$2.invoke(KusPubnubService.kt:8)
at com.kustomer.core.network.services.KusPubnubService$subscribePubnub$2.invoke(KusPubnubService.kt:4)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
at kotlinx.coroutines.BuildersKt.withContext(Builders.kt)
at com.kustomer.core.network.services.KusPubnubService.subscribePubnub$com_kustomer_chat_core(KusPubnubService.kt:191)
at com.kustomer.core.network.services.KusPubnubService$initializePubnub$2.invokeSuspend(KusPubnubService.kt:180)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:202)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment