Acknowledged
over 1 year ago

venusq2 device file incomplete?

Have updated device files through sdk manager, but received an exception during drawBitmap2 in the sim, and noticed the venusq2 compiler.json seems to be lacking an imageFormats section.

  • There is clearly an underlying issue here as I hit this too, and the exception is not documented.

    I was able to workaround the issue by adding automaticPalette="false" to the bitmap definition, but we should not hit undocumented exceptions so something should be fixed here. I'm using 8.1 SDK with latest device definitions and hit this on the 165m.

  •  I have a confirmation that this bug affects not only simulator but also some real devices - FR165 and Venu SQ2. It works on my FR165, but crashes for other users on drawBitmap2 (different firmware?).

    So, now it is a "catch 22" situation: some FR165 and Venu SQ2 support drawBitmap2, but don't support packingFormat="png" for some reason. Worst part is that there is no way for us to identify the problem and avoid executing drawBitmap2. Now the apps using drawBitmap2 on FR165 will fail with:

    Error: Unhandled Exception
    Exception: Source must be native color format

    Is there a workaround for this issue?
  • Same error happens for me in drawBitmap2 when I use PNG files:

     <bitmap id="white_m_x" filename="white_metrics_x.png" packingFormat="png" scaleX="100%" scaleY="100%" scaleRelativeTo="screen"/>
    dc.drawBitmap2(0, 0, white_m, {:tintColor => p[1], :filterMode => G.FILTER_MODE_BILINEAR} );
  • Same thing happens for the FR165, which does not seem to have png support in the imageFormats section.

    My bitmap images are png.

    The same exception as reported in previous comment, which by the way can't be caught

    and ends in a 'Encountered app crash' for the simulator.

  • I get an unhandled exception:

    Error: Unhandled Exception

    Exception: Source must be native color format

    Stack: - onUpdate() at <drawBitmap2 line in my view ...>

    Adding an imageFormats section (from the venusq2m!) to the compiler.json solves the problem.