Skip to main content
Participant
December 6, 2015
Question

Extending custom classes crashes workers in iOS AOT builds.

  • December 6, 2015
  • 2 replies
  • 971 views

Hello,

The problem seems to occur when I reference a class that inherits from custom code from within the worker. For example, class WorkerRequest extends WorkerResponse (both custom classes). If an instance of WorkerRequest is referenced within the worker SWF code, the application crashes. I have an example application within the following zip Dropbox - AOTWorkerCrash.zip


This only occurs in an iOS AOT build. Interpreted iOS, Android and Desktop builds run fine.


Anybody else having this issue?


Cheers!

This topic has been closed for replies.

2 replies

Adobe Employee
June 27, 2016

Hi All,

Our team has found the fix and we are working on the same.

We will let you know once we ship the fix.

thanks a lot for the patience.

-Roshan

Adobe AIR.

Participant
June 28, 2016

That's great news! Thanks Roshan!

Participant
December 21, 2015

I've gone through Grant's example and written my own separate test app, and it seems that there is indeed an issue with Workers on iOS. Here's what I've found:


If I have a custom class (let's call it Foo) that inherits from another custom class (let's call it Bar) then the app will crash if I create an instance of Foo in both the main and background thread. However, if Foo is re-worked so that it doesn't inherit a custom class, then the crash no longer occurs.

This is likely the same as the known issue that is mentioned in the AIR 20 Release notes:

[iOS] Crash if Class used in Main and Background worker is a CustomClass (4068748)


Grant also has a separate bug logged in the Adobe Bugbase for this:

Extending custom classes within workers crashes iOS AOT builds (4096299)

Does anyone from Adobe know if this bug is being actively looked at or when it will likely be fixed? It's a major blocker on a project I'm currently working on.


Thanks,

- Christopher

Participating Frequently
June 24, 2016

Same thing is happening with AIR 21. FFS, Adobe, this makes workers unusable on iOS.