I'm writing a widget for CIQ 3.1.
In a Fenix 6 GlanceView instance, I've tried to makeImageRequest() with 2-color palette, of size about 170x60. The server will actually prepare a grayscale 1-bit monochrome png already. The png image size is about 300-400 bytes.
In simulator everything is just fine, and the bitmap is loaded up perfectly. Peak memory usage is less than 20KB. The problem is that once I sideload it to my F6pro it crashes every single time:
Error: Out Of Memory Error
Details: failed inside handle_image_callback
Time: 2019-12-18T06:13:24Z
Part-Number: xxx-xxxxx-xx
Firmware-Version: '5.00'
Language-Code: eng
ConnectIQ-Version: 3.1.6
I've tried to remove the :palette options in makeImageRequest() but it sometimes also crash in simulator saying out of memory too. If I reduce the server side image size a bit to 140x60 simulator is also fine, but on real device it still crashes due to out of memory.
This is really frustrating as the simulator really doesn't simulates things at all.
Other annoying thing is that pressing "Select" (upper right) button on Simulator doesn't get into the "normal" view of the widget. It stays in to glance view forever.