Skip to content

Ui crash while app was in background #12804

@jmbreuer

Description

@jmbreuer

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

28.0

Steps to reproduce the bug

Picked up my phone after some hours of not using it and the below NewPipe crash report was shown in notifications.

I had not used NewPipe recently (today).

Expected behavior

There should not be crash notifications when the App isn't even being used.

Actual behavior

Crash notification, see below.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Timestamp: 2025-11-15T14:14:36.125+01:00
  • Package: org.schabi.newpipe
  • Service: none
  • Version: 0.28.0
  • OS: Linux Android 16 - 36
Crash log

android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{b9ab67e u0 org.schabi.newpipe/.player.PlayerService c:org.schabi.newpipe}
	at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2391)
	at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2359)
	at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2741)
	at android.os.Handler.dispatchMessage(Handler.java:110)
	at android.os.Looper.loopOnce(Looper.java:248)
	at android.os.Looper.loop(Looper.java:338)
	at android.app.ActivityThread.main(ActivityThread.java:9067)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)


Affected Android/Custom ROM version

Android 16 / LineageOS 23.0-20251105-NIGHTLY-akita

Affected device model

Google Pixel 8a / akita

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugplayerIssues related to any player (main, popup and background)template 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