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

[BUG]: ExoPlaybackException: ERROR_CODE_DECODING_RESOURCES_RECLAIMED #4330

Open
quangtuan28200 opened this issue Dec 11, 2024 · 7 comments
Open
Labels
Accepted Issue is confirmed and accepted by maintainers team bug Platform: Android Repro Provided Waiting for Review

Comments

@quangtuan28200
Copy link

quangtuan28200 commented Dec 11, 2024

Version

6.8.2

What platforms are you having the problem on?

Android

System Version

android 14, 10, 13

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

I'm using React native 0.74.3 when the video plays I get these errors, it occurred in <6.8.2,
source using video in local with type .m4v and video can change

{"errorStackTrace":"androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64002A, -1, null, [1920, 1080, 59.993782, ColorInfo(BT709, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:640)\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loopOnce(Looper.java:230)\n\tat android.os.Looper.loop(Looper.java:319)\n\tat android.os.HandlerThread.run(HandlerThread.java:67)\nCaused by: androidx.media3.exoplayer.video.MediaCodecVideoDecoderException: Decoder failed: c2.mtk.avc.decoder\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.createDecoderException(MediaCodecVideoRenderer.java:1982)\n\tat androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:893)\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.render(MediaCodecVideoRenderer.java:1018)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1136)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:561)\n\t... 4 more\nCaused by: android.media.MediaCodec$CodecException: Error 0xffffffe0\n","errorCode":"24006","errorException":"androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64002A, -1, null, [1920, 1080, 59.993782, ColorInfo(BT709, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES","errorString":"ExoPlaybackException: ERROR_CODE_DECODING_RESOURCES_RECLAIMED"}

{"errorStackTrace":"androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64002A, -1, null, [1920, 1080, 60.0, ColorInfo(BT709, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:640)\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loopOnce(Looper.java:226)\n\tat android.os.Looper.loop(Looper.java:329)\n\tat android.os.HandlerThread.run(HandlerThread.java:67)\nCaused by: androidx.media3.exoplayer.video.MediaCodecVideoDecoderException: Decoder failed: OMX.qcom.video.decoder.avc\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.createDecoderException(MediaCodecVideoRenderer.java:1982)\n\tat androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:893)\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.render(MediaCodecVideoRenderer.java:1018)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1136)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:561)\n\t... 4 more\nCaused by: android.media.MediaCodec$CodecException: Error 0xffffffe0\n\tat android.media.MediaCodec.releaseOutputBuffer(Native Method)\n\tat android.media.MediaCodec.releaseOutputBufferInternal(MediaCodec.java:3651)\n\tat android.media.MediaCodec.releaseOutputBuffer(MediaCodec.java:3625)\n\tat androidx.media3.exoplayer.mediacodec.AsynchronousMediaCodecAdapter.releaseOutputBuffer(AsynchronousMediaCodecAdapter.java:206)\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.renderOutputBufferV21(MediaCodecVideoRenderer.java:1716)\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.maybeReleaseFrame(MediaCodecVideoRenderer.java:1448)\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.processOutputBuffer(MediaCodecVide<truncated: 646 chars>

{"errorStackTrace":"androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:720)\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loop(Looper.java:263)\n\tat android.os.HandlerThread.run(HandlerThread.java:67)\nCaused by: java.lang.IllegalStateException: start failed\n\tat android.media.MediaCodec.native_start(Native Method)\n\tat android.media.MediaCodec.start(MediaCodec.java:2234)\n\tat androidx.media3.exoplayer.mediacodec.AsynchronousMediaCodecAdapter.flush(AsynchronousMediaCodecAdapter.java:249)\n\tat androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.flushCodec(MediaCodecRenderer.java:960)\n\tat androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.flushOrReleaseCodec(MediaCodecRenderer.java:953)\n\tat androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.onDisabled(MediaCodecRenderer.java:780)\n\tat androidx.media3.exoplayer.video.MediaCodecVideoRenderer.onDisabled(MediaCodecVideoRenderer.java:794)\n\tat androidx.media3.exoplayer.BaseRenderer.disable(BaseRenderer.java:220)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.disableRenderer(ExoPlayerImplInternal.java:1846)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.seekToPeriodPosition(ExoPlayerImplInternal.java:1439)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.seekToPeriodPosition(ExoPlayerImplInternal.java:1403)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMediaSourceListInfoRefreshed(ExoPlayerImplInternal.java:2066)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.setMediaItemsInternal(ExoPlayerImplInternal.java:819)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:598)\n\t... 3 more\n","errorCode":"21004","errorException":"androidx.media3.exoplayer.ExoPlaybackException: Unexpected runtime error","errorString":"ExoPlaybackException: ERROR_CODE_FAILED_RUNTIME_CHECK"}

here is my code:

<Video
	ref={videoRef}
	source={video}
	style={[styles.video, stance === 'southpaw' && { transform: [{ rotateY: '180deg' }] }]}
	playWhenInactive={true}
	playInBackground={true}
	ignoreSilentSwitch="ignore"
	mixWithOthers={ducking}
	paused={isPause}
	repeat={isLoop}
	volume={VOICE_VOLUME / 100}
	muted={isMute || isSilent}
	progressUpdateInterval={100}
	onLoadStart={_onLoadStart}
	onProgress={_onProgress}
	onEnd={onEnd}
	onReadyForDisplay={_onReadyForDisplay}
	onError={e => _onError(e.error)}
	disableFocus={true}
	viewType={ViewType.TEXTURE}
	shutterColor="transparent"
/>

image

Reproduction Link

none

Reproduction

can't reproduce, It happens occasionally

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

@KrzysztofMoch KrzysztofMoch added Accepted Issue is confirmed and accepted by maintainers team and removed Waiting for Review labels Dec 11, 2024
Copy link

Thank you for your bug report. We will review it and get back to you if we need more information.

@freeboub
Copy link
Collaborator

you should check this issue in android I think: androidx/media#1825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue is confirmed and accepted by maintainers team bug Platform: Android Repro Provided Waiting for Review
Projects
None yet
Development

No branches or pull requests

3 participants