When my NSDocument subclass has its printDocument: method called, Lion hangs indefinitely. Snow Leopard works fine.
The top of my stack looks like this: #0 0x00007fff905676b6 in semaphore_wait_trap () #1 0x00007fff85ddb08e in _dispatch_semaphore_wait_slow () #2 0x00007fff881b2616 in -[NSDocument performActivityWithSynchronousWaiting:usingBlock:] () #3 0x00007fff881a2518 in -[NSDocument runModalPrintOperation:delegate:didRunSelector:contextInfo:] () #4 0x000000010009e544 in -[GCOrteliusDocument runModalPrintOperation:delegate:didRunSelector:contextInfo:] at /Users/grahamcox/Projects/Artboard/Artboard/Source/Code/GCOrteliusDocument.m:1476 #5 0x00000001002f5b9f in -[DKDrawingDocument printShowingPrintPanel:] at /Users/grahamcox/Projects/DrawKit/DrawKit/../Source/Code/DKDrawingDocument.m:923 #6 0x00007fff881a1a52 in __-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke_2 () #7 0x00007fff881a95e0 in -[NSDocument _commitEditingThenContinue:] () #8 0x00007fff881a52ab in -[NSDocument _commitEditingWithDelegate:didSomethingSelector:contextInfo:thenContinue:] () #9 0x00007fff881a18bf in __-[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:]_block_invoke_1 () #10 0x00007fff881b2670 in -[NSDocument performActivityWithSynchronousWaiting:usingBlock:] () #11 0x00007fff881a17d1 in -[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:] () #12 0x00007fff881a1763 in -[NSDocument printDocument:] () So it's waiting on some lock, but it never gets it. This is on the main thread, therefore my app just grinds to a halt and has to be force quit. I'm at a loss as to what to do - it doesn't seem to be my bug. --Graham _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com