-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 player service is being stopped in some cases (NullPointerException) #11029
Comments
Is that the error you get each time? This looks like a duplicate of #10097, but your error is different, |
No, that's completely different and is very likely a 0.27.0 regression related to media notification actions changes. I can reproduce this issue if a playback error occurs when playing a content in the main player (so it is closed due to the error), while the player service is being stopped. |
I got the same error, but in a different situation. I was watching a video and wanted to play another one. I clicked on the other one. Then the message appeared. After clicking away the error message, I had to restart NewPipe. Smartphone: Fairphone 4 (CalyxOS 5.6.3, Android 14) Exception
Crash log
Feel free to hide my message if it's annoying. However, since there was the "Waiting for Author" tag for a short time, I thought I'd write my error message briefly too. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
The same issue happened to me too, but it happened very recently (10/07/2024 at 00:00) since the 403 error now affects all video instead of only some videos before (and sometimes some videos gets 403 after passed near 1 minute)(see #11255), and on a different device, it happened on both NewPipe and Tubular fork as well, even Seal/yt-dlp constantly got connection reset by peer error |
Fixed by #11261 |
Checklist
Affected version
0.27.0
Steps to reproduce the bug
Expected behavior
Video continues to play
Actual behavior
Video stops playing and NewPipe opens up (even when playing in the background) with the guru meditation screen.
I'll need to close and open the app to recover. Also sometimes my position in the video will be lost, so even going to it through the History tab won't allow me to resume where I left off. That makes it even more annoying.
Screenshots/Screen recordings
No response
Logs
Exception
Crash log
Affected Android/Custom ROM version
No response
Affected device model
Samsung Galaxy ZFold 4
Additional information
Phone: SM-F936U1
One UI 5.0
Android 13
Kernel Version: 5.10.81-android12-9-25407272-abF936U1UEU1BVKB
This is a de-Googled phone, so it doesn't run Google Play Services, which has been put to deep sleep via adb.
Maybe you can add a null check here:
NewPipe/app/src/main/java/org/schabi/newpipe/player/mediasession/MediaSessionPlayerUi.java
Line 215 in 879d7a2
Or maybe it's clear to you why
NewPipe/app/src/main/java/org/schabi/newpipe/player/mediasession/MediaSessionPlayerUi.java
Line 280 in 879d7a2
sessionConnector
is somehow being unset?This happens very often to me, basically whenever I leave the house while playing a video in the background, or entering.
The text was updated successfully, but these errors were encountered: