Connect IQ 2.3.1 memory issues on 58kb devices


I have a watch face that seems to work fine on a 64kb style devices however I have had some FR735XT/ Vivoactive HR users running latest firmware reporting problems with trying to save values to the objectstore.

If the following 3 lines of code are commented out the watchface seems to work fine.

var app = App.getApp();
app.setProperty("lastLat", lastLat);
app.setProperty("lastLon", lastLon);

If these lines of code are executed then when I exit the application in the simulator after the onStop() function is called I get an error:

"Unable to serialize app data"

This error can also occur at random intervals if I am changing settings via the simulator running 2.3.x and VAHR.

If I run a FR935 with 2.3.x in the sim (or FR235 with 1.x) I cannot recreate the problem. My properties file is less than 1kb and the free memory available when I exit onUpdate is always around 4kb for VAHR and 37kb on a FR935.


Any ideas ? Is this a peak memory usage exceeding 58kb problem ? How do I confirm this and check what peak usage really is ? There used to be something show up on the status bar for the simulator but this is gone in the latest release ?

Thanks
  • This one certainly has something to do with memory usage whilst the watch face is running. If I keep the code base under 53kb on smaller 58kb devices then the functions that serialise data via setProperty() work fine. Users of the watch face on VAHR and FR735 are reporting that the application is now stable and no crashes.