Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Same thing is happening with AIR 21. FFS, Adobe, this makes workers unusable on iOS.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
That's great news! Thanks Roshan!
Copy link to clipboard
Copied
Astonishing news. Do you think you'll be able to push it with AIR 22?