Highlighted

AIR app crashes when using FULL_SCREEN_INTERACTIVE on nativeWindow

New Here ,
Aug 29, 2014

Copy link to clipboard

Copied

App is running on desktop and packaged as Signed native installer with AIR 14

My app opens and closes native windows and adds externally loaded SWFs to them. I'm activating the windows with a FULL_SCREEN_INTERACTIVE displayState. Without fail, after 5 or 10 windows opened and closed, the app crashes upon opening the next native window.

If I don't use FULL_SCREEN_INTERACTIVE, the app never crashes, I've tested on Mac OS and Windows, same problem.

This code opens the window :

var options:NativeWindowInitOptions = new NativeWindowInitOptions();

options.transparent = false;
options
.systemChrome = NativeWindowSystemChrome.STANDARD;
options
.type = NativeWindowType.NORMAL;
options
.resizable = false;
options
.renderMode = NativeWindowRenderMode.DIRECT;  

myWindow
= new NativeWindow(options);
myWindow
.title = "Title";
myWindow
.width = 1024;
myWindow
.height= 768;

myWindow
.stage.align = StageAlign.TOP_LEFT;
myWindow
.stage.scaleMode = StageScaleMode.NO_SCALE;
myWindow
.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
myWindow
.activate();

// add content to window
var loader:Loader = new Loader();
var AD:ApplicationDomain = new ApplicationDomain();
var context:LoaderContext = new LoaderContext( false, AD );
context
.allowLoadBytesCodeExecution = true;

// urlloader has loaded a local SWF file
loader
.loadBytes( urlloader.data, context );
myWindow
.stage.addChild(loader);


This is the crash report from Mac OS :

Process:  adl [29243]
Path:   /Applications/Adobe Flash Builder 4.7/*/adl
Identifier: adl
Version: ???
Code Type: X86 (Native)
Parent Process: Adobe Flash Builder 4.7 [72735]
Responsible: Adobe Flash Builder 4.7 [72735]
User ID: 501

Date/Time: 2014-08-29 15:53:57.344 -0400
OS Version: Mac OS X 10.9.4 (13E28)
Report Version: 11
Anonymous UUID: 8F57FABC-FE5A-30AB-3E90-2F97052D4975

Sleep/Wake UUID: 577E4E3E-84CF-4446-96E4-0D5FF83DB6B5

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000003f800008

VM Regions Near 0x3f800008:
  CG backing stores 0000000017577000-0000000017e41000 [ 9000K] rw-/rw- SM=SHM 
-->
  __TEXT 0000000040000000-000000004035c000 [ 3440K] r-x/rwx SM=COW /System/Library/Extensions/AppleIntelHDGraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHDGraphicsGLDriver

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.adobe.AIR 0x02913e50 0x2800000 + 1130064
1 com.adobe.AIR 0x02945d81 0x2800000 + 1334657
2 com.adobe.AIR 0x029389fe 0x2800000 + 1280510
3 com.adobe.AIR 0x02a0ae85 0x2800000 + 2141829
4 com.adobe.AIR 0x02a037af 0x2800000 + 2111407
5 com.adobe.AIR 0x02a03c2f 0x2800000 + 2112559
6 com.adobe.AIR 0x02a0228d 0x2800000 + 2105997
7 com.adobe.AIR 0x02a01d8d 0x2800000 + 2104717
8 com.adobe.AIR 0x02a08be1 0x2800000 + 2132961
9 com.adobe.AIR 0x02a014e6 0x2800000 + 2102502
10 com.adobe.AIR 0x02e3287f 0x2800000 + 6498431
11 com.adobe.AIR 0x02ce2d17 0x2800000 + 5123351
12 com.apple.Foundation 0x9283727c __NSFireDelayedPerform + 422
13 com.apple.CoreFoundation 0x90195ea6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
14 com.apple.CoreFoundation 0x90195863 __CFRunLoopDoTimer + 1395
15 com.apple.CoreFoundation 0x9021006d __CFRunLoopDoTimers + 349
16 com.apple.CoreFoundation 0x9014d353 __CFRunLoopRun + 1779
17 com.apple.CoreFoundation 0x9014c9ea CFRunLoopRunSpecific + 394
18 com.apple.CoreFoundation 0x9014c84b CFRunLoopRunInMode + 123
19 com.apple.HIToolbox 0x9a10eb5d RunCurrentEventLoopInMode + 259
20 com.apple.HIToolbox 0x9a10e777 ReceiveNextEventCommon + 163
21 com.apple.HIToolbox 0x9a10e6bd _BlockUntilNextEventMatchingListInModeWithFilter + 92
22 com.apple.AppKit 0x9848e349 _DPSNextEvent + 1602
23 com.apple.AppKit 0x9848d870 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
24 com.apple.AppKit 0x9848015c -[NSApplication run] + 727
25 com.adobe.AIR 0x0280228c 0x2800000 + 8844
26 com.adobe.AIR 0x02802438 0x2800000 + 9272
27 libobjc.A.dylib 0x96e672af -[NSObject performSelector:withObject:] + 70
28 adl 0x00002d7e RuntimeMain(char const*, int) + 256
29 adl 0x00002e0e main + 34
30 adl 0x000026dd start + 53


Any help would be much appreciated.

TOPICS
Development

Views

291

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

AIR app crashes when using FULL_SCREEN_INTERACTIVE on nativeWindow

New Here ,
Aug 29, 2014

Copy link to clipboard

Copied

App is running on desktop and packaged as Signed native installer with AIR 14

My app opens and closes native windows and adds externally loaded SWFs to them. I'm activating the windows with a FULL_SCREEN_INTERACTIVE displayState. Without fail, after 5 or 10 windows opened and closed, the app crashes upon opening the next native window.

If I don't use FULL_SCREEN_INTERACTIVE, the app never crashes, I've tested on Mac OS and Windows, same problem.

This code opens the window :

var options:NativeWindowInitOptions = new NativeWindowInitOptions();

options.transparent = false;
options
.systemChrome = NativeWindowSystemChrome.STANDARD;
options
.type = NativeWindowType.NORMAL;
options
.resizable = false;
options
.renderMode = NativeWindowRenderMode.DIRECT;  

myWindow
= new NativeWindow(options);
myWindow
.title = "Title";
myWindow
.width = 1024;
myWindow
.height= 768;

myWindow
.stage.align = StageAlign.TOP_LEFT;
myWindow
.stage.scaleMode = StageScaleMode.NO_SCALE;
myWindow
.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
myWindow
.activate();

// add content to window
var loader:Loader = new Loader();
var AD:ApplicationDomain = new ApplicationDomain();
var context:LoaderContext = new LoaderContext( false, AD );
context
.allowLoadBytesCodeExecution = true;

// urlloader has loaded a local SWF file
loader
.loadBytes( urlloader.data, context );
myWindow
.stage.addChild(loader);


This is the crash report from Mac OS :

Process:  adl [29243]
Path:   /Applications/Adobe Flash Builder 4.7/*/adl
Identifier: adl
Version: ???
Code Type: X86 (Native)
Parent Process: Adobe Flash Builder 4.7 [72735]
Responsible: Adobe Flash Builder 4.7 [72735]
User ID: 501

Date/Time: 2014-08-29 15:53:57.344 -0400
OS Version: Mac OS X 10.9.4 (13E28)
Report Version: 11
Anonymous UUID: 8F57FABC-FE5A-30AB-3E90-2F97052D4975

Sleep/Wake UUID: 577E4E3E-84CF-4446-96E4-0D5FF83DB6B5

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000003f800008

VM Regions Near 0x3f800008:
  CG backing stores 0000000017577000-0000000017e41000 [ 9000K] rw-/rw- SM=SHM 
-->
  __TEXT 0000000040000000-000000004035c000 [ 3440K] r-x/rwx SM=COW /System/Library/Extensions/AppleIntelHDGraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHDGraphicsGLDriver

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.adobe.AIR 0x02913e50 0x2800000 + 1130064
1 com.adobe.AIR 0x02945d81 0x2800000 + 1334657
2 com.adobe.AIR 0x029389fe 0x2800000 + 1280510
3 com.adobe.AIR 0x02a0ae85 0x2800000 + 2141829
4 com.adobe.AIR 0x02a037af 0x2800000 + 2111407
5 com.adobe.AIR 0x02a03c2f 0x2800000 + 2112559
6 com.adobe.AIR 0x02a0228d 0x2800000 + 2105997
7 com.adobe.AIR 0x02a01d8d 0x2800000 + 2104717
8 com.adobe.AIR 0x02a08be1 0x2800000 + 2132961
9 com.adobe.AIR 0x02a014e6 0x2800000 + 2102502
10 com.adobe.AIR 0x02e3287f 0x2800000 + 6498431
11 com.adobe.AIR 0x02ce2d17 0x2800000 + 5123351
12 com.apple.Foundation 0x9283727c __NSFireDelayedPerform + 422
13 com.apple.CoreFoundation 0x90195ea6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
14 com.apple.CoreFoundation 0x90195863 __CFRunLoopDoTimer + 1395
15 com.apple.CoreFoundation 0x9021006d __CFRunLoopDoTimers + 349
16 com.apple.CoreFoundation 0x9014d353 __CFRunLoopRun + 1779
17 com.apple.CoreFoundation 0x9014c9ea CFRunLoopRunSpecific + 394
18 com.apple.CoreFoundation 0x9014c84b CFRunLoopRunInMode + 123
19 com.apple.HIToolbox 0x9a10eb5d RunCurrentEventLoopInMode + 259
20 com.apple.HIToolbox 0x9a10e777 ReceiveNextEventCommon + 163
21 com.apple.HIToolbox 0x9a10e6bd _BlockUntilNextEventMatchingListInModeWithFilter + 92
22 com.apple.AppKit 0x9848e349 _DPSNextEvent + 1602
23 com.apple.AppKit 0x9848d870 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
24 com.apple.AppKit 0x9848015c -[NSApplication run] + 727
25 com.adobe.AIR 0x0280228c 0x2800000 + 8844
26 com.adobe.AIR 0x02802438 0x2800000 + 9272
27 libobjc.A.dylib 0x96e672af -[NSObject performSelector:withObject:] + 70
28 adl 0x00002d7e RuntimeMain(char const*, int) + 256
29 adl 0x00002e0e main + 34
30 adl 0x000026dd start + 53


Any help would be much appreciated.

TOPICS
Development

Views

292

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 29, 2014 0

Have something to add?

Join the conversation