Skip to content

Sudden crash while watching a vedio when the network briefly broke #12197

@Terrible-Tornado

Description

@Terrible-Tornado

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • 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.27.6

Steps to reproduce the bug

I was watching a vedio, the network briefly broke, and then the app crash.

Expected behavior

Retry or hint network error

Actual behavior

The app crashed

Screenshots/Screen recordings

Image

Then,

Image

Logs

FATAL EXCEPTION: main
Process: org.schabi.newpipe.debug, PID: 6543
android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{4dd8bf5 u0 org.schabi.newpipe.debug/org.schabi.newpipe.player.PlayerService}
	at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2104)
	at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2075)
	at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2369)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8177)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here
	at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1952)
	at android.app.ContextImpl.startForegroundService(ContextImpl.java:1906)
	at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:830)
	at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:830)
	at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(ContextCompat.java:1189)
	at androidx.core.content.ContextCompat.startForegroundService(ContextCompat.java:752)
	at androidx.media.session.MediaButtonReceiver.onReceive(MediaButtonReceiver.java:120)
	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4449)
	at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2256)
	... 7 more

Affected Android/Custom ROM version

Android 14

Affected device model

Pixel 8

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssue or discussion is a duplicate of an existing issue or discussiontemplate ignoredThe user didn't follow the template/instructions (or removed them)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions