Page 1 of 3
Having a problem with Automagic
Posted: 23 Jan 2018 22:06
by husky
Hello,
I'm running into a "Automagic not responding" for quite some time.
Whenever I'm editing a flow, new or old one or setting up/changing a widget, Automagic freezes randomly.
Unfortunately it leads to a restart as nothing else saves the situation and I don't know whether or not some useful log is available after the reboot(restart).
No execution time freeze has been observed.
I'm running the old version of Automagic, not the one currently in Google Play.
I cannot discard some other app going ape and causing Automagic go bananas.
Thanks for any help
Husky
Re: Having a problem with Automagic
Posted: 24 Jan 2018 08:33
by Desmanto
Check all your running flow. Probably there is some test flows especially the ones dealing with UI (UI Event, Control UI) or I/O (file operation) that require a lot of resource and was running all the time without being stopped by AEP. Sometimes I experience lag because of similar flow, which log all events from all apps. If it doesn't hit emergency stop, I probably don't know it is still running. I completely forgot that I have turned it on, probably because someone text me while I was testing the flow and then my focus was lost.
Re: Having a problem with Automagic
Posted: 24 Jan 2018 13:33
by husky
Hi Desmanto,
Thanks for your analysis.
I don't know whether or not I have some flow looping but I have a lot of them starting based on Periodic Timer and tons on Control UI and I/O.
Based in your feedback I'll stop all flows except the one I'm working on and reset the loop counter to a lower number.
d
If nothing happens, I'll start one at a time and keep watching what happens. This approach might take some time.
I'll get back to you with my findings.
Best Regards
Husky
Re: Having a problem with Automagic
Posted: 18 Feb 2018 22:28
by husky
Hello,
It took me a long time to reply as I was trying to troubleshoot the problem.
I checked many options to see whether or not I could pinpoint the "not responding" that was coming at me constantly.
Solution 1. Change emergency stop to a low value, 60. It seems that a correlation between the "not responding" and coming back from it. THe higher the number, longer the return time.
Solution 2. Wiped the whole tablet with factory reset then reinstalled Automagic backup I have and for a while it was working fine.
Today, the whole thing started to happen again.
A message, somewhat cryptic said something about flows.xml is missing or can't be written. Not sure because the message came too fast.
It seems that something is breaking Automagic. It hangs for a few seconds/ minutes and then ".. not responding" again.
Any ideas on how to start fixing this is welcome.
Thanks
Husky
Re: Having a problem with Automagic
Posted: 19 Feb 2018 06:59
by Desmanto
That is probably the culprit. Automagic have problem writing flows.xml to the /sdcard0/Automagic/ (internal SDcard). What is the tablet model? How long have you been using it?
Do you have some symptoms such as : some apps suddenly disappear and seems to be uninstalled; or the icon changed to green Android icon. Sometimes it appear back, but the data of the app has been reset (just like new install). Sometimes there are folders/files you can never delete, no matter how many times you delete them. Factory reset sometimes clear them (because it reset the file index), but it will appear again in another folders/files.
Re: Having a problem with Automagic
Posted: 19 Feb 2018 17:01
by husky
Hi Desmanto,
Thanks for the reply.
The tablet, Samsung Galaxy Tab S3, was purchased on June 8, 2017.
Since then it underwent 2 patches to the Android 7.
As for your description it agrees pretty much with what I'm experiencing lately with Automagic.
Before doing the factory reset ( that was yesterday 02/10/2018) I backed up 140 flows and some 50 widgets.
After the reset, and reinstalling Automagic from my backup, some flows were tagged as restored but I couldn't find them.
So, I deleted all flows and widgets, restored again, the again then those missing were found in place.
Since then, yesterday, I could finish those flows I was working on with just a couple of freezes and one reboot.(restart) as well as the FLOW.XML message popping up.
I wonder if this is problem leads to a percolating effect on Automagic. It seems a to make gradual damages until it becomes unusable.
Running Automagic 1.34.0 Build 20171116_204424_6a28672.
Best Regards
Husky
Re: Having a problem with Automagic
Posted: 21 Feb 2018 10:09
by Desmanto
It's quite new tablet, so it supposed not to be hardware problem. Try to change Automagic default directory to somewhere else, Hamburger Menu > Settings > General > Main data directory. Try Internal or Custom folder to somewhere else. It seems the flows.xml isn't saved properly all of the time. Maybe you should use debug log to see what's going during the freeze. (logging > debug log).
Re: Having a problem with Automagic
Posted: 21 Feb 2018 16:17
by husky
Desmanto,
Well it's a possibility.
I thought about this possibility but I'm still not quite comfortable doing this. Will see now whether or not is faithful to "Location, Location, Location", as we say here in the US.
I'll try to copy the Android external Directory to SDCard.
Will be back to you with the results.
Best Regards
HUsky
Re: Having a problem with Automagic
Posted: 21 Feb 2018 17:10
by husky
Hi Desmanto,
I moved the pointer to Internal with all the drawbacks.
I tried CUSTOM pointing to External SDCard path.
Automagic says I do not have WRITE permission.
Is there a way to set Write permission?
For the record, I'm writing all the output (listings) from my flows to SDcard.
Thanks
Husky
Re: Having a problem with Automagic
Posted: 21 Feb 2018 17:32
by Desmanto
You should grant external SDCard access first. It is at the settings - features and permissions. But if you have enabled it and still can't write; try to uncheck and check again that option.
Or maybe you can try to put at other folder at the same internal storage, such as /storage/emulated/0/Magicauto