Skip to content

[Bug] YouTube video stops/crashes when Rotating screen #2940

Description

@ProvablyAudit

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

Logs:

{"user_action":"play stream","request":"Player error[type=ERROR_CODE_FAILED_RUNTIME_CHECK] occurred while playing (Anonymous)","endpoint":"visionos","package":"InfinityLoop1309.NewPipeEnhanced","version":"5.3.1","os":"Linux Android 17 - 37","time":"2026-09-15 21:16","exceptions":["com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:276)\n\tat android.os.Handler.dispatchMessageImpl(Handler.java:138)\n\tat android.os.Handler.dispatchMessage(Handler.java:125)\n\tat android.os.Looper.loopOnce(Looper.java:296)\n\tat android.os.Looper.loop(Looper.java:397)\n\tat android.os.HandlerThread.run(HandlerThread.java:139)\nCaused by: java.lang.IllegalArgumentException: \n\tat android.media.MediaCodec.native_setSurface(Native Method)\n\tat android.media.MediaCodec.setOutputSurface(MediaCodec.java:2647)\n\tat com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter.setOutputSurface(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:6)\n\tat com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:1)\n\tat com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutput(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:75)\n\tat com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:78)\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:21)\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:9)\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:14)\n\tat com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(r8-map-id-6c8e3dd3160be81a80a9d5275bebe86313695bda6011e8579f730b08683dad6a:143)\n\t... 5 more\n"],"user_comment":""}

Source: https://www.youtube.com/watch?v=Rf5Tb8brMSI","content_language":"en-US","content_country":"US","app_language":"en_US_#u-fw-mon-ms-metric-mu-celsius","service":"YouTube

Version

Latest 5.3.1

Frequency

Always (100% of the time)

Device

Android 17

Steps to reproduce the bug

  1. Open video
  2. Start the video
  3. Rotate screen
  4. Now it stops playing and need to start agajn

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions