Copy link to clipboard
Copied
I found application crash on AIR 17 beta + iOS (AOT build).
package
{
import flash.display.Sprite;
public class SimpleMobileApplication extends Sprite
{
public function SimpleMobileApplication()
{
stage.addChild(new BaseView());
}
}
}
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.MouseEvent;
class BaseView extends Sprite
{
public function BaseView()
{
var s:Shape = new Shape();
s.graphics.beginFill (0xFFAAAA, 1.0);
s.graphics.drawRect(0,0,100,100);
addChild(s);
addEventListener(MouseEvent.MOUSE_DOWN, doSomething);
}
public function doSomething(e:*):void
{
}
}
class ExtendedView extends BaseView
{
public override function doSomething(e:*):void
{
trace(arguments);
}
}
When tap a red rect, application will crash!
AIR17 + iOS(AOT): crash
AIR17 + iOS(no AOT): no problem
AIR14 + iOS(AOT): no problem
I found workaround for this problem.
I remove arguments object in all overridden functions, and now works fine.
Could you please fix this problem in future versions of AIR?
Copy link to clipboard
Copied
Thanks for reporting the issue.
We verified the issue at our end but could not reproduce the crash. Could you please let us know if its device specific or reproducible on all iOS devices.
Regards,
Jitender
Copy link to clipboard
Copied
Sorry.
I run this code only on debug-build.
Exported release build does not reproduce the crash.
To reproduce on release ipa package,
change BaseView#doSomething function like this.
public function doSomething(e:*):void
{
trace("do something"); // Add this line
}
Could you please try again.
I run the app on
Regards.
Copy link to clipboard
Copied
Thanks for valuable information,
we are able to reproduce the problem now and further investigating it.
Regards,
Jitender
Copy link to clipboard
Copied
We have the same problem. Using arguments.callee crashes app on iOS with useLegacyAOT no. Actually it does not depends on Air version. We have this issue with all Air versions: 14, 15, 16, 17.
As I understand we have to use new compeler to build universal binary (both armv7 and arm64) for iOS and we can not publish our app to AppStore using legacy compiler. If it is true this bug blockes publishing of new apps.
Copy link to clipboard
Copied
The same issue here.
Please fix this issue.
It's very important.
Copy link to clipboard
Copied
Hi,
This issue was fixed in our latest build 18.0.0.143. Can you please try this on our latest SDK.
Let me know if you still face the issue.
Thanks
Adobe AIR Team
Copy link to clipboard
Copied
Unfortunately was the same result.
The origin of this issue came from here: iOS • Stimulsoft Forum
Copy link to clipboard
Copied
Hi,
The original issue in above thread has been fixed in our latest build 18.0.0.143 Adobe - Adobe AIR . Could you please report your issue in Bug Base Home with sample code snippet.
Thanks
Adobe AIR Tea,