-
-
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
Phone restarts when opening a video #5961
Comments
What do you want to say by restart? |
The start animation |
New.video.mp4 |
Thank you for screencast. |
I tried it a while and it worked, didn't crash |
Update: after I imported the database from the normal version, it crashed again, so maybe it has something to do with a certain setting? |
Can your clear the app data of the debug app, import again the database but without the settings, and let us know if it's reproducible again? |
I actually just tried this, and found out that the problem is watch history. When it is disabled, the crash happens, and when it is enabled, it doesn't (same on both the original apk and the one you sent me). |
@Goth11 Thanks for your researches. |
It crashes as well. |
Yes, there were some changes. We are investigating. |
@Goth11 Can you help us again by trying to get logs from your system with ADB? |
Crash logs: |
@Goth11 Thank you for getting the log. Which NewPipe version did you use before? |
okay, I think I found the issue. It crashes here: ExoPlayer 2.12. Changelog: |
@avently can you take a look at the video? It might be some kind of racing issue. The video buffering is not done, then it gets moved down for playback in background and the next video is clicked. setFrameRate seems to be called while the first video view gets destroyed/recycled to play the next video. Chances are that this can be fixed within NewPipe if we can add a small delay somewhere but otherwise this seems to be either an ExoPlayer or device issue. |
The last version I used was 20.9 but I'm using NewPipe for some months now and always updated it so I used older versions as well and none had this bug. |
But why does the crash only happen when watch history is disabled, and when it is enabled it doesn't? I don't see the connection. |
Ok so I just found out that the crash happens if watch history is disabled AND I go from a video to another one. That is, if I play a video, close it, and play another, it's fine, but if I keep it in background and play another one or I choose one from the watch next tab, it crashes (only with watch history disabled!) |
@Redirion no time, sorry. Rewriting a big part of my app. If it's related to ExoPlayer's update just create an issue and link the guys who made this change. Maybe they'll give some important insights |
@Goth11 in all such cases a screen record will be the most useful thing. Can you make it and upload? Without the very last step that crashes the phone |
@Goth11 the link is not publicly available |
Sorry, it should be now. |
Oh, man. You have already uploaded a video with the issue. My github client doesn't show such videos at all so I missed it. Ok. Based on the first video I can't say that it can be NewPipe bug. |
Yes but on the second video you can see that the crash is connected to a certain NewPipe setting. |
@TobiGr My personal statement to this: In the mean time: Try updating the underlying OS. Maybe also updating ExoPlayer could help or reporting the problem there (don't know if it happened as mentioned in #6076 (comment)? @KatoriYuu Did those fix the problem? |
@litetex My phone has received the latest possible update, however the problem still persists. As you can see, Nokia 8.1 has nearly reached its end of life, which means only security patches will be pushed to this phone in future updates, not maintainance ones; therefore I can't tell for sure if it's an exclusive problem on this phone or it also happens on other Nokia models. |
Hello everyone. I'm having the same problem with NewPipe on my Google Pixel 2. I'm using the latest version (21.12), but it's been happening since at least 21.02 if not earlier. Here's a video of the issue. https://youtu.be/lI3PKMXIGmk |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please add constructive information here. |
@litetex It seems to get worse with the current version (0.21.12). Enabling watch history used to temporarily fix the problem, but the trick is useless right now :( . I haven't found any other workaround at the moment, so if you need any more information, please let me know. I'm very willing to help as much as I can :) |
For me it never happened with the previous versions, it only happens with
the new version
Στις Πέμ, 21 Οκτ 2021, 5:12 μ.μ. ο χρήστης Bùi Anh Dũng <
***@***.***> έγραψε:
… @litetex <https://github.com/litetex> It seems to get worse with the
current version (0.21.12). Enabling watch history used to temporarily fix
the problem, but the trick is useless right now :( . I haven't found any
other workaround at the moment, so if you need any more information, please
let me know. I'm very willing to help as much as I can :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5961 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUQGZF2IJJSDEXWWLYMYGMLUIANTJANCNFSM42CYNYSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I don't think we can do anything on app side as this is a Android OS bug. I searched the Google issuetracker for more information and found this: Issue description (opened at 2021-01-11):
However the issue was closed with "This was opened on the wrong component." and I'm unable to find any similar issue. |
I have experienced this same issue as described in my duplicate issue mentioned above. I managed to reproduce the crash with Android Studio's android emulator. The emulator is a Pixel 2, API level 30, x86_64, and with play store enabled. I have also reproduced the crash in another emulated device which is a Nexus One, API Level 30, x86_64, and no play store. To reproduce the crash:
The above steps should produce the crash. Note that this crash does not happen if you play the first video in the background or as a popup. The issue seems to involve the resume playback setting. When this setting is enabled, even on my physical device, the crash no longer occurs. Disabling it causes the crash to occur. Since the video file is too big, I have uploaded a youtube video showing the crash with LogCat logs. |
A validity check of the video surface has been added recently (before setting it), which fixes the background playback of livestreams. Could you check if the issue still happen with the APK of the PR which fixed it (#8020), please? Thank you! |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I tried the APK of the PR and can still reproduce the issue using the steps I provided in my previous comment, using the same emulators. |
Ok, so the issue seems to be not fixable by us I am afraid, because it's an issue from your Android system on which we cannot do something ourselves (see above). |
in case the crash is resulting from setFrameRate the newer ExoPlayer version offers the ability to turn that off: |
Issue appears to be fixed for me on v0.25.1 |
Closing. Please comment in case it's still not fixed for someone. |
Checklist
Steps to reproduce the bug
Press on a video to open it
Actual behaviour
Phone suddenly restarts itself, but it doesn't happen always, seems to be at random times. After it restarts, the phone appears to be lagging a bit until I close the app. Last time it happened the restart screen froze. This bug only started happening after the last update.
Device info
The text was updated successfully, but these errors were encountered: