From 3c42660cda4650efe87214dca437e55376505396 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Wed, 28 Jan 2026 17:09:33 +0000 Subject: [PATCH] Update README.md Unable to fix the out of memory issues for large JSON menu definitions, nor code around them. So listing a known issue as the best that can be done. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4cc1ea5..9496fb2 100644 --- a/README.md +++ b/README.md @@ -463,6 +463,8 @@ Check the latest unresolved [issues](https://github.com/house-of-abbey/GarminHom 10. There are memory limits, particularly for older devices. Please see the [explanation of the memory limits](Devices.md) and device support. +11. There is a 32 kB memory limit for any Glance views that mean too large a menu definition can cause the Glance view to crash. The symptom is that a previously 'Available' menu (green text) now appears as 'Unavailable' (red text) because the HTTP request to both retrieve the menu and convert it to `Dictionary` objects (from which the glance view can extract the `glance` field) ran out of memory. Out of memory exceptions are fatal and cannot be caught in order to code around them. Therefore the Glance status does not get updated to 'Available' as you would expect. The solution is to limit the size of your JSON menu definition by experimentation. For the same reason, the Glance view can no longer cache the menu to `Storage` ahead of the main application as the keys in that storage are limited to 8 kB. Remember its an app running on your watch not a desktop! + # Authors & Contributors For an up to date list of all authors and contributors, please check the [contributor's page](https://github.com/house-of-abbey/GarminHomeAssistant/graphs/contributors). Thank you all for improving this application.