• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Anyone seen [NSCursor set] crash by calling abort()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Anyone seen [NSCursor set] crash by calling abort()?
      • From: Sean McBride <email@hidden>
References: 
 >Anyone seen [NSCursor set] crash by calling abort()? (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Anyone seen [NSCursor set] crash by calling abort()?
  • Next by Date: Re: Anyone seen [NSCursor set] crash by calling abort()?
  • Previous by thread: Re: Anyone seen [NSCursor set] crash by calling abort()?
  • Next by thread: Re: Anyone seen [NSCursor set] crash by calling abort()?
  • Index(es):
    • Date
    • Thread