On Thu, 11 Apr 2013 18:56:24 -0500, Ken Thomases said: >Was anything written to the console log at this point? When the >frameworks abort, they often write a log message.
Nothing in console. :( >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)? The code in question is actually one of the unit tests of the open source VTK library. The crash repros either in the usual nightly runs (from launchd) or when I run the test manually from Terminal.app. The test is a unix executable, not a .app package. I know doing GUI stuff from such a context is a little hairy, but it has in fact worked mostly well for years. :) Nevertheless, I already tried using TransformProcessType() but it didn't help. I forgot NSApplication got setActivationPolicy in 10.6, and just tried it too, but was very disappointed to not see it help, since, as you have all helpfully pointed out, this seems related to the window server connection. Then I realised it was crashing *before* I called TransformProcessType(). Doh! So, in fact TransformProcessType() and setActivationPolicy both fix the issue. Thanks everyone! -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com