Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
printDocument: hangs on Lion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printDocument: hangs on Lion?



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 (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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.