Skip to content

4k crash on nexus 6 - VLC 3.1.0

Device: Nexus 6

Android 7.1.1

VLC Version: 3.1.0

Crash on local playback on this sample.

        at kotlinx.coroutines.DispatchedKt.dispatch(Dispatched.kt:1368)
        at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:218)
        at kotlinx.coroutines.CancellableContinuationImpl.completeResume(CancellableContinuationImpl.kt:294)
        at kotlinx.coroutines.channels.AbstractChannel$ReceiveHasNext.completeResumeReceive(AbstractChannel.kt:941)
        at kotlinx.coroutines.channels.AbstractSendChannel.offerInternal(AbstractChannel.kt:52)
        at kotlinx.coroutines.channels.LinkedListChannel.offerInternal(LinkedListChannel.kt:28)
        at kotlinx.coroutines.channels.AbstractSendChannel.offer(AbstractChannel.kt:180)
        at kotlinx.coroutines.channels.ChannelCoroutine.offer(ChannelCoroutine.kt)
        at org.videolan.vlc.media.PlayerController.onEvent(PlayerController.kt:3317)
        at org.videolan.libvlc.VLCObject$1EventRunnable.run(VLCObject.java:161)
        at android.os.Handler.handleCallback(Handler.java:751)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6119)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
        at Android.MODEL(Nexus 6)
        at Android.VERSION(7.1.1)
        at Android.FINGERPRINT(google/shamu/shamu:7.1.1/N6F27M/4299435:user/release-keys)
     Caused by: java.lang.OutOfMemoryError: pthread_create (1072KB stack) failed: Try again
        at java.lang.Thread.nativeCreate(Native Method)
        at java.lang.Thread.start(Thread.java:730)
        at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:941)
        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1359)
        at java.lang.UNIXProcess.initStreams(UNIXProcess.java:170)
        at java.lang.UNIXProcess$2.run(UNIXProcess.java:143)
        at java.lang.UNIXProcess$2.run(UNIXProcess.java:142)
        at java.security.AccessController.doPrivileged(AccessController.java:67)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:141)
        at java.lang.ProcessImpl.start(ProcessImpl.java:128)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:964)
        at java.lang.Runtime.exec(Runtime.java:691)
        at java.lang.Runtime.exec(Runtime.java:559)
        at org.videolan.vlc.util.Logcat.writeLogcat(Logcat.java:112)
        at org.videolan.vlc.VLCCrashHandler.uncaughtException(VLCCrashHandler.java:1109)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1063)
        at kotlinx.coroutines.CoroutineExceptionHandlerImplKt.handleCoroutineExceptionImpl(CoroutineExceptionHandlerImpl.kt:35)
        at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleExceptionViaHandler(CoroutineExceptionHandler.kt:52)
        at kotlinx.coroutines.channels.ActorCoroutine.handleJobException(Actor.kt:136)
        at kotlinx.coroutines.JobSupport.tryFinalizeFinishingState(JobSupport.kt:225)
        at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:799)
        at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:742)
        at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:117)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:45)
        at kotlinx.coroutines.ResumeModeKt.resumeMode(ResumeMode.kt:67)
        at kotlinx.coroutines.DispatchedKt.resume(Dispatched.kt:272)
        at kotlinx.coroutines.DispatchedKt.dispatch(Dispatched.kt:1049)
        at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:218)
        at kotlinx.coroutines.CancellableContinuationImpl.completeResume(CancellableContinuationImpl.kt:294)
        at kotlinx.coroutines.channels.AbstractChannel$ReceiveHasNext.completeResumeReceive(AbstractChannel.kt:941)
        at kotlinx.coroutines.channels.AbstractSendChannel.offerInternal(AbstractChannel.kt:52)
        at kotlinx.coroutines.channels.LinkedListChannel.offerInternal(LinkedListChannel.kt:28)
    	at kotli```
Edited by Duncan McNamara