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

"Detaching surface timed out" error #9016

Open
6 tasks done
ghost opened this issue Sep 24, 2022 · 3 comments
Open
6 tasks done

"Detaching surface timed out" error #9016

ghost opened this issue Sep 24, 2022 · 3 comments
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)

Comments

@ghost
Copy link

ghost commented Sep 24, 2022

Checklist

  • I am able to reproduce the bug with the latest version.
  • 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.24.0

Steps to reproduce the bug

  1. Play any YouTube video.
  2. Enter Full Screen.
  3. After playing for a bit, double tap to go forward or backwards in the video.
  4. Infinite buffering starts.
  5. Exiting fullscreen takes a bit longer.
  6. A notification shows up: Recovering from Player error.

Expected behavior

Video should Play and no player error should show up.

Actual behavior

The recovering from player error shows up, after that no videos can be played until the app is cleared from RAM and opened again.
This error also seems to happen in only in Fullscreen mode. And it happens only when the video is navigated using the double tapping method, using the video progress bar to go forward and backwards works fine.

Screenshots/Screen recordings

Here is a screen recording.

signal-2022-09-24-151553.mp4

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_TIMEOUT] occurred while playing https://www.youtube.com/watch?v=uBEL3YVzMwk
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: YouTube
  • Version: 0.23.3
  • OS: Linux Android 12 - 32
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
	at com.google.android.exoplayer2.ExoPlayerImpl.setVideoOutputInternal(ExoPlayerImpl.java:2489)
	at com.google.android.exoplayer2.ExoPlayerImpl.setVideoSurface(ExoPlayerImpl.java:1246)
	at org.schabi.newpipe.player.playback.SurfaceHolderCallback.surfaceDestroyed(SurfaceHolderCallback.java:53)
	at android.view.SurfaceView.notifySurfaceDestroyed(SurfaceView.java:1981)
	at android.view.SurfaceView.updateSurface(SurfaceView.java:1157)
	at android.view.SurfaceView.setWindowStopped(SurfaceView.java:299)
	at android.view.SurfaceView.surfaceDestroyed(SurfaceView.java:1832)
	at android.view.ViewRootImpl.notifySurfaceDestroyed(ViewRootImpl.java:1986)
	at android.view.ViewRootImpl.setWindowStopped(ViewRootImpl.java:1943)
	at android.view.WindowManagerGlobal.setStoppedState(WindowManagerGlobal.java:662)
	at android.app.Activity.performStop(Activity.java:8281)
	at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5215)
	at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5784)
	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5703)
	at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:71)
	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7870)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: com.google.android.exoplayer2.ExoTimeoutException: Detaching surface timed out.
	at com.google.android.exoplayer2.ExoPlayerImpl.setVideoOutputInternal(ExoPlayerImpl.java:2487)
	... 25 more


Affected Android/Custom ROM version

Android 12 / LineageOS 19.1

Affected device model

Xiaomi Redmi Note 9 [Merlin]

Additional information

This error seems a bit different than the other player errors as it shows 'surfaceDestroyed' in the log.

@ghost ghost added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Sep 24, 2022
@opusforlife2 opusforlife2 added player Issues related to any player (main, popup and background) and removed needs triage Issue is not yet ready for PR authors to take up labels Sep 24, 2022
@opusforlife2 opusforlife2 changed the title Unexpected Player Error "Detaching surface timed out" error Sep 24, 2022
@Stypox
Copy link
Member

Stypox commented Sep 25, 2022

Could you check if this is still reproducible in 0.24.0?

@opusforlife2 opusforlife2 added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Sep 25, 2022
@ghost
Copy link
Author

ghost commented Sep 28, 2022

Could you check if this is still reproducible in 0.24.0?

I'm going to fresh install the 24.0 build today and then I'll update here weather the issue is reproducible or not.

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Sep 28, 2022
@ghost
Copy link
Author

ghost commented Sep 28, 2022

Could you check if this is still reproducible in 0.24.0?

I am able to reproduce this bug exactly in the 24.0 version. Really hope someone can shed some light into this :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)
Projects
None yet
Development

No branches or pull requests

2 participants