Acknowledged

bitmap png format bug (FR 165, Venu Sq 2)

I'm using png bitmaps with transparency for my watchface supporting 20+ amoled watches.

Works fine on all devices except FR165/Venu Sq 2 for which the simulator fails at drawBitmap2 call, with message:

Error: Unhandled Exception

Exception: Source must be native color format

Stack: - onUpdate() at (my drawBitmap2 line ...)

I've tried changing the drawable bitmap definition attributes to no avail.

Is it just device file bugs? Making sure the compiler.json files contain an imageFormats section containing png solves the simulator problem at least ...

Currently using 7.2.1.

Also, see bitmap native color format venusq2 discussion.

  • Also the same issue exists on the  instinct3amoled50mm  and  instinct3amoled45mm

  • This exception also happens on the Descent G2.   Descent G2 and FR165 are listed as supporting drawBitmap2() in the API documentation. However this bug makes the function unusable. 

  • The device doesn't support PNG formats, so editing the compiler.json for the device to include support for PNG can cause issues when running on the device. I was able to work around this runtime error in a test app by adding automaticPalette="false" to the <bitmap> definition in the resource file. We'll take a look and see why not having this causes a crash.