Skip to content

com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error #12365

@tectda17

Description

@tectda17

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.27.7

Steps to reproduce the bug

{"user_action":"play stream","request":"Player error[type=ERROR_CODE_TIMEOUT] occurred while playing https://www.youtube.com/watch?v=42O5G1ekYz4","content_language":"de-DE","content_country":"DE","app_language":"de_DE","service":"YouTube","package":"org.schabi.newpipe","version":"0.27.7","os":"Linux Android 7.1.1 - 25","time":"2025-06-17T07:57:26.613+02:00","exceptions":["com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error\n\tat com.google.android.exoplayer2.ExoPlayerImpl.setVideoOutputInternal(ExoPlayerImpl.java:2562)\n\tat com.google.android.exoplayer2.ExoPlayerImpl.setVideoSurface(ExoPlayerImpl.java:1293)\n\tat org.schabi.newpipe.player.playback.SurfaceHolderCallback.surfaceDestroyed(SurfaceHolderCallback.java:53)\n\tat android.view.SurfaceView.updateWindow(SurfaceView.java:588)\n\tat android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:247)\n\tat android.view.View.dispatchWindowVisibilityChanged(View.java:10357)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)\n\tat android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1544)\n\tat android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)\n\tat android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6337)\n\tat android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)\n\tat android.view.Choreographer.doCallbacks(Choreographer.java:686)\n\tat android.view.Choreographer.doFrame(Choreographer.java:621)\n\tat android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)\n\tat android.os.Handler.handleCallback(Handler.java:751)\n\tat android.os.Handler.dispatchMessage(Handler.java:95)\n\tat android.os.Looper.loop(Looper.java:154)\n\tat android.app.ActivityThread.main(ActivityThread.java:6165)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:792)\nCaused by: com.google.android.exoplayer2.ExoTimeoutException: Detaching surface timed out.\n\tat com.google.android.exoplayer2.ExoPlayerImpl.setVideoOutputInternal(ExoPlayerImpl.java:2560)\n\t... 34 more\n"],"user_comment":""}

Expected behavior

No exception

Actual behavior

com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

No response

Affected device model

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssue or discussion is a duplicate of an existing issue or discussiontemplate ignoredThe user didn't follow the template/instructions (or removed them)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions