Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

App closed on device every 10 to 12 minutes

I developed a simple application that monitors & saves heart rate data with timestamp and sends them to the companion. For the purpose, the program should run 24 hours a day or longer, but it keeps turning off every 10 to 12 minutes.

 

Below is log I got:

[12:03:21 PM]Fatal Jerryscript Error: ERR_OUT_OF_MEMORY
[HOST][11:48:05 AM]App closed on device, unloading companion in 3 seconds…
[HOST][11:48:05 AM]App was opened on device; companion will no longer be unloaded

 

I used "me.appTimeoutEnabled = false; // Disable timeout" but still having the same problem.

I also set my application to clockface, but recieved the same log that app is closed on device.

 

Can anyone knows the reasons and how to resolve it?

 

Best Answer
0 Votes
1 REPLY 1

Use the memory API to monitor memory usage. If your app crashes because it runs out of memory, it will be closed and the companion will be unloaded.

Peter McLennan
Gondwana Software
Best Answer
0 Votes