UI Error with app sleeping or not in use. #10356
Labels
duplicate
Issue or discussion is a duplicate of an existing issue or discussion
template ignored
The user didn't follow the template/instructions (or removed them)
Checklist
Affected version
0.25.2
Steps to reproduce the bug
Issue was also seen in older version 0.25.1.
Issue was never seen in version before 0.25.1
Expected behavior
No UI crash screen on launching the app.
Actual behavior
UI crashes in background
UI crashes and wakes up the sleeping app and displays the error replacing the active app window.
Screenshots/Screen recordings
No response
Logs
Exception
Crash log
``` android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{12ec5c7 u0 org.schabi.newpipe/.player.PlayerService} at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2245) at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2216) at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2508) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8757) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067) Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1988) at android.app.ContextImpl.startForegroundService(ContextImpl.java:1933) at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:839) at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:839) at androidx.core.content.ContextCompat$Api26Impl$$ExternalSyntheticApiModelOutline1.m(R8$$SyntheticClass:0) at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(ContextCompat.java:1091) at androidx.core.content.ContextCompat.startForegroundService(ContextCompat.java:749) at androidx.media.session.MediaButtonReceiver.onReceive(MediaButtonReceiver.java:115) at android.app.ActivityThread.handleReceiver(ActivityThread.java:4894) at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2420) ... 7 more ```
Affected Android/Custom ROM version
Android 13, One UI 5.1, Android security patch 1, July 2023
Affected device model
Samsung S22 Ultra
Additional information
No response
The text was updated successfully, but these errors were encountered: