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] decoder initialization errors #743

Closed
4 tasks done
abuturabofficial opened this issue Jan 22, 2025 · 3 comments
Closed
4 tasks done

[Bug] decoder initialization errors #743

abuturabofficial opened this issue Jan 22, 2025 · 3 comments

Comments

@abuturabofficial
Copy link

abuturabofficial commented Jan 22, 2025

Checklist (Your issue will be automatically closed if you delete this part)

  • I make sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed.
  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I have attached the error report in the issue.

Describe the bug

While watching videos I get decoder initialization errors from time to time, doesn't matter the video I'm watching.

Frequency

Maybe once or twice during watching videos from from enqueue list.... First in the list will play fine and the next in the middle or towards end will error out. I don't see any clear pattern though

Steps to reproduce the bug

Just normally watch the videos.

I have experimented by enabling webm etc, but the error still occurs with or without those advanced settings.

Device (e.g. Pixel 9 Pro)

Moto G54 5G

Error report

Crash Log

{"user_action":"play stream","request":"Player error[type=ERROR_CODE_DECODING_FAILED] occurred while playing https://www.youtube.com/watch?v=xzbPJ9_CoZ8","content_language":"en-US","content_country":"PK","app_language":"en_US","service":"YouTube (Logged in)","package":"InfinityLoop1309.NewPipeEnhanced","version":"4.1.3","os":"Linux motorola/cancunf_g_sysen/cancunf:14/U1TD34.94-12-9-10/cc897d-c6704:user/release-keys 14 - 34","time":"2025-01-22 14:40","exceptions":["com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(137, null, null, video/avc, avc1.640028, 4367443, null, [1920, 1080, 25.0], [-1, -1]), format_supported=YES\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:575)\n\tat android.os.Handler.dispatchMessage(Handler.java:107)\n\tat android.os.Looper.loopOnce(Looper.java:242)\n\tat android.os.Looper.loop(Looper.java:362)\n\tat android.os.HandlerThread.run(HandlerThread.java:85)\nCaused by: com.google.android.exoplayer2.video.MediaCodecVideoDecoderException: Decoder failed: c2.mtk.avc.decoder\n\tat com.google.android.exoplayer2.video.MediaCodecVideoRenderer.createDecoderException(MediaCodecVideoRenderer.java:1512)\n\tat com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:813)\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:998)\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:499)\n\t... 4 more\nCaused by: android.media.MediaCodec$CodecException: Error 0x80000000\n"],"user_comment":""}

Additional context

I'm logged in, without it getting all kinds of error, but now only decoder initialization errors every couple of videos later or during watching a long video (more than 15 minutes). Clicking retry, will successfully play the video from the point where the playback was crashed.

App downloaded directly from GitHub. V4.1.3

@InfinityLoop1308
Copy link
Owner

InfinityLoop1308 commented Jan 23, 2025

Seems related to a long existed Exoplayer bug (google/ExoPlayer#9526, google/ExoPlayer#10652) which is hardware related.

Can you share an error report with webm enabled?

@abuturabofficial
Copy link
Author

This error doesn't occur with WebM.

@InfinityLoop1308
Copy link
Owner

Then the solution is to keep WebM always enabled.

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

2 participants