house-of-abbey / GarminHomeAssistant

Garmin application to provide a dashboard to control your Home Assistant
https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348
MIT License
79 stars 12 forks source link

Template Menu Item #72

Closed JosephAbbey closed 8 months ago

JosephAbbey commented 8 months ago

Runs on vivoactive3 without memory issues

philipabbey commented 8 months ago

Further testing is revealing memory limits. The widget fails when the application works. The simulator shows us the memory limits as follows.

The widget is now using 56 of 59.9 kB and crashing. (Game not over yet)

philipabbey commented 8 months ago

Using a script to ensure compilaion of Vivoactive 3 without debug (--release) and deploy to the simulator we have 52.4/59.9 kB used.

Changing the JSON configuration to a simpler one (sill using no debug) we have 49.0/59.9 kB used.

So we have confirmation that the JSON configuration can cause this device to run out of memory. Not an unexpected result, but we are clearly "on the edge".

philipabbey commented 8 months ago

Latest commits provide a saving by removing the menu style option and associated class:

Vivoactiove 3 Widget with template menu items (previously failing on watch) now 50.9/59.9 kB

philipabbey commented 8 months ago

Latest commit now 50.4/59.9 kB 52.5 kb after updating status menu items.