App running out of memory

Hello guys,

I have an app that has been on the Galaxy Store for a while now.

Most recently I have been receiving e-mails from users that the app is ‘crashing after a while’ - which I was unable to replicate initially, in addition to that other users were reporting that the app would ‘crash sometimes’.

After further investigation and collecting logs from some (super amazing and helpful) users I was able to see that the app was getting killed due to the watch’s memory (low) available.

I then started to recommend the following:

  • closing recent apps
  • disabling auto-detection of workouts
  • using a watch face without too many graphics/info
  • restarting the watch

But let’s all agree, that is far from ideal.

Lastly, I have found that other ‘sports tracker’ apps have been having very similar issues. The app has been developed using TizenOS “webapis” (html/js) if that is of any help.

What do you guys recommend?
How should I move forward here?

Thank you very much in advance.

I noticed memory leaks and crashes like that usually when I tried to use an external libraries not designed for hardware-limited devices like watches. Make sure you don’t load such libs and try to use other or write you own code if you need only a little snippet from the lib.

Try to limit size of your resources like images or sounds. Sometime is ok to use jpg images or even 8 bit png format and sound compressed to mp3.

Review your code again. Make sure you don’t create countless instances of objects in loop or recursive code.

1 Like

Thanks @andrzej_bugajny

I had a look at the images and for the most part, I use FontAwesome icons (SVGs).
There are three PNG’s for the dots (footer) of each page though (600x168 PNGs).

The only 3rd part lib that I am using is ‘localStorageDB’ (knadh) .
Collect the data; upload it later for processing.

Will double-check the loops/method calls too.

Cheers!