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

Play a video in a popup when the network is off, then the app will be not responding #9529

Closed
6 tasks done
Kobayashi-996 opened this issue Dec 10, 2022 · 4 comments
Closed
6 tasks done
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion

Comments

@Kobayashi-996
Copy link

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

0.24.1 and 0.23.3

Steps to reproduce the bug

  1. Open the app and go to the main page "Trending"
  2. After the page finishes loading, turn off the network of the phone (for example, open flight mode)
  3. Long Click one video
  4. Click "Start playing in a popup", the video would keep loading and soon the app isn't responding

Expected behavior

For example hint network error.

Actual behavior

The app isn't responding.

Screenshots/Screen recordings

test.mp4

Logs

ANR in org.schabi.newpipe
PID: 26591
Reason: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{96e480e u0 org.schabi.newpipe/.player.PlayerService}

Affected Android/Custom ROM version

Android 9.0

Affected device model

Google Pixel 2

Additional information

If I click "X" instead of waiting when the video is loading without network, the app would immediately crash and then get this:

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Version: 0.24.1
  • OS: Linux Android 9 - 28
Crash log

android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{1a62810 u0 org.schabi.newpipe/.player.PlayerService}
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1737)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6669)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


@Kobayashi-996 Kobayashi-996 added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Dec 10, 2022
@opusforlife2 opusforlife2 added player Issues related to any player (main, popup and background) and removed needs triage Issue is not yet ready for PR authors to take up labels Dec 11, 2022
@Coderdude112
Copy link

Might be duplicate of #9030 or #9390

@opusforlife2
Copy link
Collaborator

Nope.

@AudricV
Copy link
Member

AudricV commented Sep 17, 2023

They still have the same origin though. Could you look at #9358 (comment) and test the debug APK linked to see if the issue is fixed? Thanks in advance.

@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 18, 2023
@Kobayashi-996
Copy link
Author

I have tried the app in the link and found that the app not crash any more in the aforementioned situation. I think the issue is fixed. Thank you very much!

@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 26, 2023
@opusforlife2 opusforlife2 added duplicate Issue or discussion is a duplicate of an existing issue or discussion and removed bug Issue is related to a bug player Issues related to any player (main, popup and background) labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion
Projects
None yet
Development

No branches or pull requests

4 participants