Skip to content

Android crash: ForegroundServiceDidNotStartInTimeException #1520

@binwiederhier

Description

@binwiederhier
Exception android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException:
  at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException (ActivityThread.java:2404)
  at android.app.ActivityThread.throwRemoteServiceException (ActivityThread.java:2372)
  at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException (Unknown Source)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2748)
  at android.os.Handler.dispatchMessage (Handler.java:110)
  at android.os.Looper.dispatchMessage (Looper.java:315)
  at android.os.Looper.loopOnce (Looper.java:251)
  at android.os.Looper.loop (Looper.java:349)
  at android.app.ActivityThread.main (ActivityThread.java:9041)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:593)
  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:2049)
  at android.app.ContextImpl.startForegroundService (ContextImpl.java:2003)
  at android.content.ContextWrapper.startForegroundService (ContextWrapper.java:860)
  at androidx.core.content.ContextCompat$Api26Impl.startForegroundService (ContextCompat.java:1091)
  at androidx.core.content.ContextCompat.startForegroundService (ContextCompat.java:749)
  at io.heckel.ntfy.service.SubscriberServiceManager$ServiceStartWorker$doWork$2.invokeSuspend (SubscriberServiceManager.kt:58)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
  at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.kt:115)
  at kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:100)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:584)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:793)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:697)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:684)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    android-appntfy Android app🪲 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions