• 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
printDocument: hangs on Lion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printDocument: hangs on Lion?


  • Subject: printDocument: hangs on Lion?
  • From: Graham Cox <email@hidden>
  • Date: Mon, 22 Aug 2011 22:59:32 +1000

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

  • Follow-Ups:
    • Re: printDocument: hangs on Lion?
      • From: Graham Cox <email@hidden>
  • Prev by Date: NSView subclass does not call designated initializer
  • Next by Date: Re: Exception getting shared font panel
  • Previous by thread: Re: NSView subclass does not call designated initializer
  • Next by thread: Re: printDocument: hangs on Lion?
  • Index(es):
    • Date
    • Thread