Skip to content
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

[AIR SDK 50.2.5.1][Linux] Worker::start() cause crash #3195

Closed
itlancer opened this issue Apr 22, 2024 · 2 comments
Closed

[AIR SDK 50.2.5.1][Linux] Worker::start() cause crash #3195

itlancer opened this issue Apr 22, 2024 · 2 comments
Labels

Comments

@itlancer
Copy link

itlancer commented Apr 22, 2024

Problem Description

Worker::start() cause application crash using AIR 50.2.5.1 with Linux.

Tested with latest AIR 50.2.5.1 with Ubuntu 22.04.1 LTS x86_64 devices with different applications.
There is no such issue with Windows.
Also there is no such issue using AIR 50.2.4.5 or 51.0.0.4.

Related issues:
#3166
#2523

Steps to Reproduce

Launch application with code below on any Linux device.

Application example with sources and crash log attached.
linux_worker_start_crash.zip

package {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.system.Worker;
	import flash.system.WorkerDomain;
	
	public class LinuxWorkerStartCrash extends Sprite {
		
		public function LinuxWorkerStartCrash() {
			if (Worker.current.isPrimordial) {
				addEventListener(Event.ADDED_TO_STAGE, init);
			} else {
				trace("worker");
			}
		}
		
		private function init(e:Event):void {
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			var worker:Worker = WorkerDomain.current.createWorker(this.loaderInfo.bytes);
			worker.start();//This line cause crash
		}
	}
}

Actual Result:
Application crash
Application crashed with an unhandled SIGSEGV
Full crash log attached in zip archive above.

Expected Result:
Worker will be started without crash.

Known Workarounds

none
*Use AIR 50.2.4.5

@itlancer itlancer added the Bug label Apr 22, 2024
@ajwfrost
Copy link
Collaborator

This is a side-effect of the fix for #3126 ... will get a fix out for this in the next release.

@itlancer
Copy link
Author

itlancer commented May 4, 2024

Fixed with latest AIR SDK 51.0.1.1.
Thanks!

@itlancer itlancer closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants