-
-
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 after adding item to a playlist #11573
Comments
Hum, when I click on Show Channel Details, those pages load slower than usual. Related? |
An update on the crashes themselfs: most of the time NewPipe crashes after adding one or two items successfully from What's New to a playlist, or adding an item while playing. I had once a crash after three items successfully, but my max so far is adding six items successfully to the very same playlist. The log of that crash after those six items is the following: Exception
Crash log
|
Does it happen with all playlists or only your Watch Later playlist? |
I can try fixing this |
@u7656655 Have you figured out what the bug is, here? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
@opusforlife2 Based on the error log, I believe it is caused by line 163 in PlaylistAppendDialog.
playlist.thumbnailUrl is possibly set to null, causing the null pointer exception. It is possible that this is caused by a slow internet connection leading to a failure to retrieve the thumbnail url, though I am not certain. It seems plausible given that @86ul stated that some pages were loading quite slowly for him. And one of the key steps to reproducing the issue was first refreshing the page. However I have not been able to reproduce this myself. In any case, I believe adding a simple not null check should fix this. At the very least, adding such a check should be harmless. If you think I should make this change, feel free to reopen the issue and I'll make a PR. |
If that's the case, then I think a PR would be fine. Are you sure we don't need @86ul to help test? |
It would certainly be convenient to have him help test, especially if he can still reliably reproduce the bug. In any case, I will get that PR done at some point today. |
Whoops, due to personal issues, I forgot to reply to this thread, sorry. Somehow, but I do not know why, NewPipe no longer crashes while adding to a playlist on the very same version 0.27.2. Nothing (much?) else is changed on my FP3. Either way, here are my replies:
It happened with the two playlists that I used for to watch later, but it does no longer crash.
Although I also mentioned the slow loading of a channel, I do not know it that is/was related to NewPipe crashing. I started to use a VPN provider, which slows the connection a bit, but both music, and videos loads normal (enough), that I do not experience a buffer moment. As in, that the music/video player (Spotify, NewPipe, etc) does not pause to load/buffer the next few minutes. Again, I do not know why, but NewPipe 0.27.2 does not crash anymore. I did not change anything (much?) on my FP3, fingered crossed. What I have 'changed' is updating other apps, and the preferred VPN server; without changing the VPN provider though... Either way, I am just an user with some experience in wearing a blue hat, but I am not a ITer myself. |
Interesting. Perhaps your VPN server was causing some issues. It's difficult to confirm whether it was or wasn't your internet connection, but it seems adding a not null check as I proposed would still prevent similar crashes in the future. |
Hum, I had my notifications set wrongly on my phone and/or github app, thus yet another late reply: I already saw that this issue is taken up and dealt with in the upcoming version of NewPipe. Thus I merely would like to reply to your (implied?) question about the VPN: I started to use it late August 2024, just before YouTube started to 'misbehave', and NewPipe had to be updated up to 0.27.2. Then this issue itself started to occure, but persisted up into October, and did not came back, so far... Besides updating both LOS21, and other apps (and removing the Signal-fork Molly [related?]), I did nothing else than using this phone as my daily phone. Thus maybe some (underlying) lib's or something else was causing this issue. 'Even' reorganising my own playlists did not trigger this issue. Either way, thanks again for this app, and following up support. |
Checklist
Affected version
0.27.2
Steps to reproduce the bug
*I have over 50 playlists, and the playlist I am adding to is just a playlist of items that I would like to watch. When I have watched it, I just delete that item from this playlist.
Expected behavior
Actual behavior
Screenshots/Screen recordings
No response
Logs
Exception
Crash log
Affected Android/Custom ROM version
LineageOS 21 21-20240925-NIGHTLY-FP3
Affected device model
FairPhone 3
Additional information
No response
The text was updated successfully, but these errors were encountered: