AIR App Crashes iOS After Loading Remote Image
I have had this problem both with the latest official AIR SDK 3.3 (3.3.0.3670) and 3.4 release (3.4.0.2540) when doing a Standard build. I am loading a few files one after the other from a remote server on an iPad. After loading some xmls and swfs successfully, my app crashes and closes without any error message upon loading an image file (I've tried both png and jpg with the same result). I have both progress and complete event listeners on the loader and the crash happens after all bytes are loaded and before the complete event triggers. So it seems as if there is some problem with initializing/decompressing the image. The crash log reports things along the lines of "EXC_BAD_ACCESS" and "KERN_INVALID_ADDRESS."
This problem does not occur if the files are loaded from the application directory --- only when they are loaded from the remote server. It is also not occuring with the preview AIR SDK 3.4 with iOS6 Support release (3.4.0.3010). It is also not occuring on the desktop simulator (adl) or the Fast mode debug option.
Right now all I can gather is that it is a bug with the AIR SDK that seems to be resolved in upcoming versions, however I am due to submit my app to the app store September 4th so I don't really have the time to wait!
Please advise on how I can go about tackling this issue.
The issue occurs with any combination of the following:
- Flash Builder 4.6
- Flex SDK 4.5.1 or 4.6
- AIR SDK 3.3 or 3.4
- iPad 1/2/3 with iOS 5.1.1
