Tasker Keeps Closing

269 views
Skip to first unread message

My-kl

unread,
Nov 28, 2016, 10:17:15 AM11/28/16
to Tasker
Tasker keeps closing and restarting. I've tried Reliable Alarms when off AND always. It's also running in foreground. I've got power saving disabled for Tasker and all plugins. Is there anything I can do to stop this?

(Rooted Stock 6.0.1)

Pent

unread,
Nov 28, 2016, 11:53:46 AM11/28/16
to Tasker

Tasker keeps closing and restarting. I've tried Reliable Alarms when off AND always. It's also running in foreground. I've got power saving disabled for Tasker and all plugins. Is there anything I can do to stop this?


Are you sure it's 'closing', or could it be being killed by something ?

Is crash.txt in the Tasker dir being written every time ? If not, it's
being killed.

Maybe you have some 'cleaner' app installed or similar ?

Pent

My-kl

unread,
Nov 28, 2016, 12:18:25 PM11/28/16
to Tasker
Oh I'm sure it's being closed rather than closing. Sorry for using the wrong wording. There's no crash.txt and I don't have a task killer or cleaner app of any sort..

Pent

unread,
Nov 28, 2016, 2:59:19 PM11/28/16
to Tasker


Oh I'm sure it's being closed rather than closing. Sorry for using the wrong wording. There's no crash.txt and I don't have a task killer or cleaner app of any sort..

That only leaves Android really. Maybe it thinks you're short of resources ?

Pent

My-kl

unread,
Nov 28, 2016, 5:04:27 PM11/28/16
to Tasker
I can't imagine why. I have no large apps, no games, Tasker is the biggest use after the screen, which isn't on all the time.

My-kl

unread,
Nov 29, 2016, 2:31:28 PM11/29/16
to Tasker
Update: it seems to happen if the phone has been untouched for about 30 minutes or more. When I turn the screen on Tasker has closed (or been closed) and is restarting. This is odd as it has a task set to repeat every 2 minutes. Could Doze be taking over?

Pent

unread,
Nov 30, 2016, 2:40:16 AM11/30/16
to Tasker


Update: it seems to happen if the phone has been untouched for about 30 minutes or more.

Sounds very dozy.

Maybe you have a Huawei ? Many of them don't seem to respect whitelisting.

Pent

My-kl

unread,
Nov 30, 2016, 4:04:14 AM11/30/16
to Tasker
Galaxy S5.

I've disabled optimising under two different settings:
Settings > Battery > Battery Usage > More > Optimise battery usage.
Settings > Battery > Details
I've even had optimisation turned off for everything.

It's got a tasks repeating every 2 minutes FFS, what am I supposed to do?

My-kl

unread,
Nov 30, 2016, 4:05:17 AM11/30/16
to Tasker
Sorry, I'm very annoyed with this. The swearing was directed at MM, not you!

Pent

unread,
Nov 30, 2016, 6:44:30 AM11/30/16
to Tasker
You could make a bug report to try and find out why:

http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#x

Pent

My-kl

unread,
Nov 30, 2016, 9:08:00 AM11/30/16
to Tasker
OK, thank you. I've set my phone to optimise Tasker after 3 days instead of never so I need to wait and see if that changes anything. I figured out this morning it takes about 40 minutes before it's shut down.

My-kl

unread,
Nov 30, 2016, 5:39:34 PM11/30/16
to Tasker
I just took a bug report, but as I don't have an email app set up on my phone I thought I could send it to my computer via Airdroid but nothing happened. I can't find the report anywhere and I can't stop my phone trying to send the bug report to Airdroid - it isn't covered by app defaults. Now what?

My-kl

unread,
Nov 30, 2016, 6:15:45 PM11/30/16
to Tasker
OK, I've stopped Airdroid trying to take the bug report. I'll go and sort out my email app...

My-kl

unread,
Dec 1, 2016, 4:36:43 AM12/1/16
to Tasker
I emailed you a bug report at about 23:30 GMT.

Pent

unread,
Dec 1, 2016, 5:22:25 AM12/1/16
to Tasker
I couldn't find any relevant log messages.

I can only suggest the Keep Awake flag in the task, or wake up the device every 20
minutes while this task is running. Neither optimal solutions, sorry.

Pent

My-kl

unread,
Dec 1, 2016, 6:06:15 AM12/1/16
to Tasker
I just came online to tell you I've sent another bug report within minutes of it happening.

Where is the Keep Awake flag? I've looked at a few of my tasks and can't see it... Am I being dim?

My-kl

unread,
Dec 1, 2016, 6:10:08 AM12/1/16
to Tasker
I've just found Keep Awake. I'll try it.

My-kl

unread,
Dec 1, 2016, 6:36:44 AM12/1/16
to Tasker
What does Keep Awake actually do?

Pent

unread,
Dec 1, 2016, 6:39:16 AM12/1/16
to Tasker
Holds a display-off wakelock while the task is running, device will not deep-sleep.

Pent

My-kl

unread,
Dec 2, 2016, 8:48:19 AM12/2/16
to Tasker
So Keep Awake does pretty much what it says! I feel stupid for asking now. Anyway, it's much better now that Keep Awake is running. Thank you!

My-kl

unread,
Dec 4, 2016, 2:06:21 PM12/4/16
to Tasker
Fuck this, the fix worked for a day and now it's back to its old tricks. It was restarted four times while I was at a party last night. I thought Doze only works if the phone is stationary for a period.

My-kl

unread,
Dec 4, 2016, 2:12:17 PM12/4/16
to Tasker
I've set a profile repeating every 20 minutes that uses Secure Settings to wake the CPU for 1 second. Is that the type of thing you meant?

My-kl

unread,
Dec 4, 2016, 2:52:59 PM12/4/16
to Tasker
That didn't work either.

Rich D

unread,
Dec 5, 2016, 5:01:06 AM12/5/16
to Tasker Google Groups Post

Oh I'm sure it's being closed rather than closing. Sorry for using the wrong wording. There's no crash.txt and I don't have a task killer or cleaner app of any sort..

You never clearly state what you mean by 'tasker being closed' Could you give some details on exactly what is happening?

Could you post the relevant part of the  run log when this happens?  menu / more / run log 



My-kl

unread,
Dec 5, 2016, 9:22:34 AM12/5/16
to Tasker
I've figured out what causes it: Profiles that repeat every 2 minutes. The problem is more frequent if I have two profiles repeating every 2 minutes but staggered by 1 minute (eg Profile1 starts at 01:00 and Profile 2 starts at 01:01 and they both repeat at 2 minute intervals.

 I shall try and make it happen again and post the Run Log.

My-kl

unread,
Dec 5, 2016, 9:58:44 AM12/5/16
to Tasker
The event occured at
20161205 14.47.08 A OK       ID209:2.1 Reboot Variable Add.Var Add, %Reboot=1 as I set it to add a variable when Tasker restarts.

OK, here's an extract from the run log (I hope I'm sharing this the right way):

20161205 14.46.00 A OK       ID76:3.1 Change Arcs.Perform Task, Change Hours Arc
20161205 14.46.00 A IfFail   ID63:4.1 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.2 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.3 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.4 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.5 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.6 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.7 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.8 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.9 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.10 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.11 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.12 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.13 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.14 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.15 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.16 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.17 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.18 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.19 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.20 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.21 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.22 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.23 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.24 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.25 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.26 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.27 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.28 Change Hours Arc.Element Image
20161205 14.46.00 A IfFail   ID63:4.29 Change Hours Arc.Element Image
20161205 14.46.01 A OK       ID63:4.30 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.31 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.32 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.33 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.34 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.35 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.36 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.37 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.38 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.39 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.40 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.41 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.42 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.43 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.44 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.45 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.46 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.47 Change Hours Arc.Element Image
20161205 14.46.01 A IfFail   ID63:4.48 Change Hours Arc.Element Image
20161205 14.46.01 T ExitOK   ID63:4   Change Hours Arc
20161205 14.46.01 T Running  ID37:5   Change Minutes Arc
20161205 14.46.01 A OK       ID76:3.2 Change Arcs.Perform Task, Change Minutes Arc
20161205 14.46.01 T ExitOK   ID76:3   Change Arcs
20161205 14.46.01 A IfFail   ID37:5.1 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.2 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.3 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.4 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.5 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.6 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.7 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.8 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.9 Change Minutes Arc.Element Image
20161205 14.46.01 A OK       ID37:5.10 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.11 Change Minutes Arc.Element Image
20161205 14.46.01 A IfFail   ID37:5.12 Change Minutes Arc.Element Image
20161205 14.46.01 T ExitOK   ID37:5   Change Minutes Arc
20161205 14.46.01 E Stop     ID0:0.0  TaskService
20161205 14.46.59 P Inactive ID275    ReShow Tuner Button
20161205 14.46.59 P Inactive ID33     ReShow Button Changer
20161205 14.46.59 P Inactive ID274    ReShow Tempo Buttons
20161205 14.47.06 M Start    ID0:0.0  Monitor
20161205 14.47.08 P Instant  ID26     Update Time 2b
20161205 14.47.08 P Instant  ID15     Reboot
20161205 14.47.08 P Active   ID78     Wallpaper Change Day
20161205 14.47.08 P Active   ID61     Get Sun Times
20161205 14.47.08 E Start    ID0:0.0  TaskService
20161205 14.47.08 T Running  ID69     Human Time
20161205 14.47.08 T Running  ID209:2  Reboot Variable Add
20161205 14.47.08 T Running  ID256:3  Wallpaper Day
20161205 14.47.08 T Running  ID126:4  Get SunTimes
20161205 14.47.08 A OK       ID209:2.1 Reboot Variable Add.Var Add, %Reboot=1
20161205 14.47.08 T ExitOK   ID209:2  Reboot Variable Add
20161205 14.47.08 A OK       ID69.1   Human Time.Var Set, %MyTime=14.47
20161205 14.47.08 A OK       ID69.2   Human Time.Var Search Replace, %MyTime=14:47
20161205 14.47.08 T Running  ID29:5   Time Splitter
20161205 14.47.08 A OK       ID69.3   Human Time.Perform Task, Time Splitter
20161205 14.47.08 A OK       ID29:5.1 Time Splitter.Var Set, %Hours=14:47
20161205 14.47.08 A OK       ID29:5.2 Time Splitter.Var Section, %Hours=14:47, %MyHours=14
20161205 14.47.09 A OK       ID29:5.3 Time Splitter.Var Set, %Minutes=14:47
20161205 14.47.09 A OK       ID29:5.4 Time Splitter.Var Section, %Minutes=14:47, %MyMinutes=47
20161205 14.47.09 T ExitOK   ID29:5   Time Splitter

Rich D

unread,
Dec 5, 2016, 10:41:44 AM12/5/16
to Tasker Google Groups Post

I would start by disabling the original profiles then  making 2 new profiles with the same contexts and use very simple tasks with just a few actions like log the time to a file and perhaps a flash or notification just to let you know it has run .  Then see if those simple profiles will fail as well.  Start with something very basic and simple for testing. Then if they do not fail start adding the tasks and actions back in to see where it is failing.

My-kl

unread,
Dec 5, 2016, 11:00:19 AM12/5/16
to Tasker
Good plan. I've done that sort of thing before. I've disabled the offending profiles and replaced them with different triggers but I'll do that anyway just to locate the problem.

My-kl

unread,
Jan 3, 2017, 5:33:23 AM1/3/17
to Tasker
I've been testing and testing and the things that seem to cause the issue sometimes doesn't cause it at other times. Therefore, this is my theory: Tasker is closing (or being closed) when it's filled up its allocated RAM (or something like that). When this happens it will happen more frequently until the phone is restarted. Using more images in tasks speeds up this process. Does that sound likely to you experts?

My-kl

unread,
Jan 24, 2017, 3:38:30 PM1/24/17
to Tasker
I've finally figured out the cause. I think. It seems to be PowerAmp, or Tasker's interaction with PowerAmp. I've changed my settings so Tasker works with Samsung Music and so far Tasker hasn't restarted.

My-kl

unread,
Aug 5, 2017, 4:29:33 AM8/5/17
to Tasker
So I hadn't figured out the cause. PowerAmp is uninstalled but the problem still occurs. Yesterday it happened 8 times. It never happens during the night while I sleep.
Reply all
Reply to author
Forward
0 new messages