Skip to main content
Participant
February 17, 2015
Question

App Crash on AIR 17 + iOS using "arguments" object

  • February 17, 2015
  • 3 replies
  • 1393 views

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?

This topic has been closed for replies.

3 replies

Inspiring
June 13, 2015

The same issue here.

Please fix this issue.

It's very important.

piyushb89979246
Adobe Employee
Adobe Employee
June 15, 2015

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

Inspiring
June 16, 2015

Unfortunately was the same result.

The origin of this issue came from here: iOS • Stimulsoft Forum

March 17, 2015

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.

Adobe Employee
February 17, 2015

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

hdoidoiAuthor
Participant
February 18, 2015

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

  • iPad mini + iOS 8.1
  • AIR SDK version 17.0.0  build 96
  • Flash Builder 4.7

Regards.

Adobe Employee
February 18, 2015

Thanks for valuable information,

we are able to reproduce the problem now and further investigating it.

Regards,

Jitender