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

Re: printDocument: hangs on Lion?


  • Subject: Re: printDocument: hangs on Lion?
  • From: email@hidden
  • Date: Mon, 22 Aug 2011 09:44:11 -0400

I'm not saying it's a bug in your code, but I have +autosavesInPlace set to return YES in my app and I can't reproduce your problem when printing. I know this doesn't solve your problem, but figured it might be worth knowing that not everyone is seeing this problem.

Dave


On Aug 22, 2011, at 9:26 AM, Graham Cox wrote:

> Further info, if I take out +autosavesInPlace (was overridden to return YES), it works fine.
>
> This suggests there's more to supporting this new-fangled document model to allow printing to work. Any documentation spells this out?
>
> Working in Xcode 4, the documentation viewer is so incredibly poor compared to Xcode 3 I can't find anything, or rather I can't wait the ten minutes per page it takes to download anything (aside: is there a way to d/l all the documentation and view it locally? We don't all have gigabit fibre to the node).
>
> --G.
>
>
> On 22/08/2011, at 10:59 PM, Graham Cox wrote:
>
>> 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
>
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)
 >Re: printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: printDocument: hangs on Lion?
  • Next by Date: Re: printDocument: hangs on Lion?
  • Previous by thread: Re: printDocument: hangs on Lion?
  • Next by thread: Re: printDocument: hangs on Lion?
  • Index(es):
    • Date
    • Thread