makeImageRequest times out on Instinct 2 / 2X Solar with Garmin Connect

Hi everyone,

I’m developing a Connect IQ watch app that uses Communications.makeImageRequest() to load public map PNG tiles over HTTPS.
Instinct 2 series users have reported that the map never appears and the watch repeatedly shows “Map timed out.” One tester was on Android mobile data with Garmin Connect open and battery saver disabled.

The app requests one tile at a time. It asks Garmin to resize the image to at most 192 × 192 pixels and convert it to a black-and-white palette. If no callback arrives within 20 seconds, OpenMaps cancels the request. The latest build distinguishes two cases:

- “Garmin code: -300” means the image request callback returned -300.
- “No reply after 20s” means OpenMaps reached its own timeout without a callback.

In the Connect IQ simulator (9.3.0), the same live tile requests usually succeed, including with the PC connected through an iPhone hotspot. I’ve seen an occasional missing callback in the simulator, but I haven’t reproduced the repeated failure users are seeing on physical watches.

If you’d like to test it yourself:
apps.garmin.com/.../f5cd5919-84f9-41b3-b5c7-276a154039bc

Open Garmin Connect on your phone, then open OpenMaps on the watch and hold MENU → Test online maps. This requests a single live tile from a fixed location and works indoors without a GPS fix. If possible, try once with your phone on Wi-Fi and once on mobile data.

I'm curious if anyone has seen makeImageRequest repeatedly fail or go without a callback on these devices? Is there a Garmin-side diagnostic that can help distinguish an image-service failure from a problem delivering the bitmap back to the watch? On Insinct 3 watches, the method works fine.

  • You mention -300 which is Network request timeout..  Also note that when you make a request, it's actually made by a Garmin server, which gets the image back and does things like the size/color conversion and converts it to the format used on the Garmin

  • Thanks, that’s helpful. The updated build distinguishes -300 returned by Garmin from the app’s own timeout when no callback arrives within 20 seconds, but I only own an Instinct 3 so I can't test it on an actual watch.

    Since Garmin’s server fetches and converts the image, opening the same tile in the phone browser did confirm that the URL is reachable from the phone. Is there a way to tell whether -300 came from the server fetching or converting the image, or from a problem delivering the bitmap back to the watch? And have you seen makeImageRequest() succeed on a physical Instinct 2, 2S, or 2X?

  • I don't use makeImageRequests much at all, but the lower memory on the I2 may also be involved.  Also with pre ciq 4.x devices, like the I2, there is no graphics pool.  Is your I3 MIP or AMOLED?

  • Good point about the graphics pool. Mine is an Instinct 3 MIP.

    I tested the same live tile at 192 × 192 and 128 × 128 in the Instinct 2S and 2X Solar simulators. All four requests returned 200 with a usable bitmap. On both models, free app memory dropped by about 9.2 KiB at the callback for the larger tile and 4.2 KiB for the smaller one. So a saving of 5 KiB per tile.

    Both sizes loaded in about 1.2–1.5 seconds, with one request per size on each model. The next useful comparison would propably be the same test on a physical Instinct 2 that’s been timing out (current build shows error code)

  • Installed the new update and it's same as the original on an I2.

    Who sets the 20 second max?  There can be variations like CPU speed, connection speed, size of image, etc that come into play.  Maybe skip that and just look for an error on the call/reply

  • The 20-second cutoff was set by the app. I’ve built update v1.0.4 for the seperate I2 app, both regular map loading and Test online maps now show elapsed time and wait for Garmin’s reply. Press BACK to cancel if the request keeps waiting. If Garmin returns an error, the app shows the exact code.

    On the previous build, did you see on your I2: “Garmin code: -300” or “No reply after 20s”?

    I verified in the Instinct 2X simulator that the test accepts a simulated -300 reply after 22 seconds. Once v1.0.4 is available in the store, you can test on your Instinct 2 and let me know whether the map loads, Garmin returns an error, or you end up cancelling. Thanks for the help!

  • I see "Map timed out".  Just looked at the mobile app to see if there was an update and it now says the app is not compatible with my I2.

  • Thanks for checking, Jim. I've moved Instinct 2 support to a separate Beta listing, Maps for Instinct 2: apps.garmin.com/.../a8a1184c-7280-4373-ba11-5f50325ec7b9

    “Map timed out” by itself doesn’t tell us which timeout occurred. If you’re willing to try again, v1.0.4 of the separate app shows elapsed time and waits for Garmin’s callback during regular map loading and MENU → Test online maps. Press BACK if it keeps waiting. If Garmin returns an error, you can share the exact code and elapsed time.

  • Ok, I see the -300.  The display of that is very tiny and very hard to read.  You probably want to use the next font size up.

    The only way I can exit the app now seems to be to power off the watch.

  • -300 confirms the Garmin timeout. Do you remember how long it took to appear and whether you saw it during regular map loading or under MENU → Test online maps?

    The next update should be live in the separate Maps for Instinct 2 app in a few minues. The error text is larger, and pressing BACK from the map cancels any pending request and opens the exit prompt. Press START to confirm, or use MENU → Exit app. 

    You can try Test online maps again. The test now requests a small black-and-white Map sample hosted on my own server. You can check what it shows and roughly how long it takes. Thanks for helping narrow this down.