Re: Anyone seen [NSCursor set] crash by calling abort()?
Re: Anyone seen [NSCursor set] crash by calling abort()?
- Subject: Re: Anyone seen [NSCursor set] crash by calling abort()?
- From: Ken Thomases <email@hidden>
- Date: Thu, 11 Apr 2013 18:56:24 -0500
On Apr 11, 2013, at 1:57 PM, Sean McBride wrote:
> I have an executable which runs fine on 10.7.5, but when run in 10.8.3 crashes as below. This repros 100% on several machines. The cursor is created plainly: [NSCursor pointingHandCursor], it happens with [NSCursor crosshairCursor] too, but not with IBeamCursor nor arrowCursor!
>
> Any ideas? I'm baffled...
> Exception Type: EXC_CRASH (SIGABRT)
> Exception Codes: 0x0000000000000000, 0x0000000000000000
>
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0 libsystem_kernel.dylib 0x00007fff8e29f212 __pthread_kill + 10
> 1 libsystem_c.dylib 0x00007fff88f6eb54 pthread_kill + 90
> 2 libsystem_c.dylib 0x00007fff88fb2dce abort + 143
> 3 com.apple.CoreGraphics 0x00007fff920db242 CGSConnectionByID + 232
> 4 com.apple.CoreGraphics 0x00007fff9213b079 CGSSetRegisteredCursor + 50
> 5 com.apple.HIServices 0x00007fff8c7f39e4 CoreCursorSetAndReturnSeed + 113
> 6 com.apple.AppKit 0x00007fff91688fc3 -[NSCursor _reallySet] + 182
> 7 com.apple.AppKit 0x00007fff91688ed9 -[NSCursor set] + 50
> 8 <stuff>
Was anything written to the console log at this point? When the frameworks abort, they often write a log message.
Given that the abort is happening when attempting to obtain the connection to the window server, is there anything strange about your setup? Did the process start as a background app and transform itself (otherwise known as setting the activationPolicy property of NSApplication)? Are you running in a normal GUI session context (as opposed to, for example, an ssh login or daemon)?
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden