Page 1 of 1

Watchdog implementation

Posted: Sun Apr 01, 2018 1:39 pm
by simon.schvartzman
Hi all, I have this app running 24x7 (basically doing Dropbox transfers) and no matter what from time to time it stops.

With the help of many LC gurus I have been able to have it running for several months without interruption but suddenly it stops and I'm not able to find out the reason. Most of the time the device log is empty and when it isn't i can't get any useful information as what went wrong (one such log attached).

I wonder if there is some way to implement something like a software watchdog that would "reset' the App from time to time. I know this is not a clean/elegant solution but...

Any ideas would be appreciated
ITL V7 93--18 15-08.crash.zip
Crash log
(14.35 KiB) Downloaded 232 times

Re: Watchdog implementation

Posted: Sun Apr 01, 2018 1:56 pm
by FourthWorld
I love good uptime, but how does a well patched system never need a reboot for several months?

As for LC, if you can monitor memory you may find a leak. If you do, see if you can isolate it to report it. Memory leaks get a high priority.

Re: Watchdog implementation

Posted: Sun Apr 01, 2018 6:50 pm
by simon.schvartzman
@FourthWorld thanks for your suggestion.

I'm afraid I don't know how to monitor memory (shame on me) can you please guide me?

Thanks

Re: Watchdog implementation

Posted: Sun Apr 01, 2018 7:28 pm
by FourthWorld
What OS version are you running?

Re: Watchdog implementation

Posted: Sun Apr 01, 2018 9:43 pm
by simon.schvartzman
I have 4 devices running the same App:

- 2 x iPhone 4 with iOS 9.3.5
- 2 x iPhone 5 with iOS 10.3.3

All of them show the same behaviour....

BTW I'm using LC Indy 8.1.8

Best