Highlighted

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

Community Beginner ,
Feb 16, 2015

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?

TOPICS
Performance issues

Views

799

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Community Beginner ,
Feb 16, 2015

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?

TOPICS
Performance issues

Views

800

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 16, 2015 0
Adobe Employee ,
Feb 17, 2015

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 17, 2015 0
Community Beginner ,
Feb 17, 2015

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

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

Regards.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 17, 2015 0
Adobe Employee ,
Feb 17, 2015

Copy link to clipboard

Copied

Thanks for valuable information,

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

Regards,

Jitender

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 17, 2015 2
New Here ,
Mar 17, 2015

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 17, 2015 1
Contributor ,
Jun 13, 2015

Copy link to clipboard

Copied

The same issue here.

Please fix this issue.

It's very important.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 13, 2015 0
Adobe Employee ,
Jun 14, 2015

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 14, 2015 0
Contributor ,
Jun 15, 2015

Copy link to clipboard

Copied

Unfortunately was the same result.

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 15, 2015 0
Adobe Employee ,
Jun 16, 2015

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,

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 16, 2015 0