• 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
Strange 'DrawTheMenu' crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange 'DrawTheMenu' crash


  • Subject: Strange 'DrawTheMenu' crash
  • From: "Paul Sanders" <email@hidden>
  • Date: Fri, 19 Feb 2010 15:33:08 -0000

Has anyone ever experienced a crash like the one below?  It is happening sporadically in the field (I have, I think, 5 crash logs, spread across all 3 major versions of OS X, i.e. 10.4, 10.5 and 10.6) but I have never seen it here.  Examination of the object code reveals that NSCarbonMenuImpl+527 is a call to [NSMenu _enableItems].

All I have to work from is the crash log, but I'm as confident as one can ever be that our NSMenu object has not been released or corrupted.  It is pretty much static for the life of the app.  The only thing we do which might be a bit unusual is to call [NSApplication setMainMenu] whenever the app comes to the front.  That's not actually necessary and I plan to change it, but I thought it worth mentioning.

Any clues anybody?

Many thanks,

Paul Sanders
http://www.alpinesoft.co.uk

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Date/Time:       2010-02-15 14:36:38.032 -0600
OS Version:      Mac OS X 10.6.2 (10C540)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000007364618f
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
objc_msgSend() selector name: respondsToSelector:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               0x94ca9ed7 objc_msgSend + 23
1   com.apple.AppKit              0x95b333a0 -[menu _carbonUpdateStatusEvent:handlerCallRef:] + 527
2   com.apple.AppKit              0x95b30f79 NSSLMMenuEventHandler + 404
3   com.apple.HIToolbox           0x9009ee29 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
4   com.apple.HIToolbox           0x9009e0f0 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
5   com.apple.HIToolbox           0x900c0981 SendEventToEventTarget + 52
6   com.apple.HIToolbox           0x900ece3b SendHICommandEvent(unsigned long, HICommand const*, unsigned long, unsigned long, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 448
7   com.apple.HIToolbox           0x900ecc78 UpdateHICommandStatusWithCachedEvent + 66
8   com.apple.HIToolbox           0x9009a619 HIApplication::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1287
9   com.apple.HIToolbox           0x9009ee29 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
10  com.apple.HIToolbox           0x9009e0f0 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
11  com.apple.HIToolbox           0x900c0981 SendEventToEventTarget + 52
12  com.apple.HIToolbox           0x900ea735 SendMenuOpening(MenuSelectData*, MenuData*, double, unsigned long, __CFDictionary*, unsigned char, unsigned char*) + 826
13  com.apple.HIToolbox           0x902903b2 _SimulateMenuOpening + 75
14  com.apple.shortcut            0x92a688c8 -[SCTGRLIndex indexCarbonMenu:withParentMenu:resultGRLs:isRootMenu:systemHelpMenu:withDepth:] + 871
15  com.apple.shortcut            0x92a68476 -[SCTGRLIndex indexMenuBar:] + 192
16  com.apple.shortcut            0x92a683ae -[SCTGRLIndex indexMenuBarDynamically] + 283
17  com.apple.shortcut            0x92a66662 SCTHelpMenuHandler + 326
18  com.apple.HIToolbox           0x9009ee29 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
19  com.apple.HIToolbox           0x9009e0f0 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
20  com.apple.HIToolbox           0x9009df4f SendEventToEventTargetWithOptions + 58
21  com.apple.HIToolbox           0x900eac42 SendMenuPopulate(MenuData*, OpaqueEventTargetRef*, unsigned long, double, unsigned long, OpaqueEventRef*, unsigned char*) + 356
22  com.apple.HIToolbox           0x900ea505 SendMenuOpening(MenuSelectData*, MenuData*, double, unsigned long, __CFDictionary*, unsigned char, unsigned char*) + 266
23  com.apple.HIToolbox           0x900ea010 DrawTheMenu(MenuSelectData*, __CFArray**, unsigned char, unsigned char*) + 260
24  com.apple.HIToolbox           0x900e9dda MenuChanged(MenuSelectData*, unsigned char, unsigned char) + 467
25  com.apple.HIToolbox           0x900e8b55 TrackMenuCommon(MenuSelectData&, unsigned char*) + 1481
26  com.apple.HIToolbox           0x900e1195 MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 315
27  com.apple.HIToolbox           0x900e09a9 _HandleMenuSelection2 + 465
28  com.apple.HIToolbox           0x900e07c7 _HandleMenuSelection + 53
29  com.apple.AppKit              0x95b2a4ba _NSHandleCarbonMenuEvent + 285
30  com.apple.AppKit              0x95aff076 _DPSNextEvent + 2304
31  com.apple.AppKit              0x95afe306 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
32  WCL_dylib.dylib               0x001a63c6 -[WCLApplication nextEventMatchingMask:untilDate:inMode:dequeue:processMouseEvents:] + 232
33  WCL_dylib.dylib               0x001a5b29 -[WCLApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 71
34  com.apple.AppKit              0x95ac049f -[NSApplication run] + 821
35  com.apple.AppKit              0x95ab8535 NSApplicationMain + 574
36  WCL_dylib.dylib               0x002377b9 WCLmain + 377
37  uk.co.AlpineSoft.VinylStudio  0x000522a0 vsmain + 32
38  uk.co.AlpineSoft.VinylStudio  0x000024b6 _start + 216
39  uk.co.AlpineSoft.VinylStudio  0x000023dd start + 41
_______________________________________________

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

  • Prev by Date: Re: Uncaught exceptions not terminating my app
  • Next by Date: Customizing how errors are presented
  • Previous by thread: Re: Open panel is permanently dead?
  • Next by thread: Customizing how errors are presented
  • Index(es):
    • Date
    • Thread