Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HIToolbar goes into infinite loop



Nothing jumps to mind. We haven't seen this issue yet. Does the problem still occur if you remove your custom items and use only standard items? And how small are we talking? 100x100 pixels or 1x1? Can you reproduce this in a small sample app and write a bug? As is oft repeated here this is the best way for us to recognize and track an issue.

On Jan 23, 2005, at 6:10 AM, Felix Schwarz wrote:

Hi everyone,
I'm experiencing infinite loops / hangs when I resize my window containing a HIToolbar to a small size. I use custom HIViews as items of that HIToolbar, but they do not seem to cause the hang since their handlers (both of the toolbar items and the custom HIViews) are - according to my debug output - cleanly entered and left and not called inside this infinite loop. To make this even more difficult to resolve, the interesting symbols' names can't be resolved.
If I hide the toolbar, everything works fine.
-- CUT --
Analysis of sampling pid 602 every 10.000000 milliseconds
Call graph:
280 Thread_110b
280 _dyld_start
280 _start
280 main
280 RunApplicationEventLoop
280 AcquireNextEventInMode
280 ReceiveNextEventCommon
280 RunCurrentEventLoopInMode
280 CFRunLoopRunSpecific
280 __CFRunLoopRun
280 __CFRunLoopDoTimer
280 IOMPCoreThreadHandlerTimer
280 SendEventToEventTarget
280 SendEventToEventTargetInternal
280 DispatchEventToHandlers
280 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
280 HandleMouseEvent(OpaqueEventRef*)
280 HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned short)
280 SendEventToEventTarget
280 SendEventToEventTargetInternal
280 DispatchEventToHandlers
280 StandardWindowEventHandler
280 HandleMouseEvent
280 HandleWindowClick
280 HandleClickAsHIView
280 HIViewClick
280 HIView::Click(OpaqueEventRef*)
280 SendEventToEventTarget
280 SendEventToEventTargetInternal
280 DispatchEventToHandlers
280 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
280 HIView::ClickSelf(OpaqueEventRef*)
280 HIView::ClickInternal(CGPoint const&, unsigned long, void (*)(OpaqueControlRef*, short), bool)
280 SendControlDefTrack(HIView*, CGPoint const&, unsigned long*, void (*)(OpaqueControlRef*, short), short*)
280 SendEventToEventTargetWithOptions
280 SendEventToEventTargetInternal
280 DispatchEventToHandlers
280 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
280 HIGrowBoxView::TrackSelf(OpaqueEventRef*, short*)
280 ResizeWindow
280 TWindowTracker::TrackWindow()
280 TWindowTracker::RelocateWindowImage(unsigned char)
280 SetWindowBoundsInternal(OpaqueWindowPtr*, unsigned short, Rect const*, Rect const*, unsigned long)
280 MoveResizeWindowInternal(WindowData*, short, short, short, short, unsigned char, unsigned char, unsigned char, unsigned char, Rect const*, unsigned long)
280 WindowData::MoveResizeRgns(short, short, short, short, bool)
280 HIViewSetFrame
280 HIView::SetFrame(CGRect const&)
280 SendControlDefBoundsChanged(HIView*, CGRect const&, CGRect const&)
280 SendEventToEventTargetWithOptions
280 SendEventToEventTargetInternal
280 DispatchEventToHandlers
280 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
280 HIView::LayoutChildren()
280 SendEventToEventTargetWithOptions
280 SendEventToEventTargetInternal
280 DispatchEventToHandlers
280 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
280 HIWindowFrameView::LayoutChildrenSelf()
280 HIView::SetFrame(CGRect const&)
280 SendControlDefBoundsChanged(HIView*, CGRect const&, CGRect const&)
280 SendEventToEventTargetWithOptions
280 SendEventToEventTargetInternal
280 DispatchEventToHandlers
280 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
280 HIToolbarView::LayoutChildrenSelf()
157 HIToolbarView::LayoutRowStartingAtIndex(long, CGPoint, float, HIToolbarView::LayoutInfo*)
123 HIToolbarView::LayoutRowStartingAtIndex(long, CGPoint, float, HIToolbarView::LayoutInfo*)
25 CFArrayGetValueAtIndex
25 CFArrayGetValueAtIndex
9 CFArrayGetCount
9 CFArrayGetCount
68 0x92a6cc04
68 0x92a6cc04
28 floor
28 floor
6 CFArrayGetValueAtIndex
6 CFArrayGetValueAtIndex
5 0x92a6a664
5 0x92a6a664
4 CFArrayGetCount
4 CFArrayGetCount
3 0x92a6a67c
3 0x92a6a67c
2 0x92a6a524
2 0x92a6a524
2 0x92a6a534
2 0x92a6a534
1 0x92a6a53c
1 0x92a6a53c
1 0x92a6a66c
1 0x92a6a66c
1 0x92a6cc0c
1 0x92a6cc0c
1 0x92a6cc14
1 0x92a6cc14
1 0x92a6cc1c
1 0x92a6cc1c
280 Thread_1203
280 _pthread_body
280 PrivateMPEntryPoint
280 IOMPCoreTask
280 MPWaitOnQueue
280 _pthread_cond_wait
280 semaphore_wait_signal_trap
280 semaphore_wait_signal_trap
280 Thread_1303
280 _pthread_body
280 PrivateMPEntryPoint
280 IOMPCoreTask
280 MPWaitOnQueue
280 _pthread_cond_wait
280 semaphore_wait_signal_trap
280 semaphore_wait_signal_trap
280 Thread_1403
280 _pthread_body
280 PrivateMPEntryPoint
280 IOMPCoreTask
280 MPWaitOnQueue
280 _pthread_cond_wait
280 semaphore_wait_signal_trap
280 semaphore_wait_signal_trap
280 Thread_1503
280 _pthread_body
280 PrivateMPEntryPoint
280 IOMPCoreTask
280 MPWaitOnQueue
280 _pthread_cond_wait
280 semaphore_wait_signal_trap
280 semaphore_wait_signal_trap
280 Thread_1603
280 _pthread_body
280 PrivateMPEntryPoint
280 IOMPCoreTask
280 MPWaitOnQueue
280 _pthread_cond_wait
280 semaphore_wait_signal_trap
280 semaphore_wait_signal_trap
Total number in stack (recursive counted multiple, when >=5):
7 DispatchEventToHandlers
7 SendEventToEventTargetInternal
5 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
5 IOMPCoreTask
5 MPWaitOnQueue
5 PrivateMPEntryPoint
5 _pthread_body
5 _pthread_cond_wait
5 semaphore_wait_signal_trap
Sort by top of stack, same collapsed (when >= 5):
semaphore_wait_signal_trap 1400
HIToolbarView::LayoutRowStartingAtIndex(long, CGPoint, float, HIToolbarView::LayoutInfo*) 123
0x92a6cc04 68
CFArrayGetValueAtIndex 31
floor 28
CFArrayGetCount 13
0x92a6a664 5
Sample analysis of process 602 written to file /dev/stdout
Sampling process 602 each 10 msecs 300 times
-- CUT --
I'd be thankful for any clues regarding this problem, since it is one of the last things that keep me from releasing the software.
Best regards,
Felix
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >HIToolbar goes into infinite loop (From: Felix Schwarz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.