On Mar 19, 2016, at 3:01 AM, Steve Mills <sjmi...@mac.com> wrote: > > On Mar 19, 2016, at 00:12:39, Ken Thomases <k...@codeweavers.com> wrote: >> >> >> Why are you running the main run loop? For how long are you running it? >> Why aren't you running it in a private mode if it's for private purposes? >> Are you generally letting the main event loop run normally? > > This is old code that I didn't write. I believe it is being run just to give > the window time to update. It's being run for 0.1 second. Yes, otherwise the > main event loop just runs normally. There may have been some need for this in > older OS's - I don't know, as I've only been at this job for almost a year. I > think last week we had experimented with removing the runUntilData: call and > still experienced the lockup until we connected to that machine. I could be > wrong - we tried tons of things. > >> The main thread is blocked waiting on some other thread. So, what are the >> other threads doing? > > There's one thread that's doing the bulk of our work, which is what caused > the main thread to need to update the window.
No. The main thread is blocked waiting for another Cocoa thread. It's waiting on an internal pthread condition variable. > * frame #0: 0x00007fff89524136 libsystem_kernel.dylib`__psynch_cvwait + 10 > frame #1: 0x00007fff8fa8b560 libsystem_pthread.dylib`_pthread_cond_wait + 693 > frame #2: 0x00007fff8dea323e AppKit`-[NSViewHierarchyLock > _lockForWriting:handler:] + 323 There must be some other thread which is going to signal that condition variable under some circumstances. In all likelihood, that other thread is blocked on something else, so you have a pseudo-deadlock. Show the backtrace of all threads. Or a sample report, which has similar information. Regards, Ken _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com