Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Graphics.readGraphicsData() crashes app on Android devices

Open MalacTheLittle opened this issue 2 years ago • 2 comments

Problem Description

If you call readGraphicsData() on Shape not added to stage, app will crash without any error thrown. Same problem happens with library item that contains Shape, if item is not added to stage, app will crash while trying to read shapes graphics data.

AIR 33.1.1.633, AIR 33.1.1.856 Android Render mode: GPU

It works fine with Direct/CPU render mode!

Steps to Reproduce

Create desired shape, don't add it to the stage or any object that's added to the stage and try to read graphics data.

Example:

var sh:Shape = new Shape(); sh.graphics.beginFill(0xFF0000); sh.graphics.drawRect(0, 0, 100, 100); sh.graphics.endFill();

sh.graphics.readGraphicsData();

Known Workarounds

Add desired shape to stage, read shape graphics data and return shape to origin location.

MalacTheLittle avatar May 14 '22 21:05 MalacTheLittle

Thanks for finding this one, we'll get it fixed for the next release..

ajwfrost avatar May 17 '22 05:05 ajwfrost

aaaaaa

omoro1109 avatar May 18 '22 09:05 omoro1109