Skip to content

Critical Crash #12648

@ahmadtahir1919

Description

@ahmadtahir1919

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

Latest version

Steps to reproduce the bug


android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{5a011d3 u0 org.schabi.newpipe/.player.PlayerService c:org.schabi.newpipe}
at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2495)
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2463)
at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2816)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9634)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2056)
at android.app.ContextImpl.startForegroundService(ContextImpl.java:2000)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:849)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:849)
at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(ContextCompat.java:1128)
at androidx.core.content.ContextCompat.startForegroundService(ContextCompat.java:700)
at androidx.media.session.MediaButtonReceiver.onReceive(MediaButtonReceiver.java:120)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:5377)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2695)
... 7 more

Expected behavior

No response

Actual behavior

No response

Screenshots/Screen recordings


android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{5a011d3 u0 org.schabi.newpipe/.player.PlayerService c:org.schabi.newpipe}
at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2495)
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2463)
at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2816)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9634)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2056)
at android.app.ContextImpl.startForegroundService(ContextImpl.java:2000)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:849)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:849)
at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(ContextCompat.java:1128)
at androidx.core.content.ContextCompat.startForegroundService(ContextCompat.java:700)
at androidx.media.session.MediaButtonReceiver.onReceive(MediaButtonReceiver.java:120)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:5377)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2695)
... 7 more

Logs

No response

Affected Android/Custom ROM version

No response

Affected device model

No response

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