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.

Parents
  • The imageFormats section of the compiler.json is not related to drawBitmap2(), so I don't think that's an issue in this case. Can you describe more about the exception you're seeing? The one exception that method can throw is related to the location and size parameters falling outside of bounds of the source bitmap.

Comment
  • The imageFormats section of the compiler.json is not related to drawBitmap2(), so I don't think that's an issue in this case. Can you describe more about the exception you're seeing? The one exception that method can throw is related to the location and size parameters falling outside of bounds of the source bitmap.

Children
  • 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 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.