Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
Graphics.readGraphicsData() crashes app on Android devices
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.
Thanks for finding this one, we'll get it fixed for the next release..
aaaaaa