Skip to content

Android Crash : WaveformExtractor$startDecode$1$1.onOutputBufferAvailable - codec is released already #430

Open
@Tom3652

Description

@Tom3652

I have received a new crash of my android app but it seems different from #376 because it's about onOutputBufferAvailable and the release of the codec.

Maybe you will have more insights :

Fatal Exception: java.lang.IllegalStateException: codec is released already
       at android.media.MediaCodec.getBuffer(MediaCodec.java)
       at android.media.MediaCodec.getOutputBuffer(MediaCodec.java:4655)
       at com.simform.audio_waveforms.WaveformExtractor$startDecode$1$1.onOutputBufferAvailable(WaveformExtractor.kt:123)
       at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1953)
       at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1851)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loopOnce(Looper.java:257)
       at android.os.Looper.loop(Looper.java:342)
       at android.app.ActivityThread.main(ActivityThread.java:9634)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
        

I have no ways to reproduce it unfortunately, it happened to my live users in release mode.
Thanks for your help !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions