Skip to main content
Participant
Feb 17, 2015 5:21 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

8 replies

Inspiring
Jun 13, 2015 5:07 PM UTC

The same issue here.

Please fix this issue.

It's very important.

Translate
piyushb89979246
Adobe Employee
Adobe Employee
Jun 15, 2015 5:38 AM UTC

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

Translate
Inspiring
Jun 16, 2015 12:10 AM UTC

Unfortunately was the same result.

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

Translate
Mar 17, 2015 11:54 AM UTC

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.

Translate
Adobe Employee
Feb 17, 2015 12:01 PM UTC

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

Translate
hdoidoiAuthor
Participant
Feb 18, 2015 5:13 AM UTC

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.

Translate
Adobe Employee
Feb 18, 2015 7:40 AM UTC

Thanks for valuable information,

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

Regards,

Jitender

Translate