Tasker AutoInput UI Query Task Stops Running

363 views
Skip to first unread message

Travis Klein

unread,
Feb 18, 2021, 4:46:12 PM2/18/21
to Tasker
so I went through the steps and make sure my android stock rooted s10 running android 9, making sure auto apps should not be getting killed.

My task still just hangs and I can't figure out why.

Is there a way being rooted that i can see when exactly the autoinput app is being killed or if it is?

Or maybe a rooted way to stop it from being killed.

I followed all the steps on the website but the task still hangs.

thanks for any help!

jmjc...@gmail.com

unread,
Feb 18, 2021, 7:06:36 PM2/18/21
to Tasker
Most of the time if it hangs, it means AutoInput cannot find what you wanted. What actions are you trying to perform? 

Travis Klein

unread,
Feb 18, 2021, 7:31:18 PM2/18/21
to Tasker

jmjc...@gmail.com

unread,
Feb 18, 2021, 7:35:06 PM2/18/21
to Tasker
I see. Could you please export the task description? Easier to read that way. Long click on the task name, click the 3 dots, export, description, and paste it here. Thanks.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

jmjc...@gmail.com

unread,
Feb 18, 2021, 10:01:38 PM2/18/21
to Tasker
Your task is still visible because it is being "quoted" in your follow up posts. Probably should delete all your posts except for the first couple ones BEFORE you post again.

No need to pay anything. Most people here enjoy what they do!! Thanks anyway!

Travis Klein

unread,
Feb 18, 2021, 10:03:52 PM2/18/21
to Tasker
test reply :)

jmjc...@gmail.com

unread,
Feb 18, 2021, 10:23:58 PM2/18/21
to Tasker
First, you need to make sure Tasker and the AI plug-in are not killed. Take a look here:


Second, when you say your task hangs, which action hangs? All along, I was assuming the AI UI Query. Is that the case? Or is it actually another action?

Travis Klein

unread,
Feb 18, 2021, 10:40:37 PM2/18/21
to tas...@googlegroups.com
definitely made sure tasker and also autoinput are apps that are excluded from being killed with that link you sent. Auto input runs in the foreground, not optimized.

when I say hangs I mean none of the "flash" output on the screen are showing like when I notice the task is running. the task is still active because I have my exit task set to make a sound, and when I see the "flash" outputs stop and I change apps back to tasker from the original app I see it is lit up in green for a split second and then it enters the exit task when I switch back to tasker I see it change from green to black.

I don't exactly know where it hangs or stops running, I just can see that the "flash" outputs stop showing up so I  can assume those lines of code are not being executed so it is "hung up" somewhere.

I'm rooted so maybe there is a way to check if autoinput is actually being killed or not. I have all the autoinput notifications active so they are in the notification bar so maybe it is not being killed like I'm assuming?

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Bf6eONAHxr0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/362ffacf-08d3-47b6-88ff-9d8090a9e3b9n%40googlegroups.com.

jmjc...@gmail.com

unread,
Feb 18, 2021, 10:49:04 PM2/18/21
to Tasker
First, we need to know whether it is the AI UI Query action that hangs. Please try this:

1. Add a Flash "Before AI" before the AI UI Query action
2. For the AI UI Query action, tick the "Continue Task after Error" option
3. Add a Flash "After AI - %errmsg" after the AI UI Query action

Now when this task is run, take a look at the %errmsg content. If it displays "%errmsg", then the AI UI Query action is fine. If it displays "timeout", then it is the AI UI Query that hangs. Let's debug this first.
Message has been deleted
Message has been deleted
Message has been deleted

jmjc...@gmail.com

unread,
Feb 19, 2021, 6:57:32 PM2/19/21
to Tasker
That means the AI UI Query action ran just fine and the problem is somewhere else in your task.

Put Flash actions in different sections of the task to find out exactly where the task hangs. Or you can use the Runlog feature in Tasker to see which action fails.

On Saturday, February 20, 2021 at 2:13:35 AM UTC+8 phaz...@gmail.com wrote:
The last thing I'm seeing flashed when it stops is the %errmsg which has no value I assume

Maybe I could make these error message write to a file?

On Thursday, February 18, 2021 at 11:24:52 PM UTC-5 Travis Klein wrote:

this is the updated task with your suggested changes, I will delete this after your next reply

 Uni V2.3 Ven (9)
    <top loop>
    A1: Anchor
    A2: Variable Set [ Name:%wait To:35 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    A3: Flash [ Text:Before AI Long:Off ]
    A4: Wait [ MS:%wait Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A5: AutoInput UI Query [ Configuration:App Package: com.myapps.application
    Text: available
    Variables: location(), items(), distance(), payment() Timeout (Seconds):20 Continue Task After Error:On ]
    A6: Flash [ Text:%errmsg Long:Off ]
    A7: Wait [ MS:%wait Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A8: Variable Set [ Name:%ratio To:.9 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    A9: Variable Set [ Name:%Small To:26 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    A10: Variable Set [ Name:%Large To:37 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    A11: Variable Set [ Name:%orders To:%payment(#) Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    <loop2>
    A12: Anchor
    A13: If [ %orders > 0 ]
    A14: Variable Section [ Name:%location(%orders) From:1 Length:3 Adapt To Fit:Off Store Result In:%locate ]
    A15: Variable Section [ Name:%distance(%orders) From:1 Length:3 Adapt To Fit:Off Store Result In:%distt ]
    A16: Variable Search Replace [ Variable:%payment(%orders) Search:^\$ Ignore Case:On Multi-Line:Off One Match Only:Off Store Matches In Array: Replace Matches:On Replace With: Continue Task After Error:On ]
    A17: If [ %locate ~ ven ]
    A18: If [ %payment(%orders) > %Small ]
    A19: Variable Section [ Name:%items(%orders) From:1 Length:2 Adapt To Fit:Off Store Result In:%itemamount ]
    A20: Variable Set [ Name:%itemdist To:%itemamount+%distt Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    A21: If [ %itemamount < 300 ]
    A22: Variable Set [ Name:%temp To:%payment(%orders)/%itemdist Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:2 ]
    A23: Else
    A24: Variable Set [ Name:%temp To:5 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:2 ]
    A25: End If
    A26: If [ %temp > %ratio ]
    A27: Beep [ Frequency:3337 Duration:400 Amplitude:44 Stream:3 ]
    A28: Notify Sound [ Title:Ven %payment(%orders) %itemamount Temp %temp  %distt Itemdist %itemdist %locate Text: Icon:null Number:0 Sound File:Video/notification sounds/police_radio_10-4.mp3 Priority:5 Repeat Alert:On ]
    A29: AutoInput Action [ Configuration:Type: Text
    Value: %payment(%orders)
    Action : Click Timeout (Seconds):30 Continue Task After Error:On ]
    A30: Variable Randomize [ Name:%yfinish Min:2000 Max:2080 ]
    A31: Variable Randomize [ Name:%xfinish Min:935 Max:1000 ]
    A32: Variable Randomize [ Name:%ystart Min:2000 Max:2085 ]
    A33: Variable Randomize [ Name:%xstart Min:100 Max:200 ]
    A34: Variable Randomize [ Name:%swipetime Min:400 Max:500 ]
    A35: Wait [ MS:386 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A36: AutoInput Gestures [ Configuration:Gesture Type: Swipe
    Start Point: 125,2040
    End Point: 1050,2040
    Duration: 500 Timeout (Seconds):60 Continue Task After Error:On ]
    A37: End If
    A38: End If
    A39: End If
    A40: Variable Set [ Name:%orders To:%orders - 1 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    A41: Wait [ MS:10 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A42: Goto [ Type:Action Label Number:30 Label:loop2 ]
    A43: End If
    A44: Wait [ MS:%wait Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A45: Variable Set [ Name:%orders To:%payment(#) Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    <loop3>
    A46: Anchor
    A47: If [ %orders > 0 ]
    A48: Variable Section [ Name:%distance(%orders) From:1 Length:3 Adapt To Fit:Off Store Result In:%distt ]
    A49: Variable Search Replace [ Variable:%payment(%orders) Search:^\$ Ignore Case:On Multi-Line:Off One Match Only:Off Store Matches In Array: Replace Matches:On Replace With: Continue Task After Error:On ]
    A50: If [ %payment(%orders) > %Large ]
    A51: Variable Section [ Name:%items(%orders) From:1 Length:2 Adapt To Fit:Off Store Result In:%itemamount ]
    A52: Variable Section [ Name:%location(%orders) From:1 Length:3 Adapt To Fit:Off Store Result In:%locate ]
    A53: Variable Set [ Name:%itemdist To:%itemamount+%distt Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    A54: If [ %locate ~ egg | %locate ~ may | %locate ~ ple | %locate ~ som | %locate ~ abs | %locate ~ gal | %locate ~ bri | %locate ~ ham ]
    A55: If [ %itemamount < 300 ]
    A56: Variable Set [ Name:%temp To:%payment(%orders)/%itemdist Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:2 ]
    A57: Else
    A58: Variable Set [ Name:%temp To:5 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:2 ]
    A59: End If
    A60: If [ %temp > %ratio ]
    A61: Beep [ Frequency:3337 Duration:400 Amplitude:44 Stream:3 ]
    A62: Notify Sound [ Title:NoVen, %payment(%orders) %itemamount Temp %temp  %distt Itemdist %itemdist %locate Text: Icon:null Number:0 Sound File:Video/notification sounds/police_radio_10-4.mp3 Priority:5 Repeat Alert:On ]
    A63: AutoInput Action [ Configuration:Type: Text
    Value: %payment(%orders)
    Action : Click Timeout (Seconds):30 Continue Task After Error:On ]
    A64: Variable Randomize [ Name:%yfinish Min:2000 Max:2080 ]
    A65: Variable Randomize [ Name:%xfinish Min:940 Max:1000 ]
    A66: Variable Randomize [ Name:%ystart Min:2000 Max:2085 ]
    A67: Variable Randomize [ Name:%xstart Min:100 Max:200 ]
    A68: Variable Randomize [ Name:%swipetime Min:400 Max:500 ]
    A69: Wait [ MS:386 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A70: AutoInput Gestures [ Configuration:Gesture Type: Swipe
    Start Point: 100,2040
    End Point: 1050,2040
    Duration: 500 Timeout (Seconds):60 ]
    A71: End If
    A72: End If
    A73: End If
    A74: Flash [ Text:%payment(%orders) Long:Off ]
    A75: Variable Set [ Name:%orders To:%orders - 1 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    A76: Wait [ MS:10 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A77: Goto [ Type:Action Label Number:30 Label:loop3 ]
    A78: End If
    A79: Flash [ Text:Ven 2.3, %wait Long:Off ]
    A80: Variable Clear [ Name: Pattern Matching:Off Local Variables Only:Off Clear All Variables:On ]
    A81: Wait [ MS:%wait Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A82: Goto [ Type:Action Label Number:1 Label:top loop ]

Travis Klein

unread,
Feb 19, 2021, 7:06:08 PM2/19/21
to tas...@googlegroups.com
can we remove the task from the replies? I will delete what I can.

something weird is happening, I am only seeing the "before AI" flash and then the "%errmsg" flash when there is no data to read.  it should be flashing more than that.

Travis Klein

unread,
Feb 19, 2021, 7:43:25 PM2/19/21
to tas...@googlegroups.com
Also I should know that these are flashing over all types of apps not just a selected active app in the profile

Travis Klein

unread,
Feb 23, 2021, 6:52:03 PM2/23/21
to Tasker
Here are some log files.  My stop task plays a beep so I can tell when it runs and when something is just hung up in tasker.

I'm trying to understand these log files. I have added some flashing also but what I see last is always %errmsg, I will add more debug flashing.

these are the log files

Reply all
Reply to author
Forward
0 new messages