Hi All,
Our application crashes inside AppKit when compiled with any SDK > 10.9. The
crash happens at the following point in the program:
activityPaneController = [[ESC_ActivityPaneController alloc] initWithNibName:
@“ESC_ActivitySideBox" bundle: nil];
[superV addSubview: activityPaneController.view];
The code loads 3 NSBoxes from separate NIBs and (tries) to add them as subviews
to an NSBox in the main program window. The program works if we compile it with
the 10.9 SDK. It crashes when compiled with any later SDK (10.10, 10.11, 10.12,
Latest macOS). I am using Xcode 8.1 on 10.12.1. No ARC, no Storyboards and no
AutoLayout are used in these parts of the program. I include below the
crash-log.
Any ideas what I should be looking for?
Regards,
Christos Konidaris
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000068
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x68:
-->
__TEXT 00000001036be000-000000010413c000 [ 10.5M] r-x/rwx
SM=COW /Users/USER/Desktop/*/esc.app/Contents/MacOS/esc
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.AppKit 0x00007fffd366a733 -[NSViewController
_viewDidMoveToWindow:fromWindow:unhiding:] + 78
1 com.apple.AppKit 0x00007fffd3601e12 -[NSView
_setWindow:] + 3209
2 com.apple.CoreFoundation 0x00007fffd599ee12 __53-[__NSArrayM
enumerateObjectsWithOptions:usingBlock:]_block_invoke + 114
3 com.apple.CoreFoundation 0x00007fffd599eccf -[__NSArrayM
enumerateObjectsWithOptions:usingBlock:] + 239
4 com.apple.AppKit 0x00007fffd3e26bfb __21-[NSView
_setWindow:]_block_invoke.643 + 151
5 com.apple.AppKit 0x00007fffd3601d1e -[NSView
_setWindow:] + 2965
6 com.apple.CoreFoundation 0x00007fffd599ee12 __53-[__NSArrayM
enumerateObjectsWithOptions:usingBlock:]_block_invoke + 114
7 com.apple.CoreFoundation 0x00007fffd599eca6 -[__NSArrayM
enumerateObjectsWithOptions:usingBlock:] + 198
8 com.apple.AppKit 0x00007fffd3e26bfb __21-[NSView
_setWindow:]_block_invoke.643 + 151
9 com.apple.AppKit 0x00007fffd3601d1e -[NSView
_setWindow:] + 2965
10 com.apple.AppKit 0x00007fffd35fe4c5 -[NSView
addSubview:] + 461
11 gr.escape.esc 0x000000010380a729 -[ESCSideBarController
initialiseForWindow:andView:] + 985 (ESCSideBarController.mm:119)
12 gr.escape.esc 0x00000001037ccb29 -[ESCMainWindowController
windowDidLoad] + 713
13 com.apple.AppKit 0x00007fffd368fcd4 -[NSWindowController
_windowDidLoad] + 682
14 com.apple.AppKit 0x00007fffd362ff83 -[NSWindowController
window] + 110
15 com.apple.AppKit 0x00007fffd380bc0e -[NSWindowController
showWindow:] + 36
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]