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

Crash when going fullscreen (especially Android TVs) #9023

Closed
6 tasks done
dolorosus opened this issue Sep 25, 2022 · 137 comments · Fixed by #10122
Closed
6 tasks done

Crash when going fullscreen (especially Android TVs) #9023

dolorosus opened this issue Sep 25, 2022 · 137 comments · Fixed by #10122
Labels
Android TV Issue is related to Android TV ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug player Issues related to any player (main, popup and background)

Comments

@dolorosus
Copy link

dolorosus commented Sep 25, 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

v0.24.0

Steps to reproduce the bug

  1. Start any video and try to switch to fullscreen mode results in an error message (see screenshot).
  2. No chance to continue the video, 'cause only an remote control is attached, but got no focus to the play button. Only chance is going back and restart the video which brings us back 1.

Expected behavior

entering fullscreen mode

Actual behavior

see attached [screenshot]

Screenshots/Screen recordings

Screenshot 2022-09-25 210614

Logs

No response

Affected Android/Custom ROM version

AndroidTV 9 and FireTV

Affected device model

No response

Additional information

No response

@dolorosus dolorosus added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Sep 25, 2022
@opusforlife2
Copy link
Collaborator

Thank you. Being polite never killed anyone.

@opusforlife2 opusforlife2 added ASAP Issue needs to be fixed as soon as possible 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 Sep 25, 2022
@opusforlife2
Copy link
Collaborator

The screenshot you've posted is of the toast. Can you check your notifications to fetch the actual error?

@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
@dolorosus
Copy link
Author

I know the screenshot give no useful information, but how should I access notifications AndroidTV?

@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 25, 2022
@opusforlife2
Copy link
Collaborator

Okay, it seems like providing app notifications on Android TV is a no-no: https://scribe.rip/android-tv-application-notifications-on-o-c6820ada2086

@Stypox Can it be made so that errors which would generate error notifications on handhelds are made to open the error activity on TV instead?

@j-seeley
Copy link

j-seeley commented Sep 28, 2022

Same issue on Android TV. Videos in non-full screen play fine in v0.24 but when clicking on the full screen icon, the screen is filled with green except the video window stays the same size. At that point, the video freezes, but the audio continues. When I back out of full screen, it then crashes. (previous recent versions of NewPipe worked well with no issues)
Screenshot_20220928-091531
Screenshot_20220928-092145
Screenshot_20220928-092156
I don't have time right now to figure out how to submit this report in live text format from Android TV, so I made some screenshots for now.

@fliegentoeter
Copy link

Same Issue on a FireTV 4K stick. Videos do not open in Fullscreen and when manually clicking on Full-Screen newpipe crashes...

@AudricV AudricV changed the title No fullscreen possible with AndroidTV No fullscreen possible with Android TV Sep 28, 2022
@AudricV AudricV pinned this issue Sep 28, 2022
@migbox
Copy link

migbox commented Sep 30, 2022

I have the same issue on Sony Android TV., now I reinstalled the 23.3 version, that works.
may I suggest to add a shortcut to switch into/out of fullscreen that can be used from a tv remote?

@opusforlife2
Copy link
Collaborator

may I suggest to add a shortcut to switch into/out of fullscreen that can be used from a tv remote?

Is the full screen button non-selectable or invisible?

@dolorosus
Copy link
Author

I have the same issue on Sony Android TV., now I reinstalled the 23.3 version, that works. may I suggest to add a shortcut to switch into/out of fullscreen that can be used from a tv remote?

I'm afraid that won't help. As soon as you switch to full screen mode, you get an error message. After that, no further operation is possible, because none of the controls get the focus anymore.

It would make more sense to eliminate the cause.
in versions <23.0 it worked, only since V23.0 there are problems with the fullscreen mode.

@fliegentoeter
Copy link

What i've learned on AndroidTV: Do not update newpipe when everything is working, wait until youtube makes changes and you are forced to update :)
Same goes for a lot of other apps that are simply not designed for AndroidTV...

@opusforlife2
Copy link
Collaborator

What i've learned on AndroidTV: Do not update newpipe when everything is working, wait until youtube makes changes and you are forced to update :)
Same goes for a lot of other apps that are simply not designed for AndroidTV...

What your actual learning should be is that you should help us test upcoming changes on your TV device so that our entire TV userbase doesn't have to suffer when a new version is released.

No one in the dev team has an Android TV. If no user steps up to help test, then issues like this are bound to come up again and again.

@migbox
Copy link

migbox commented Oct 1, 2022 via email

@dolorosus
Copy link
Author

... No one in the dev team has an Android TV. If no user steps up to help test, then issues like this are bound to come up again and again.

Maybe you should go a little bit more into detail how to get a test version?

@fliegentoeter
Copy link

I get that. But I have no idea how to test these versions and/or install them with a regular newpipe version installed.
It is quite complicated to downgrade by itself and copy/import my old settings with only a remote control by itself.
So my solutuion is simply to run the version until something breaks and upgrade then when I have to.
There are no notifications, so I do not even get a notice when a new version would be available in Neo-Store (only Fdroid-Store I found usable with a remote control).
As mentioned before, the old v23 from fdroid works great.

@opusforlife2
Copy link
Collaborator

I will be glad to do tests on your behalf.

@migbox Shall I add your name to https://github.com/TeamNewPipe/NewPipe/wiki/Testers#android-tv?

Maybe you should go a little bit more into detail how to get a test version?

@dolorosus At the bare minimum, we need our release candidates tested to catch any regressions (bugs that are not present in the current release, but were added by new changes since then). You can grab these from the "RC [version number]" issues that we pin for at least a week before releasing a new version, precisely for this reason.

Apart from that, every PR that could possibly affect TV users should be tested. For the most part, this includes PRs that affect the player code. The PR description has a "testing" section which describes how to obtain the needed debug APKs for this.

But I have no idea how to test these versions and/or install them with a regular newpipe version installed.

@fliegentoeter Stypox did some magic years ago which lets you install several different versions of Newpipe side by side with the current release. The APKs you download from different PRs or from the RC issues have separate package names. This means that if you have 2 APKs from 2 different PRs, they will install side-by-side. But if you download a newer APK from one of the PRs, one of the 2 APKs will get updated. This means you can continue to test newer changes in PRs as they get updated, and also that you can test multiple PRs in parallel.

You should never need to touch your official release version for any reason. One of our developers used to keep a record 60+ Newpipe builds on their device at a time.

And there is no need at all to import/export anything. You should definitely keep a database export of your current release build as a safety net in any case. Just make sure to never mess with database backups with development builds, because any changes there could potentially corrupt your "true" database of the release version.

@migbox

This comment was marked as off-topic.

@dolorosus

This comment was marked as off-topic.

@ingmarcosp

This comment was marked as duplicate.

@elparra72
Copy link

elparra72 commented Feb 4, 2023 via email

@dolorosus
Copy link
Author

What about this? It is based on the latest commit on the dev-v2 branch of exoplayer (which doesn't crash my phone anymore), with a modification that makes it so that deviceNeedsSetOutputSurfaceWorkaround is always true. app-debug.zip

On Philips (androidTV 9) switching to fullscreen results in a black screen.

@disconnect5852
Copy link

disconnect5852 commented Feb 4, 2023 via email

@JPluess
Copy link

JPluess commented Feb 12, 2023

Have the same issue here.
20230212_093440

I could get an error maybe this helps

@srad
Copy link

srad commented Feb 14, 2023

Just tested version 0.25.0 on Firestick 4k Max, when I click the fullscreen button it instantly crashes. Only playing the small window is possible.

@NeloKa61
Copy link

Testing 0.25.0 when playing video it first crash but when i click play again it play normally but when clicked minimizes it crashed and cannot return to fullscreen playback device B860H v5.0
Default setting MPEG4 except start playback on fullscreen ticked on

@Stypox
Copy link
Member

Stypox commented Feb 21, 2023

Stop writing the same comment hundreds of times. We know what the issue is, as the title of this issue says, so there is no need to write it again multiple times. And some people also captured the stack trace multiple times, so there is no need to capture it again (unless you find some differences or you are testing an APK some team member has sent).

@moceap

This comment was marked as duplicate.

@blackboxlogic

This comment was marked as resolved.

@peat80

This comment was marked as resolved.

@Stypox Stypox pinned this issue May 26, 2023
@TobiGr
Copy link
Member

TobiGr commented Jul 8, 2023

@ROBYER1 @somos61 @dolorosus and to everyone who is getting black screen while playing videos, please check out #8829 (comment)

@agnel18
Copy link

agnel18 commented Mar 24, 2024

Hello I'm having the same issue Not Working in Full Screen Mode on my Sony Bravia KD-65X82L.
When I open a video and click on the full screen button - I get an error stating to look at the notifications but,
Im not sure how to access the error notifications.
I can help as a test subject.
Version 26.1

@opusforlife2
Copy link
Collaborator

@agnel18 Open a new issue.

@Diacrisa

This comment was marked as outdated.

@CommonLoon102

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android TV Issue is related to Android TV ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug player Issues related to any player (main, popup and background)
Projects
None yet