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

[Windows] Application crash on fast application exit with AIR 33 and StageVideo with some videos playback #250

itlancer opened this issue Mar 2, 2020 · 0 comments


Copy link

@itlancer itlancer commented Mar 2, 2020

Problem Description

Application crashes on fast application exit with AIR 33 and StageVideo with some videos playback by Windows devices. You can reproduce it via NativeApplication.nativeApplication.exit() or by closing via Alt+F4 just after application start.

It has been tested with latests AIR and AIR with many different Windows devices.
Same problem in all cases with some videos.
I have reproduce it with video file from issue #88

It works fine with AIR and below.
There is no such crash with macOS and AIR
NetStream::useHardwareDecoder=false doesn't help. Video doesn't work at all because of that: #155

Related issues (not the same):

Steps to Reproduce

Launch code below with Windows devices.

Application example with sources and example of video attached.

package {
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	import flash.desktop.NativeApplication;
	public class StageVideoCloseCrash extends Sprite {
		private var nc:NetConnection;
		private var ns:NetStream;
		public function StageVideoCloseCrash() {
			addEventListener(Event.ADDED_TO_STAGE, init);
		private function init(e:Event):void {
			removeEventListener(Event.ADDED_TO_STAGE, init);
			nc = new NetConnection();
			nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
		private function netStatusHandler(event:NetStatusEvent):void {
			switch ({
				case "NetConnection.Connect.Success":
					ns = new NetStream(nc);
					ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
					ns.client = {onMetaData:getMeta, onPlayStatus:onPlayStatus};
					var sv:StageVideo = stage.stageVideos[0];
					sv.viewPort = new Rectangle(0,0, 1280, 800);
				case "NetStream.Play.StreamNotFound":
					trace("Stream not found");
				case "NetStream.Buffer.Full":
					NativeApplication.nativeApplication.exit();//This line cause crash. If crash doesn't reproduced then comment this line and close application by Alt+F4 just after start to reproduce it.
		private function getMeta(mdata:Object):void { }
		private function onPlayStatus(infoObject:Object):void { }

Actual Result:
Application crash.

Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	adl.exe
  Application Version:
  Application Timestamp:	5e4e2cf2
  Fault Module Name:	Adobe AIR.dll
  Fault Module Version:
  Fault Module Timestamp:	5e4e3637
  Exception Code:	c0000005
  Exception Offset:	0054951a
  OS Version:	6.3.9600.
  Locale ID:	1049
  Additional Information 1:	5861
  Additional Information 2:	5861822e1919d7c014bbb064c64908b2
  Additional Information 3:	d1d9
  Additional Information 4:	d1d94a13d3609d6b740644c12508f581


Faulting application name: stagevideo_close_crash.exe, version:, time stamp: 0x5e4e2de8
Faulting module name: ntdll.dll, version: 10.0.14393.3503, time stamp: 0x5e344dc4
Exception code: 0xc0000409
Fault offset: 0x000834d0
Faulting process id: 0xd0c
Faulting application start time: 0x01d5f069d30a8518
Faulting application path: C:\\stagevideo_close_crash.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 1765782b-fac6-460d-93a4-5dd4aabf8609

Expected Result:
Application correctly exit without crashes.

Known Workarounds


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.