OpenTopoMap issue

My device is Edge Explorer2. Every time I try to download an image from opentopomap using makeImageRequest it crashes on the response callback. Other sites work fine. Only opentopomap crashed. In the simulator it works fine, on another device the Edge 520 works fine. For me it seems to be a problem with the new API.

  • What's in the ciq_log when you get the crash?

    The explore 2 is a CIQ 4 device, so the graphics pool is involved with this - The graphics pool is has a limited size and is shared between all apps on the device, so maybe that is involved. 

  • Thanks for your replay.

    ciq_log looks:

    Error: System Error
    Details: failed inside handle_image_callback
    Time: 2024-03-17T10:09:41Z
    Part-Number: XXX-XXXXX-XX
    Firmware-Version: '19.21'
    Language-Code: pol
    ConnectIQ-Version: 4.2.4
    Filename: testE2
    Appname: testE2
    Stack:

    the image is about 20kB, so it's tiny. In the documentation, explore2 has about 1MB for apps, so I guess memory isn't an issue.

  • The there is less app memory used when the graphics pool is involved, as the image is in the graphics pool and not in the app's memory.

  • I changed to downloading a photo from another website (about 30kB - so it's bigger) and in this case everything works fine. I noticed strange behavior of the simulator, I limited the image size using the color palette to only 2 colors, but the simulator still shows the full color palette. This happens with all CIQ4 devices.