View Single Post
hillxy

 
Member Since: Jan 17, 2011
Posts: 1
hillxy is on a distinguished road

hillxy is offline
This application is developed using XCode 2.5. My application uses latest QuickTime to play video file, while doing that, if I click the File menu of the application, sometimes it crashes. This only happens on Snow Leopard. I got two different reports when it crashed.

I am not sure whether it is the menu behavior interfered with QuickTime? Ot it is QuickTime with Snow Leopard? Or it is the application itself? Any hint? Thanks!

Report1:

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000023
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.apple.HIToolbox 0x948089b0 HIObject::Create(__CFString const*, OpaqueEventRef*, HIObject**) + 98
1 com.apple.HIToolbox 0x9480892b HIObjectCreate + 76
2 com.apple.HIToolbox 0x94851f8d MenuData::CreateMenuContentView() + 195
3 com.apple.HIToolbox 0x94851ebb MenuData::GetModalView() + 25
4 com.apple.HIToolbox 0x94851e57 HIMenuGetContentView + 41
5 com.apple.shortcut 0x9476d31a -[SCTSearchManager installShortcutMenuHandlers:] + 222
6 com.apple.shortcut 0x9476d114 shortcutBeginTrackingEventHandler + 121
7 com.apple.HIToolbox 0x9480deef DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
8 com.apple.HIToolbox 0x9480d1b6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
9 com.apple.HIToolbox 0x9480d015 SendEventToEventTargetWithOptions + 58
10 com.apple.HIToolbox 0x94851ba9 SendTrackingStatus(unsigned long, MenuData*, unsigned long, unsigned long, unsigned long, OpaqueEventRef*, unsigned long, unsigned char) + 433
11 com.apple.HIToolbox 0x948519a0 SendBeginTracking(MenuData*, unsigned long, unsigned long, MenuSelectData*) + 70
12 com.apple.HIToolbox 0x94850df5 SetupMenuTracking(MenuSelectData&, unsigned char, Point, double, MenuData*, unsigned long, unsigned short, Rect const*, Rect const*, unsigned int, Rect const*, __CFString const*) + 1915
13 com.apple.HIToolbox 0x948501c1 MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 227
14 com.apple.HIToolbox 0x94a02931 MenuSelect + 190
15 ...mytools.MyApp 0x0020cf8e LMenuBar::MenuCommandSelection(EventRecord const&, long&) const + 28
16 ...mytools.MyApp 0x001e361f LEventDispatcher::ClickMenuBar(EventRecord const&) + 53
17 ...mytools.MyApp 0x001e35d8 LEventDispatcher::EventMouseDown(EventRecord const&) + 226
18 ...mytools.MyApp 0x002919f9 XApp::EventMouseDown(EventRecord const&) + 83
19 ...mytools.MyApp 0x00291806 XApp:ispatchEvent(EventRecord const&) + 48

************************************************
Report2:

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.apple.HIToolbox 0x9482660c HIObject::IsOfClassRef(OpaqueHIObjectClassRef*) + 38
1 com.apple.HIToolbox 0x94826596 HIView::FindHIView(OpaqueControlRef*) + 70
2 com.apple.HIToolbox 0x9485469f GetControlEventTarget + 17
3 com.apple.HIToolbox 0x94851faf MenuData::CreateMenuContentView() + 229
4 com.apple.HIToolbox 0x94851ebb MenuData::GetModalView() + 25
5 com.apple.HIToolbox 0x94851e57 HIMenuGetContentView + 41
6 com.apple.shortcut 0x9476d31a -[SCTSearchManager installShortcutMenuHandlers:] + 222
7 com.apple.shortcut 0x9476d114 shortcutBeginTrackingEventHandler + 121
8 com.apple.HIToolbox 0x9480deef DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
9 com.apple.HIToolbox 0x9480d1b6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
10 com.apple.HIToolbox 0x9480d015 SendEventToEventTargetWithOptions + 58
11 com.apple.HIToolbox 0x94851ba9 SendTrackingStatus(unsigned long, MenuData*, unsigned long, unsigned long, unsigned long, OpaqueEventRef*, unsigned long, unsigned char) + 433
12 com.apple.HIToolbox 0x948519a0 SendBeginTracking(MenuData*, unsigned long, unsigned long, MenuSelectData*) + 70
13 com.apple.HIToolbox 0x94850df5 SetupMenuTracking(MenuSelectData&, unsigned char, Point, double, MenuData*, unsigned long, unsigned short, Rect const*, Rect const*, unsigned int, Rect const*, __CFString const*) + 1915
14 com.apple.HIToolbox 0x948501c1 MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 227
15 com.apple.HIToolbox 0x94a02931 MenuSelect + 190
16 ...mytools.MyApp 0x0020d1cc LMenuBar::MenuCommandSelection(EventRecord const&, long&) const + 28
17 ...mytools.MyApp 0x001e385d LEventDispatcher::ClickMenuBar(EventRecord const&) + 53
18 ...mytools.MyApp 0x001e3816 LEventDispatcher::EventMouseDown(EventRecord const&) + 226
19 ...mytools.MyApp 0x00291c37 XApp::EventMouseDown(EventRecord const&) + 83
20 ...mytools.MyApp 0x00291a44 XApp:ispatchEvent(EventRecord const&) + 48
QUOTE Thanks