freshplanet / ANE-ImagePicker

Air Native Extension for mobile camera and gallery features (iOS + Android)
Apache License 2.0
80 stars 48 forks source link

Silently crashes when launching app (iOS) #27

Open timoisalive opened 10 years ago

timoisalive commented 10 years ago

Strange problem I noticed which I'm not really sure what does it have to do with.

I'm using AirImagePicker.getInstance().displayImagePicker and it works fine if I call it directly on mouse click event, but if I call it with a 500ms delay after the mouse click (with setTimeout, to show a spinner before the operation), the app crashes silently right after launching it, I believe during the import/init of the AirImagePicker ANE.

However, if I compile the app with -useLegacyAOT=yes parameter, it doesn't seem to crash. Also, if I debug the app on the device it works fine. I'm using the latest AIR 15 build 258.