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

ForegroundServiceDidNotStartInTimeException sometimes on Android 13 #230

Closed
bk138 opened this issue Oct 13, 2023 · 1 comment
Closed

ForegroundServiceDidNotStartInTimeException sometimes on Android 13 #230

bk138 opened this issue Oct 13, 2023 · 1 comment

Comments

@bk138
Copy link
Owner

bk138 commented Oct 13, 2023

                                                                                                Process: com.coboltforge.dontmind.multivnc, PID: 16143
                                                                                                android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{7bacb4c u0 com.coboltforge.dontmind.multivnc/.ui.VNCConnService}
                                                                                                	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:8762)
                                                                                                	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
                                                                                                	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 com.coboltforge.dontmind.multivnc.ui.VNCConnService$Companion$deregister$1.invokeSuspend(VNCConnService.kt:58)
                                                                                                	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                                                                                	at android.os.Handler.handleCallback(Handler.java:942)
                                                                                                	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                	at android.os.Looper.loopOnce(Looper.java:226) 
                                                                                                	at android.os.Looper.loop(Looper.java:313) 
                                                                                                	at android.app.ActivityThread.main(ActivityThread.java:8762) 
                                                                                                	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604) 
                                                                                                	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067) 
@bk138
Copy link
Owner Author

bk138 commented Oct 17, 2023

Maybe-fixed by 060a1eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant