Issue description: I have several Tasker commands that I use to change my Media Center and kickoff library syncs depending on some conditions. The commands are kicked off successfully in Tasker, however over the last few months I’ve been getting a lot of timeout errors from Tasker waiting on a response back from Yatse, then Yatse crashes and does not complete the action. Digging into the debugging logs it looks like it’s got something to do with the Yatse services not getting to the foreground and timing out. I’ve gone ahead and tried disabling any battery optimization on Yatse to see if that would help however no joy. The Tasker commands work fine when testing from Tasker, but the Phone Screen is on so I’m wondering if it’s got something to do with the Phone sleeping. I have the full log, however here is the lines that I see where Yatse crashes after the Tasker call and then re-initializes.
2025-04-16 14:10:38.481 Error/Crash: Unhandled crash in Thread[main,5,main]
android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{3defa5c u0 org.leetzone.android.yatsewidgetfree/com.joaomgcd.taskerpluginlibrary.action.IntentServiceAction c:net.dinglisch.android.taskerm}
at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2349)
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2317)
at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2691)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8934)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
2025-04-16 14:10:41.228 Verbose/MainInstance: initialize: komodo/komodo/35/15/Pixel 9 Pro XL/google/0/true/false/68/126/201
Logs: (Join files do not paste the content of the files here !)
debug-20250416_142909.zip (3.2 MB)
Screenshots:
Additional information: