Watchdog implementation

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Watchdog implementation

Post by simon.schvartzman » Sun Apr 01, 2018 1:39 pm

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 179 times
Simon
________________________________________
To ";" or not to ";" that is the question

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Watchdog implementation

Post by FourthWorld » Sun Apr 01, 2018 1:56 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Watchdog implementation

Post by simon.schvartzman » Sun Apr 01, 2018 6:50 pm

@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
Simon
________________________________________
To ";" or not to ";" that is the question

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Watchdog implementation

Post by FourthWorld » Sun Apr 01, 2018 7:28 pm

What OS version are you running?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Watchdog implementation

Post by simon.schvartzman » Sun Apr 01, 2018 9:43 pm

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
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Talking LiveCode”