Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random crash /Fatal Exception: java.lang.Error: Could not shutdown mediaExtractor, codecs and mediaMuxer pipeline.' #102

Open
khawarraza opened this issue Sep 24, 2022 · 3 comments

Comments

@khawarraza
Copy link

I am getting random crash in my app due to error thrown by GPUMp4ComposerEngine. Here are the crash logs.

Fatal Exception: java.lang.Error: Could not shutdown mediaExtractor, codecs and mediaMuxer pipeline.
       at com.daasuu.gpuv.composer.GPUMp4ComposerEngine.compose(GPUMp4ComposerEngine.java:138)
       at com.daasuu.gpuv.composer.GPUMp4Composer$1.run(GPUMp4Composer.java:188)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
       at java.lang.Thread.run(Thread.java:1012)

Caused by java.lang.IllegalStateException
       at android.media.MediaCodec.native_stop(MediaCodec.java)
       at android.media.MediaCodec.stop(MediaCodec.java:2300)
       at com.daasuu.gpuv.composer.VideoComposer.release(VideoComposer.java:143)
       at com.daasuu.gpuv.composer.GPUMp4ComposerEngine.compose(GPUMp4ComposerEngine.java:124)
       at com.daasuu.gpuv.composer.GPUMp4Composer$1.run(GPUMp4Composer.java:188)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
       at java.lang.Thread.run(Thread.java:1012)

I am trying to catch the error but unable to do so.

@neerajrcodiant
Copy link

Have you solve this issue?

@khawarraza
Copy link
Author

Nope, not yet.

@RNSolutionKhan
Copy link

Exception java.lang.Error: Could not shutdown mediaExtractor, codecs and mediaMuxer pipeline.
at com.daasuu.gpuv.composer.GPUMp4ComposerEngine.compose (GPUMp4ComposerEngine.java:138)
at com.daasuu.gpuv.composer.GPUMp4Composer$1.run (GPUMp4Composer.java:188)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:923)
Caused by java.lang.IllegalStateException:
at android.media.MediaCodec.native_stop
at android.media.MediaCodec.stop (MediaCodec.java:2251)
at com.daasuu.gpuv.composer.VideoComposer.release (VideoComposer.java:143)
at com.daasuu.gpuv.composer.GPUMp4ComposerEngine.compose (GPUMp4ComposerEngine.java:124)

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants