Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window freezes app



On 30 May 2007, at 16:46, Shawn Erickson wrote:

I know about issues with threads (I've been bitten by them before), and I understand it's a deadlock problem, but these are threads spawned by AppKit itself. And I am not updating anything at the point where the freeze happens. I'm simply putting the window on-screen. As I wrote, a similar deadlock problem appeared at the same time with a panel that would freeze when putting it on- screen, but I was able to fix it simply by recreating the panel from scratch in Interface Builder. Yet, this simple solution doesn't seem to work for the window at hand. It looks like it may be time to call in Apple DTS. I'd rather have used my support incident for something more exciting....

I think you have a 3rd thread involved in this issue that you didn't list or possibly somehow you hit an exception that causes an unrolling of things without correctly unlocking the view hierarchy lock. Look for console error messages from your application and look at other threads in your application.

Well, when I pause the app during the deadlock with an empty doc open there are ever only two threads, so I'm not aware of any more threads. Although the app is multi-threaded pretty much from the start, there are not necessarily threads spawned by it at the point of the deadlock. (The freeze happens whether an untitled empty document is opened or a document with a lot of pages, with a custom process spawned into the background still processing a number of items (in which case there are three threads when the app is paused, the two deadlocked ones and the app's worker thread).)


Can't find meaningful error messages.

What I _have_ discovered meanwhile is that if I bring up the window in question before opening any document windows, then close it, the next time I bring it up with any document windows open everything works fine. Interestingly, if I open a document first, then close it, and with no document windows open then bring up the problem window then the deadlock still happens. I'll investigate this tomorrow with a fresh head, since I think this might provide a lead.

Thanks for your suggestions Shawn.

António_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >Window freezes app (From: António Nunes <email@hidden>)
 >Re: Window freezes app (From: Yann Bizeul <email@hidden>)
 >Re: Window freezes app (From: Antonio Nunes <email@hidden>)
 >Re: Window freezes app (From: Shawn Erickson <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.