-
Notifications
You must be signed in to change notification settings - Fork 290
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
java.lang.IllegalStateException at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method) #10
Comments
Could you confirm which MediaCodec crash, for audio or for video? |
I'm not sure which one but it crashed in the MediaEncoder class in the drain() encoderStatus = mMediaCodec.dequeueOutputBuffer(mBufferInfo, TIMEOUT_USEC); It was recording around 2 minutes when it crashed. |
Observed the same crash trace at my end. As per the trace it happens on doing drain() after signalEndOfInputStream(). This is not OS specific. @saki4510t Any help/pointers would be highly appreciated. Thanks |
Thanks for this great lib! We got this from crashlytics. |
same problem |
Recording fails to start on KitKat 4.4 (Samsuns GT-9070), some audio error
|
I also have the same Issue on
|
I see the same issue in various Android versions and devices: java.lang.IllegalStateException This appears to come from this line of code in MediaEncoder drain() method: Hope someone can help resolve this issue. |
getting the same issue, Any solution? |
When doing a recording on the Samsung S4 with OS5.0.1. I got this crash log
11-18 07:53:25.045 18723-20104/com.serenegiant.audiovideosample E/ACodec: signalError(omxError 0x80001009, internalError -2147483648)
11-18 07:53:25.055 18723-20103/com.serenegiant.audiovideosample E/MediaCodec: Codec reported err 0x80001009, actionCode 0, while in state 6
11-18 07:53:25.055 18723-20093/com.serenegiant.audiovideosample E/AndroidRuntime: FATAL EXCEPTION: MediaVideoEncoder
java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1033)
at com.serenegiant.audiovideosample.encoder.MediaEncoder.drain(MediaEncoder.java:301)
at com.serenegiant.audiovideosample.encoder.MediaEncoder.run(MediaEncoder.java:155)
at java.lang.Thread.run(Thread.java:818)
The text was updated successfully, but these errors were encountered: