"(Not Responding)" problems in Leopard
"(Not Responding)" problems in Leopard
- Subject: "(Not Responding)" problems in Leopard
- From: "Benjamin D. Rister" <email@hidden>
- Date: Sun, 11 Nov 2007 22:17:41 -0500
Starting in Leopard, both a helper process and a daemon of ours have
started to occasionally be tagged as "(Not Responding)" in Activity
Monitor. Unfortunately, I have no idea why. My understanding is that
that's supposed to stem from not responding to pings on the main run
loop. But samples of the processes show their main threads just
happily spinning away in the main run loop.
The daemon's main thread:
652 Thread_2503
652 start
652 _start
652 main
652 -[NSRunLoop(NSRunLoop) run]
652 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
652 CFRunLoopRunSpecific
652 mach_msg
652 mach_msg_trap
652 mach_msg_trap
Purely unloaded; no reason it shouldn't be responding to pings.
The helper's main thread:
2197 Thread_2503
2197 start
2197 _start
2197 main
2197 -[NSRunLoop(NSRunLoop) runUntilDate:]
2197 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
2197 CFRunLoopRunInMode
2196 CFRunLoopRunSpecific
2182 mach_msg
2182 mach_msg_trap
2182 mach_msg_trap
13 __CFMachPortPerform
13 __NSFireMachPort
10 -[NSConcretePortCoder dispatch]
10 -[NSConnection handlePortCoder:]
10 -[NSConnection handleRequest:sequence:]
8 -[NSConnection
returnResult:exception:sequence:imports:]
8 -[NSConcretePortCoder
sendBeforeTime:sendReplyPort:]
8 -[NSMachPort
sendBeforeTime:streamData:components:from:msgid:]
8 +[NSMachPort
sendBeforeTime:streamData:components:to:from:msgid:reserved:]
8 mach_msg
8 mach_msg_trap
8 mach_msg_trap
1 -[NSConnection dispatchInvocation:]
1 -[NSInvocation invoke]
1 __invoking___
1 _CF_forwarding_prep_0
1 ___forwarding___
1 -[NSDistantObject
methodSignatureForSelector:]
1 -[NSDistantObject
methodSignatureForSelector:]
1 -[NSInvocation target]
1 objc_msgSend
1 objc_msgSend
2 NSPopAutoreleasePool
1 -[NSConcretePortCoder dealloc]
1 NSDeallocateObject
1 _internal_object_dispose
1 free
1 szone_size
1 szone_size
1 _CFRelease
1 __CFArrayReleaseValues
1 CFRelease
1 -[NSConcreteData dealloc]
1 NSDeallocateMemoryPages
1 vm_deallocate
1 mach_msg
1 mach_msg_trap
1 mach_msg_trap
1 class_respondsToSelector
1 class_respondsToSelector
1 mk_timer_arm
1 mk_timer_arm
1 __spin_lock
1 __spin_lock
Some light DO traffic, but less than 1% of the samples. Again, no
reason I can see why it wouldn't be responding.
As far as I know it's irrelevant, but for the record, the other
threads in the daemon are spinning in a run loop or blocked on a
semaphore; 0% CPU used. The helper process's one other thread is
almost entirely I/O bound, with a total ~30% CPU usage.
Can anybody shed some insight on what the problem is? As far as I can
tell, the processes are being well-behaved, so I'm rather at a loss as
to why this is happening...
Thanks,
br
--
Benjamin D. Rister
President
Decimus Software, Inc.
http://www.decimus.net/
_______________________________________________
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