Out Of Memory Error “Failed loading application” before getGlanceView() on CIQ 3.4 devices

Hi,

when starting my app on a CIQ 3.4 device with 32 kB glance memory, such as the Fenix 6 Pro or Forerunner 945 LTE, I get an Out of Memory Error: Failed loading application.

The error occurs before the glance is started. AppBase.getGlanceView() has not been executed yet. The stack trace points to a seemingly random file that is not even part of the glance scope.

When I start the glance on a device with 64 kB glance memory, it only uses 13 kB of memory, with a peak usage of 15 kB. So this does not really seem to be caused by a lack of memory.

What else could cause such an error?

Here is the error message:

Error: Out Of Memory Error
Details: Failed loading application
Stack: 
  -  at D:\GitHub\ohg\source\main\data\communications\connection\RequestUiUpdateTask.mc:11 0x80000000 

Encountered app crash.

For reference, here is the code base, including the file the error points to:

https://github.com/openhab/openhab-garmin