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

Error, Can't play videos on full screen #9329

Closed
6 tasks done
307jose opened this issue Nov 7, 2022 · 16 comments
Closed
6 tasks done

Error, Can't play videos on full screen #9329

307jose opened this issue Nov 7, 2022 · 16 comments
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)

Comments

@307jose
Copy link

307jose commented Nov 7, 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.1

Steps to reproduce the bug

1.- Open NewPipe and reproduce any video
2.- The video plays without any error, but if you turn the cell phone to enter full-screen mode the error happens.

Expected behavior

The video plays without any error if you turn the cell phone to enter full-screen mode.

Actual behavior

The video plays with error if you turn the cell phone to enter full-screen mode.

Screenshots/Screen recordings

Screenshot_20221107-011618

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_FAILED_RUNTIME_CHECK] occurred while playing https://www.youtube.com/watch?v=22mEBhcdR1M
  • Content Country: MX
  • Content Language: es-MX
  • App Language: es_MX
  • Service: YouTube
  • Version: 0.24.1
  • OS: Linux Android 6.0 - 23
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:207)
	at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.IllegalArgumentException
	at android.media.MediaCodec.native_setSurface(Native Method)
	at android.media.MediaCodec.setOutputSurface(MediaCodec.java:1810)
	at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter$$ExternalSyntheticApiModelOutline0.m(R8$$SyntheticClass)
	at com.google.android.exoplayer2.mediacodec.SynchronousMediaCodecAdapter.setOutputSurface(SynchronousMediaCodecAdapter.java:189)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(MediaCodecVideoRenderer.java:1451)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutput(MediaCodecVideoRenderer.java:646)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(MediaCodecVideoRenderer.java:584)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(ExoPlayerImplInternal.java:1546)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(ExoPlayerImplInternal.java:1510)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(ExoPlayerImplInternal.java:1485)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:521)
	... 3 more


Affected Android/Custom ROM version

Linux Android 6.0 - 23

Affected device model

Alcatel Shine (5080A)

Additional information

No response

@307jose 307jose added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Nov 7, 2022
@somos61
Copy link

somos61 commented Nov 7, 2022

Confirm, rotating screen to landscape while playing video fails with error. Also trying to go to fullscreen from popup fails.
Android 7.0

@stevep99
Copy link

stevep99 commented Nov 9, 2022

Confirmed here too, version 0.24.1, with an Android 6.0 device.
All videos crash when played in full screen landscape mode. Works OK as portrait or popup.

(NB also: this issue was not present in 0.23.2.)

@opusforlife2 opusforlife2 mentioned this issue Nov 9, 2022
6 tasks
@rubbernglue
Copy link

I have this exact same problem, still I have not tried 0.24.1 yet though because you still confirms the problem hanging on from 0.24.0. I use this mainly on my Philips Android TV and if I try to make it full screen in any way the app crashes.
Imagewise it works well on 0.23.3, however other issues have emerged with that version.

@mart-hill
Copy link

I can confirm that on the Philips 50PUS8546 AndroidTV, updated - since NewPipe 0.24 version, it's impossible to play anything on full screen (by selecting that square on the bottom right corner). I can only view the content in half-screen, squeezed.

@opusforlife2 opusforlife2 added player Issues related to any player (main, popup and background) Android TV Issue is related to Android TV and removed needs triage Issue is not yet ready for PR authors to take up labels Nov 11, 2022
@somos61
Copy link

somos61 commented Nov 11, 2022

i have made my video of error:
https://user-images.githubusercontent.com/117638248/201401712-2820aa78-7e09-4d6f-be54-89d636dec61d.mp4

log is nearly the same:
`## Exception

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

com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:203)
	at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.IllegalArgumentException
	at android.media.MediaCodec.native_setSurface(Native Method)
	at android.media.MediaCodec.setOutputSurface(MediaCodec.java:1914)
	at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter$$ExternalSyntheticApiModelOutline0.m(R8$$SyntheticClass)
	at com.google.android.exoplayer2.mediacodec.SynchronousMediaCodecAdapter.setOutputSurface(SynchronousMediaCodecAdapter.java:189)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(MediaCodecVideoRenderer.java:1451)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutput(MediaCodecVideoRenderer.java:646)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(MediaCodecVideoRenderer.java:584)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(ExoPlayerImplInternal.java:1546)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(ExoPlayerImplInternal.java:1510)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(ExoPlayerImplInternal.java:1485)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:521)
	... 3 more`

@somos61
Copy link

somos61 commented Nov 11, 2022

As well the problem persists for:

  • going to fullscreen from popup
fs_err_cnv.mp4
  • going to background from mini/popup
bg_err_cnv.mp4

Crash logs is the same as above

@mart-hill
Copy link

I'll have to check, if I'm able to pick up the crash log from the program on this dreary AndroidTV - this OS sucks more and more with every iteration (I can't even open HTTP/HTTPS links in it). :)
This crash occurs no matter the video format I choose, be it WebM 2160p, or MP4 (probably AVC codec) 1080p. I hope it's not dependent on SoC, in my case (probably) MT5887 with Mali-G51 M4 GPU.

@opusforlife2 opusforlife2 removed the Android TV Issue is related to Android TV label Nov 14, 2022
@opusforlife2
Copy link
Collaborator

Could you guys try #9396 (comment)?

@somos61
Copy link

somos61 commented Nov 14, 2022

Could you guys try #9396 (comment)?

Seems like in my case clearing app data/cache, whatever, is not working. Tried also fresh install, still there. As well the problem persists the same for app-debug channel tabs variant of NewPipe at #9182

@mart-hill
Copy link

Removing that AndroidTV label means this app is not supposed to be run on those devices, right? Cause the issue persists, no matter if I wipe the appdata or not.

@opusforlife2
Copy link
Collaborator

The label was added by mistake because some comments were from TV users. But this issue seems common to mobile and TV.

The app is intended to work on TVs, though it is not as well-supported.

@mart-hill
Copy link

Thanks a lot!
For now I'll wait patiently - the normal YT app is practically unusable on AndroidTV OS (ads destroyed the comfort of using it completely), and it's not possible to enable HTTPS filtering anymore with AdGuard on this OS. It's not even opening HTTPS links in standard browser (at least on Philips 50PUS8546). NewPipe is the one of the rarest gems out there. 🥇

@chefexperte
Copy link

I'm having a similar issue on Android 13.

The error occurs when rotating the view (for me it crashes when rotating from fullscreen to normal) or changing the resolution of the playback. Sometimes it happens when a video ends as well, and in a few cases also just randomly during playback.

My crash log is the following:

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_FAILED_RUNTIME_CHECK] occurred while playing https://www.youtube.com/watch?v=wdBGCI0_wfg
  • Content Country: GB
  • Content Language: en-GB
  • App Language: en_GB
  • Service: YouTube
  • Version: 0.24.1
  • OS: Linux Android 13 - 33
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.IllegalArgumentException
	at android.media.MediaCodec.native_setSurface(Native Method)
	at android.media.MediaCodec.setOutputSurface(MediaCodec.java:2233)
	at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter$$ExternalSyntheticApiModelOutline0.m(Unknown Source:0)
	at com.google.android.exoplayer2.mediacodec.AsynchronousMediaCodecAdapter.setOutputSurface(AsynchronousMediaCodecAdapter.java:262)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(MediaCodecVideoRenderer.java:1451)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutput(MediaCodecVideoRenderer.java:646)
	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(MediaCodecVideoRenderer.java:584)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(ExoPlayerImplInternal.java:1546)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(ExoPlayerImplInternal.java:1510)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(ExoPlayerImplInternal.java:1485)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:521)
	... 4 more


@disconnect5852
Copy link

Same here: xiaomi TV stick, android TV 11, cant play full screen. If i try, after that nothing will play, even if not full screen. Restart of the tv stick is needed to try again

@g1t3m
Copy link

g1t3m commented Jan 5, 2023

[ Crash on Rotation (and startup initially) #216 ]
(polymorphicshade#216)
Search for a video (likely optional)
Click on a video
Rotate the screen quickly while the video is buffering or click the fullscreen icon on the video
Expected: Video plays in landscape mode
Actual: App crashes and resets to initial Newpipe screen.

The above issue occurs even in the normal release of NewPipe.

The crash occurred with the "start main player in full screen" setting turned off and my phone's auto rotate setting turned off.

Phone: Google Pixel 6 Pro
OS: GrapheneOS, Android 13
Newpipe Version: 0.24.1
App Fork: Sponsorblock

I can attest to this issue of Newpipe crashing whenever I expand the video to fullscreen when pressing the fullscreen button. It doesn't happen on all videos, but once in a while.

@Stypox
Copy link
Member

Stypox commented Jan 12, 2023

Duplicate of #9023

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

10 participants