• 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
NSUIHeartBeat gets stuck
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUIHeartBeat gets stuck


  • Subject: NSUIHeartBeat gets stuck
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Tue, 06 Jan 2009 00:07:18 -0800

I have an application that starts and stops a spinning progress indicator. Start/stop is based on observing -[NSOperationQueue operations]; since I get KVO notifications on the queue's thread, I've been careful to start/stop the spinner on the main thread. The spinner is set to hide when it's not spinning.

The problem is that if I cancel all operations in the queue, the heartbeat thread appears to get stuck (sample follows), and the spinner refuses to spin thereafter. I cannot reproduce this with a debug build, or when running under Xcode, but it's reliably reproducible when launching from the Finder and following a couple of simple steps.

Any suggestions on how to debug this? There are no exceptions reported in the console log.

thanks,
Adam Maxwell

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

  • Follow-Ups:
    • Re: NSUIHeartBeat gets stuck
      • From: "Adam R. Maxwell" <email@hidden>
  • Prev by Date: Re: Odd EXEC_BAD_ACCESS after executing URLRequest
  • Next by Date: Strange behavior of observeValueForKeyPath:ofObject:change:context:
  • Previous by thread: NSUIHeartBeat gets stuck
  • Next by thread: Re: NSUIHeartBeat gets stuck
  • Index(es):
    • Date
    • Thread