You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use the demo application of this repo. I launch it from AndroidStudio and use the Rotation example. I start the stream from camera : it works successfully.
But when I stop the streaming, the application just crash. There seems to be an issue freeing resources.
Expected behavior
At the step 7 of the above description, I expect to get back to the welcoming view of the application.
Screenshots
Illustration of the crash:
Smartphone (please complete the following information):
Library version [e.g. 2.2.7]
Device: Doogee V20 Pro
OS: Android12
RTMP media server
Additional context
Somewhere in the logcat, you can see:
--------- beginning of crash
11-27 11:30:21.441 21517 21676 E AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-2
11-27 11:30:21.441 21517 21676 E AndroidRuntime: Process: com.pedro.streamer, PID: 21517
11-27 11:30:21.441 21517 21676 E AndroidRuntime: java.io.IOException: Channel is closed for write
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at io.ktor.utils.io.ByteChannel.getWriteBuffer(ByteChannel.kt:49)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at io.ktor.utils.io.ByteWriteChannelOperationsKt.writeByte(ByteWriteChannelOperations.kt:18)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at io.ktor.network.tls.RenderKt.writeRecord(Render.kt:18)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at io.ktor.network.tls.TLSClientHandshake$output$1.invokeSuspend(TLSClientHandshake.kt:119)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:832)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
11-27 11:30:21.441 21517 21676 E AndroidRuntime: Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [CoroutineName(cio-tls-encoder), ActorCoroutine{Cancelling}@3985a2d, Dispatchers.Default]
11-27 11:30:21.780 21517 21559 D CCodecBufferChannel: elapsed: mInputMetEos 0, hasPendingOutputsInClient 1, n 0
11-27 11:30:21.780 21517 21559 D CCodecBufferChannel: elapsed: mInputMetEos 0, hasPendingOutputsInClient 1, n 0
So it seems a background worker is struggling to free resources.
The text was updated successfully, but these errors were encountered:
Describe the bug
I use the demo application of this repo. I launch it from AndroidStudio and use the
Rotation
example. I start the stream from camera : it works successfully.But when I stop the streaming, the application just crash. There seems to be an issue freeing resources.
To Reproduce
Steps to reproduce the behavior:
master
branch (dbd7a9e) of this repoRotation (include filters)
buttonExpected behavior
At the step 7 of the above description, I expect to get back to the welcoming view of the application.
Screenshots
Illustration of the crash:
Smartphone (please complete the following information):
Additional context
Somewhere in the logcat, you can see:
So it seems a background worker is struggling to free resources.
The text was updated successfully, but these errors were encountered: