-
-
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
Constantly getting "Newpipe isn't responding" popups randomly while watching Youtube videos #9390
Comments
Try clearing cache check it if it works |
If the database is not imported after clearing data does the problem still persist? |
I tried again by clearing the app cache and not re-importing the Newpipe database file but the issue still occurred after watching some videos right after. |
Same for me. I also tried remove app completely and install again. Same result. Spec: |
Same here redmi note 11 eu |
I was experiencing this bug, too. Most frequently. Upon the 'close/wait' message, I tapped 'report via email' already dozens of times. Clearing the cache had no effect. This bug persisted already since the last two updates of the app. Re-installing helped. Android 9, Sony xz1c. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Did anyone of you actually try to uninstall/reinstall? |
Yes, I even got the same thing on a completely fresh install without any imported settings when trying out the pre 0.24.1 release. Pixel 6 Pro |
I have uninstalled and reinstalled multiple times already and this issue persists. |
One thing I have noticed is that when I downgraded to v0.23.3 the issue does not occur but when using v0.24.0 and v0.24.1 the issue occurs so I believe that whatever is causing the issue is something that was changed in version v0.24.0. |
This comment was marked as duplicate.
This comment was marked as duplicate.
As this issue is hard to reproduce, we can't reproduce it on our side and trace the origin of the ANR (Application Not Responding), even if we know that the issue comes from the player. Collecting logs from ADB's logcat when this issue occur would be a great first step to debug this issue (remember to remove personal information in logcats before posting them publicly). |
If you have root, using App Manager's in-built Log Viewer lets you toggle a setting to do some of this automatically. It won't remove everything, but it will make it easier for you to do the rest. |
Waited a bit before reporting it myself, but has been going on for over a month now, on roughly every 3rd Video I watch. 1000005648_1.mp4Happens completely randomly. And the weird thing is, the App functions 100% fine. It's just the message... |
Just commented here but I may have found a way to reproduce this. Watch a video, minimize the player to where you can browse other videos and then click on another video without closing the first video. It will take a few minutes for the ANR dialogue to popup. I have found that if you close the video player before clicking on another video, the ANR dialogue won't popup. |
I am getting the same issue, logged a tracker - #9652 Going back to NewPipe 0.23.3 for the time being. |
@b1k3rdude Does 23.3 still work? I thought a YT change broke it |
Just wanted to clarify, that with my Pixel 6 Pro, it happens also randomly, without interaction. Like 5 mins into watching a video... |
This is still happening for me in version 0.25.0 RC2 #9712. Makes the app nearly unusable as even if you choose 'Wait', the dialog just comes up again a few seconds later. |
I think this is related to "ForegroundServiceDidNotStartInTime" or something, #9358 |
Updated to 0.25.0. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
@blauertee It's definitely not just Pixel phones. It also happens on my OnePlus 8 with LineageOS 20. There was a time a few months ago maybe where it was happening on nearly every video I opened (I might have been on an older version of LineageOS back then too; edit: according to my last comment that was early February). It's far less frequent now but it does still come up occasionally and I have to restart the app. |
Okay managed to isolate the relevant logcat lines. PID: 7460 is NewPipe here :) The Output always generated when "Not Responding ..." pops up:
When I press Close on the popup:Newpipe is mentioned here a few times for not existing by a seemingly confused MediaPlayer. (Not sure whether this is relevant)
The last three lines repeat for some more time. |
Logcat logs doesn't seem to be useful for us. We need ANRs traces, which you can probably get on Android Studio using the profiler. Analysis of these ANRs would higly appreciated, as we are not able to identify precisely from where the issue comes from. |
@AudricV Alright here you are :) |
I don't see anything useful in the file you sent. Thanks anyway. |
Hmm sad tell me if you need anything else. This makes using the App really annoying. Oh and I forgot to include this from the ANR log:
|
Probably this is not news to anyone here, but just in case (everybody missed the obvious sometimes). The Google Diagnosing ANRs FAQ says:
This seems to be coherent with the logcat data where a binder is expected but null received. I don't know any of the context but maybe there is a simple way to do this async. or to lower the timeout and handle null, so the UI is not blocked for so long? In case you even know which call is blocking the UI here. |
Still happening constantly. Here is another symptom: When the screen-20230711-200634.mp4 |
That's because removing the app from Recents doesn't necessarily terminate the app process. |
This issue still persists on v0.25.2. My device has not changed since this issue was created (Android 13 stable, Pixel 5a). Since the app works fine and the issue is that the system error message is obscuring the screen I think a temporary solution, if possible, would be to have an option that you can enable or disable in the app settings that prevents the app from creating the system create error messages for it. |
I managed to fix the issue, but i'm not sure if it's the real cause... after i cleared all downloads from the list (i never did since a year of usage, it was pretty large), no more popups. Updated to version 0.25.2 |
Is your device also on android 13 stable? |
I have nothing in my downloads list and I still see this after watching a few videos (it's usually okay if I only watch one or two). LineageOS 20 (Android 13). |
On Android stable yes ; and always up to date (Pixel 6a) |
It seems clearing my download history did not fix this issue. I also cleared the cache, did a reinstall, and loaded my save file back into the app but this did not resolve this issue either. |
My theory is that the issue is caused by a large database causing some query that blocks startForegroundService to take too long. I think this because if i remember correctly someone solved it for themselves by clearing the database, and it was solved for major by deleting a large amount of downloads. Maybe we should try and get a flamegraph captured by someone experiencing the issue. I will look into getting one but i have a hard time replicating the issue on debug builds for some reason. |
Can confirm this on my Pixel 6 Pro. Clearing download History does not solve the infinite wait loop. |
I think I found the origin of the presence of this Application Not Responding issue, could you look at #9358 (comment) and test the debug APK linked to see if the issue is fixed? Thanks in advance. |
Thanks @AudricV, I've been through a few videos with the debug version and so far no issues (although of course it's not always consistent). I'll report back if this comes up for me again, but so far so good. Edit: No issues all day for me either. |
@AudricV I have also tested the #9390 fix for a day now and same as @kj, have not observed a single hang, whereas I would have expected several yesterday. Really awesome work fixing this one, I was slowly but surely losing my sanity. |
This comment was marked as spam.
This comment was marked as spam.
Ohh noooooo, it happened again 😭 Screen-20230921-195645.1.mp4But the frequency of occurrence lower I think? Maybe a placebo? Either way, gonna try it out for a bit longer before coming to a definitive conclusion. |
It does seem less frequent at the very least. I still haven't run into it yet with this version, but it sounds like I may have just been lucky so far. I will definitely update if it does show up again for me too. |
Okay I finally ran into this again for the first time since installing the debug version. Still, it feels like a big improvement. |
Checklist
Affected version
v0.24.1
Steps to reproduce the bug
This issue randomly occurs for me.
Steps to reproduce:
Expected behavior
The expected behavior is for the popup to show up when the app is actually unresponsive. The app is fully responsive right before the popup shows up and whenever I close the popup the app is still fully responsive after.
Actual behavior
The "Newpipe isn't responding" keeps appearing randomly whenever I am watching Youtube videos with Newpipe. I haven't found anyway to reliable reproduce the issue but it occurs randomly for me whenever I am just watching Youtube videos.
Screenshots/Screen recordings
Logs
No response
Affected Android/Custom ROM version
Android 13 stable
Affected device model
Google Pixel 5a
Additional information
I found this bug occurring in the official Newpipe app that is run by the Newpipe team.
The text was updated successfully, but these errors were encountered: