Eclipse IDE for Java Developers (running on Windows 10 PC)
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
With Connect IQ SDK 3.0.8 running the app in the simulator.
I have been working on a Watchface app and have run into a problem where if I add one extra property then suddenly the current running memory usage (on the simulator) increases by about 7kB. The property does not even need to be linked to a setting for this to occur.
Looking at the memory view in the simulator it shows the memory size of <Application Settings> has changed from 2384 (which I normally see) to 9404 - which would on its own explain the 7k jump in memory usage. So I suspect there is a bug occurring here.
Unfortunately the sudden increase of 7kB memory usage pushes my Watchface app over the edge and prevents me changing settings via the App Settings Editor as the peak memory becomes too high for it to also load in a new set of settings.
I have replicated the problem with a completely fresh new project following these steps:
I created a new project and made a Watchface for 3.0.x of type "Simple With Settings" for Fenix 5X Plus.
Then I edited the properties.xml file to make there be 102 properties (see attached file).
When I ran it in the simulator then <Application Settings> memory size (in the simulator memory view) was 2384.
I added one more property to make 103 and ran it again.
The <Application Settings> memory size was now 9404.
But things get slightly weirder.
Running it again with 103 properties the <Application Settings> memory size was back down to 2384!
Increasing properties one by one it stayed like this until 112 properties.
Then at 113 properties the <Application Settings> memory size jumps to 9404 again.
It now repeats every time switching between 112 & 113.
So there is something odd going on.
Hope you can fix this problem as suddenly losing 7k of memory is a lot when close to the edge already!