-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worker
doesn't support classes from native extensions with ADL launch
#2385
Comments
@ajwfrost Note: For Animate I'm using "new" |
Hi @itlancer - apologies, it looks like a change had been mis-flagged in our source control system as being associated with this one, when in fact it was nothing to do with it (some FBD changes, and I believe there are other open issues for that). For this one itself, it's an interesting point: ANE definitions don't get compiled in to a SWF like a SWC file normally would, instead they're loaded in as part of the bootstrap code for the application. So the definition is in the root/primordial instance because of this bootstrap code; the Worker doesn't go through the same process so it doesn't have the definition... In terms of getting the definitions from the SWC file (or library.swf, as this is pulled out of the SWC and put into the ANE) then this should be possible, by adding a simple bit of bootstrapping into the Worker start-up. So then I suspect it will be possible to use an ANE from a Worker, but the extension contexts would all be different between ANEs in different Workers so there may be some interesting side-effects... thanks |
Fixed with AIR 50.2.2.3+. |
Problem Description
Worker
doesn't support classes from native extensions with ADL launch. Application just throwReferenceError
exception in run-time when you try to call or get anything from classes from native extensions usingWorker
. With complex AIR applications and native extensionsWorker
immediately terminated just after running (or even dispatch "terminated" status twice, without "running").So AIR application that uses native extension classes inside
Worker
cannot be tested with IDE.It has been tested with multiple AIR versions (even with latest AIR 50.1.1.2), different Adobe Animate and VS Code versions with different Windows devices.
Same problem in all cases.
After packaging application and launching it (without ADL) all works fine.
Related issue: https://tracker.adobe.com/#/view/AIR-4198547
Steps to Reproduce
Launch code below with any IDE. It just start
Worker
and trace constant from native extension class (TestANE.TEST_CONSTANT
).You should use Adobe Scout with enabled "Start sessions for ActionScript Workers" to see how it works:
Application example and native extension sample with sources attached.
worker_native_extension_class_bug.zip
Actual Result:
In
Worker
session you will getReferenceError
exception.Expected Result:
In
Worker
session you will see trace with constant value. You will see trace from it with Adobe Scout.Known Workarounds
none
The text was updated successfully, but these errors were encountered: