Complete

Simulator not changing setting, but keeps new settings as tmp file in TEMP folder

I am facing following behavior in the sim, any idea what can be causing this please ?

1.) Watchface starts OK in sim-> set files is created using default values from properties (Memory reports 74kB Memory peak and 380 objects peaks)
2.) Modifying settings using Connect IQ - App Settings editor in Eclipse
3.) Clicking Send Settings
4.) After some time new settings processing finishes, NO changes are reflected on watchface (Simulator reports Peak Memory 82.6kB and 569 peak objects)

In the file system TEMP directory where sim is pointed i can see new file  "temp_appsettings<multiple_random_digits>.tmp" has been created on same level as GARMIN folder, but set file has not been replaced with new data.
In rare occurrence new set file is created but has 0bytes size. Working SET file has 3.98kB

Parents
  • Still digging into it and things are getting weirder, i still think problem is on my side but not that much convinced anymore: Steps taken: - new PC, fresh Windows 10 build 19041, fresh Eclipse install, CIQ 3.1.8 - new project, not single character copy paste from backup, line by line manually written - running tests when each complete block of code/function is finished, similar to what  Jim suggested just totally from the scratch Results: - Settings remain stable in sim and on real watch as well - With the same code (text compare show differences only in spaces and empty lines i made to have code better readable) Simulator now reports 27kB ! less during memory peak in settings change, i am absolutely happy because it finally corresponds to my calculations with amount and types of properties. But how is that possible ? - Background suddenly reports 7kB  less memory (before 17kB now 10kB)  with initialize and onTemporaryEvent function with minimum code as reported above and  no changes in App.Base code with (:background), compared to the problematic code version. Its like something has been loaded into the background instead, cannot figure what.
Comment
  • Still digging into it and things are getting weirder, i still think problem is on my side but not that much convinced anymore: Steps taken: - new PC, fresh Windows 10 build 19041, fresh Eclipse install, CIQ 3.1.8 - new project, not single character copy paste from backup, line by line manually written - running tests when each complete block of code/function is finished, similar to what  Jim suggested just totally from the scratch Results: - Settings remain stable in sim and on real watch as well - With the same code (text compare show differences only in spaces and empty lines i made to have code better readable) Simulator now reports 27kB ! less during memory peak in settings change, i am absolutely happy because it finally corresponds to my calculations with amount and types of properties. But how is that possible ? - Background suddenly reports 7kB  less memory (before 17kB now 10kB)  with initialize and onTemporaryEvent function with minimum code as reported above and  no changes in App.Base code with (:background), compared to the problematic code version. Its like something has been loaded into the background instead, cannot figure what.
Children
No Data