Tasker API Timeout Frequently

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:

You probably need to update your Tasker version, this is internal to the tasker plugin and tasker now binds to the service and no more tries to just start it.

I’m on Tasker v6.4.15 that was release Feb 28th 2025. They don’t have any newer version that I’m aware of from the Play Store unless I went with one of their Nightly builds (looks like they have a 6.4.16 via a direct APK download). I can give that direct download a shot and see if it does any better, if not your suggestion is it’s a Tasker issues and not a Yatse issue? Is Tasker causing Yatse to crash when it calls it?

Yes the service that fails is : com.joaomgcd.taskerpluginlibrary.action.IntentService

That service is from the tasker Library and it’s not supposed to try to start it foreground at all

Ok, let me give the new version a try and if it’s still kicking back these timeouts I’ll open something up with the Tasker folks. Thanks for looking into it and your insight, love the app and all the work that has been done with it to make it what it is today!