NSUIHeartBeat gets stuck
NSUIHeartBeat gets stuck
- Subject: NSUIHeartBeat gets stuck
- From: "Adam R. Maxwell" <email@hidden>
- Date: Tue, 06 Jan 2009 00:17:17 -0800
I have an app that starts and stops a spinning progress indicator
based on the number of operations in an NSOperationQueue. The spinner
is started and stopped only on the main thread, and is set to hide
when not spinning.
After canceling all operations in the queue and immediately adding
another one, the NSUIHeartBeat thread gets stuck (sample follows), and
the spinner stops in the middle of its animation. Thereafter, it
refuses to animate, but still hides when explicitly stopped.
There are no exceptions logged, so I'm running out of ideas to debug
this. Any suggestions?
thanks,
Adam Maxwell
(apologies if this shows up twice...Mail hung when I sent it the first
time and evidently ate my draft message)
Call graph:
1508 Thread_2503
1508 start
1508 NSApplicationMain
1508 -[NSApplication run]
1508 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
1508 _DPSNextEvent
1508 BlockUntilNextEventMatchingListInMode
1508 ReceiveNextEventCommon
1508 RunCurrentEventLoopInMode
1508 CFRunLoopRunSpecific
1508 mach_msg
1508 mach_msg_trap
1508 mach_msg_trap
1508 Thread_2603
1508 start_wqthread
1508 _pthread_wqthread
1508 -[NSOperation start]
1508 -[TLMOperation main]
1508 CFRunLoopRunSpecific
1508 mach_msg
1508 mach_msg_trap
1508 mach_msg_trap
1508 Thread_2703
1508 start_wqthread
1508 __workq_ops
1508 __workq_ops
1508 Thread_2803
1508 thread_start
1508 _pthread_start
1508 fe_fragment_thread
1508 __semwait_signal
1508 __semwait_signal
1508 Thread_2903
1508 thread_start
1508 _pthread_start
1508 __NSThread__main__
1508 kevent
1508 kevent
1508 Thread_2a03
1508 thread_start
1508 _pthread_start
1508 __NSThread__main__
1508 -[NSUIHeartBeat _heartBeatThread:]
1508 -[NSWindow _copyAcquiredViewHierarchyLock]
1508 -[NSViewHierarchyLock
lockForReadingWithExceptionHandler:]
1508 __semwait_signal
1508 __semwait_signal
1508 Thread_2b03
1508 thread_start
1508 _pthread_start
1508 glvmDoWork
1508 __semwait_signal
1508 __semwait_signal
1508 Thread_2c03
1508 thread_start
1508 _pthread_start
1508 _backgroundActivity
1508 read
1508 read
1508 Thread_2d03
1508 thread_start
1508 _pthread_start
1508 _backgroundActivity
1508 read
1508 read
Total number in stack (recursive counted multiple, when >=5):
6 _pthread_start
6 thread_start
Sort by top of stack, same collapsed (when >= 5):
__semwait_signal 4524
mach_msg_trap 3016
read 3016
__workq_ops 1508
kevent 1508
Sample analysis of process 1033 written to file /dev/stdout
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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