Re: User interface unresponsive in window
Re: User interface unresponsive in window
- Subject: Re: User interface unresponsive in window
- From: Kyle Sluder <email@hidden>
- Date: Fri, 17 Apr 2015 11:07:50 -0500
On Fri, Apr 17, 2015, at 04:16 AM, Jonathan Taylor wrote:
> That's a fair suggestion, but taken in its most general sense that is a
> near-impossible task. There are 100-odd source files in the project, etc,
> and just "code-read the project and look for some bug" is a non-starter.
Before you embark on such a task, you might try breaking on -[NSCell
drawWithFrame:inView:] or a similar method that you know is being called
as part of the badness.
The problem there is that you don't know if the issue is at the callsite
that triggers the drawing. But it's likely enough that it's worth
starting your search there.
> Are you effectively saying that you agree with my hypothesis that the
> cause is GUI-related code being executed on a non-main thread? If you or
> others have definitely seen that cause problems of this sort in the past,
> then I'll certainly do a second more thorough read-through of any code
> that could possibly be relevant...
You might also have an issue with runloops—either you're touching the UI
from a thread that doesn't have a running runloop, or you've got a
nested runloop invocation on your main thread, and it's never escaping
some special mode (like NSEventTrackingRunLoopMode). Either way, the
result is that code sets up a timer or delay-perform that never fires,
which might explain the symptoms you're seeing.
--Kyle Sluder
_______________________________________________
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