unpredicible delay in the wait function

allezingi

New member
Since a couple of weeks sever macros of mine using the wait action have big problems.
Also a simple macro [dialog windows] [wait 5 secs] [dialog window] can take tenth of minuts befor completion
I already tried to check battery setting and there are no limitation in using battery
I also tried to delete cache and all data and restore all macros from a backup but problem is still present
I am already using the "use alarm" option in the wait action
No change were done on the macros that I am using since years. Probably it is something on my smartphone. I also thought about a problem after a Macrodroid update but I can't find particular complains in the forum about this. Any suggestion about what to do to find the problem cause?
Thank you.
 

allezingi

New member
If you can share the macro so we can test it on our side, it could help.
Hi Winny57, here is the macro. However to be honest today the macro seems work properly. Only difference respect to yesterday is that I removed 4 apps I am no more using. So maybe the problem could be memory full in my smartphone? My proposal is to keep on hold this thread of mine some days and see if new problems arise, so I can share a macro really not working.
 

Attachments

  • Test_wait.macro
    2.7 KB · Views: 6

Winny57

Active member
The times are correct, the 1 second starts only after closing the 1st dialog box because in the settings of the 1st dialog box you have activated "block the following actions...."
 

allezingi

New member
I am again experiencing the timing problem. The same macro I shared, if modified for wait 1 minutes instead of a 1 seconds today took for execution several minutes as it is visible in the system log testwaitlog.jpg
 

allezingi

New member
Thank you Winny57 for spending a little time for my problem.
I tried your version but I had similar results.
When set to 1 second it works fine. If I change time to 1 minute it takes really longer. My impression is that there is some process in my smartphone slowing down or temporarely freezing Macrodroid.
testwaitwinny.jpg
 

reeviis

Member
alternativly you can set the checkmark to use an alarmclock(german:wecker benutzen) when using a wait. so macrodroid doesnt count(could be inaccurate due to how arm works) but set a trigger for that alarmtime in "n" time.
 

dhj49er

Well-known member
alternativly you can set the checkmark to use an alarmclock(german:wecker benutzen) when using a wait. so macrodroid doesnt count(could be inaccurate due to how arm works) but set a trigger for that alarmtime in "n" time.
Do you mean this checkmark?

If so, it's not clear what you are doing.

I find using the alarm is accurate, typically to within 1s.
1000256939.jpg
 
Last edited:

MacroDroidDev

Administrator
Staff member
MacroDroid always schedules the device to wakeup at the correct time. Modern Android versions will often disregard the requested wakeup time and wakeup when they think is best unless you explictly schedule a wakeup as an alarm. In theory scheduling as an alarm should guarntee the correct wakup time. Unfortunately some devices (nearly always Chinese brands) will still not respect alarm wakeup times in some cases. This should of course fail the Android compliance test specification but sadly it does not seem to (or more likely they just whitelist stuff related to the testing so it doesn't happen in these cases).

There may be some specific setting on your device that you can tweak to actually make it work correctly in all cases but I don't have any devices that suffer this problem so I cannot advise on specifics.
 

Jacob L

Moderator (Lawsonator)
If you have any kind of performance mode in Settins > battery >, enable it. You can also set MD to be a device administrator. Settings> security > device administrators. It may not help ut is worth a shot
 
Top