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

Unrecoverable Player error randomly occurs for some videos. #10526

Closed
6 tasks done
xenomorph1096 opened this issue Oct 30, 2023 · 8 comments
Closed
6 tasks done

Unrecoverable Player error randomly occurs for some videos. #10526

xenomorph1096 opened this issue Oct 30, 2023 · 8 comments
Labels
question Not really an issue, but more of a question about how something works

Comments

@xenomorph1096
Copy link

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.25.2

Steps to reproduce the bug

  1. Go to a video
  2. Click on play.

Expected behavior

Video plays

Actual behavior

Unrecoverable player error.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_DECODER_INIT_FAILED] occurred while playing https://www.youtube.com/watch?v=UehnwGR8k20
  • Content Country: IN
  • Content Language: en-IN
  • App Language: en_IN
  • Service: YouTube
  • Version: 0.25.2
  • OS: Linux samsung/a53xnaeea/a53x:13/TP1A.220624.014/A536BXXU7CWGJ:user/release-keys 13 - 33
Crash log

com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(315, null, null, video/x-vnd.on2.vp9, vp9, 21603121, en, [3840, 2160, 60.0], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:578)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: c2.android.vp9.decoder, Format(315, null, null, video/x-vnd.on2.vp9, vp9, 21603121, en, [3840, 2160, 60.0], [-1, -1])
	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(MediaCodecRenderer.java:1021)
	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodecOrBypass(MediaCodecRenderer.java:537)
	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1453)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:917)
	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.readSourceOmittingSampleData(MediaCodecRenderer.java:954)
	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:769)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1007)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:502)
	... 4 more
Caused by: java.lang.IllegalArgumentException
	at android.media.MediaCodec.native_configure(Native Method)
	at android.media.MediaCodec.configure(MediaCodec.java:2214)
	at android.media.MediaCodec.configure(MediaCodec.java:2130)
	at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter.initialize(AsynchronousMediaCodecAdapter.java:156)
	at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter.access$100(AsynchronousMediaCodecAdapter.java:50)
	at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter$Factory.createAdapter(AsynchronousMediaCodecAdapter.java:103)
	at com.google.android.exoplayer2.mediacodec.DefaultMediaCodecAdapterFactory.createAdapter(DefaultMediaCodecAdapterFactory.java:111)
	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodec(MediaCodecRenderer.java:1099)
	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(MediaCodecRenderer.java:1010)
	... 11 more


Affected Android/Custom ROM version

No response

Affected device model

No response

Additional information

No response

@xenomorph1096 xenomorph1096 added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Oct 30, 2023
@vladtepesch
Copy link

vladtepesch commented Oct 30, 2023

I have the same issue on every video I try to start. Sometimes the audio starts playing, but video not and the error popup is shown.

Here is my crashlog:


## Exception
* User Action: play stream
* Request: Player error[type=ERROR_CODE_DECODER_INIT_FAILED] occurred while playing https://www.youtube.com/watch?v=Tx9TwwuUfLE
* Content Country: DE
* Content Language: de-
* App Language: de_DE
* Service: YouTube
* Version: 0.25.2
* OS: Linux HUAWEI/BAH2-W19EEA/HWBAH2:8.0.0/HUAWEIBAH2-W19/295(OCEC431):user/release-keys 8.0.0 - 26
<details><summary><b>Crash log </b></summary><p>


com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(299, null, null, video/avc, avc1.64002A, 3462047, null, [1920, 1080, 50.0], [-1, -1]), format_supported=YES
 at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:578)
 at android.os.Handler.dispatchMessage(Handler.java:104)
 at android.os.Looper.loop(Looper.java:166)
 at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.IMG.MSVDX.Decoder.AVC, Format(299, null, null, video/avc, avc1.64002A, 3462047, null, [1920, 1080, 50.0], [-1, -1])
 at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(MediaCodecRenderer.java:1021)
 at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodecOrBypass(MediaCodecRenderer.java:537)
 at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1453)
 at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:917)
 at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.readSourceOmittingSampleData(MediaCodecRenderer.java:954)
 at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:769)
 at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1007)
 at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:502)
 ... 3 more
Caused by: android.media.MediaCodec$CodecException: start failed
 at android.media.MediaCodec.native_start(Native Method)
 at android.media.MediaCodec.start(MediaCodec.java:2063)
 at com.google.android.exoplayer2.mediacodec.SynchronousMediaCodecAdapter$Factory.createAdapter(SynchronousMediaCodecAdapter.java:58)
 at com.google.android.exoplayer2.mediacodec.DefaultMediaCodecAdapterFactory.createAdapter(DefaultMediaCodecAdapterFactory.java:113)
 at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodec(MediaCodecRenderer.java:1099)
 at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(MediaCodecRenderer.java:1010)
 ... 10 more

</details>
<hr>

@opusforlife2
Copy link
Collaborator

format_supported=NO_EXCEEDS_CAPABILITIES

Use a lower resolution or older format that your device supports.

@opusforlife2 opusforlife2 added question Not really an issue, but more of a question about how something works and removed bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Oct 31, 2023
@xenomorph1096
Copy link
Author

xenomorph1096 commented Oct 31, 2023

There is no option for changing the format OR resolution.
The button for changing resolution is not accessible, since the player crashes. How do I change it?

Screenshot_20231031_051948_NewPipe

@opusforlife2
Copy link
Collaborator

From settings.

@xenomorph1096
Copy link
Author

Ah, OK. This fixes it. Thankyou!

@SrivatsanSenthilkumar

This comment was marked as off-topic.

@SrivatsanSenthilkumar

This comment was marked as off-topic.

@opusforlife2
Copy link
Collaborator

Decoder failed

@SrivatsanSenthilkumar Still a problem with your device's decoder. Same solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not really an issue, but more of a question about how something works
Projects
None yet
Development

No branches or pull requests

4 participants