• 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
Re: File menu crashes app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File menu crashes app


  • Subject: Re: File menu crashes app
  • From: Laurence Harris <email@hidden>
  • Date: Sat, 22 Dec 2007 14:19:21 -0500


On Dec 21, 2007, at 7:59 PM, Tony Cate wrote:

I'm building a document based app. If I open more than one document, then close one or more, then next time I click on the File menu the app crashes. A crash log is inclued below.

The menu is created in IB and is not manipulated at runtime. Is there some housekeeping I'm required to do when closing documents? Any input on the cause of this will be appreciated

A few thoughts:

- This is not a question about how to use Xcode, so this isn't the proper list. I'm guessing this is a Cocoa application, so you should ask on the cocoa-dev list.

- It sounds like memory corruption issue that's happening when you do something as a part of closing your document windows. Not "housekeeping" you aren't doing, but something you're releasing that you shouldn't or perhaps freeing or releasing something that's become invalid. Perhaps GuardMalloc might be helpful.

- You don't generally need to include an entire crash log, and if this is the delayed result of memory corruption that's happening earlier the crash log is unlikely to offer any insight into where the problem is occurring.

Larry


Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000 Crashed Thread: 0

Thread 0 Crashed:
0 libobjc.A.dylib 0x93d576ec objc_msgSend + 28
1 com.apple.AppKit 0x931cb595 -[NSMenu _enableItem:] + 388
2 com.apple.AppKit 0x931d6b41 -[NSMenu _enableItems] + 175
3 com.apple.AppKit 0x931a8d50 AppKitMenuEventHandler + 670
4 com.apple.HIToolbox 0x90562863 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
5 com.apple.HIToolbox 0x90561c9d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
6 com.apple.HIToolbox 0x9057e08e SendEventToEventTarget + 52
7 com.apple.HIToolbox 0x905bbb77 SendMenuOpening (MenuSelectData*, MenuData*, double, unsigned long, __CFDictionary*, unsigned char, unsigned char*) + 797
8 com.apple.HIToolbox 0x90673d97 _SimulateMenuOpening + 75
9 com.apple.shortcut 0x9383ccd7 -[SCTGRLIndex indexCarbonMenu:withParentMenu:resultGRLs:isRootMenu:systemHelpMenu:] + 828
10 com.apple.shortcut 0x9382bc3f -[SCTGRLIndex indexMenuBar:] + 158
11 com.apple.shortcut 0x9382bb99 -[SCTGRLIndex indexMenuBarDynamically] + 289
12 com.apple.shortcut 0x93834445 SCTHelpMenuHandler + 289
13 com.apple.HIToolbox 0x90562863 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
14 com.apple.HIToolbox 0x90561c9d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
15 com.apple.HIToolbox 0x90561b02 SendEventToEventTargetWithOptions + 58
16 com.apple.HIToolbox 0x905a6915 SendMenuPopulate (MenuData*, OpaqueEventTargetRef*, unsigned long, double) + 257
17 com.apple.HIToolbox 0x905bb947 SendMenuOpening (MenuSelectData*, MenuData*, double, unsigned long, __CFDictionary*, unsigned char, unsigned char*) + 237
18 com.apple.HIToolbox 0x905bb555 DrawTheMenu (MenuSelectData*, __CFArray**, unsigned char, unsigned char*) + 231
19 com.apple.HIToolbox 0x905bb331 MenuChanged (MenuSelectData*, unsigned char, unsigned char) + 451
20 com.apple.HIToolbox 0x905ba19e TrackMenuCommon (MenuSelectData&, unsigned char*) + 1418
21 com.apple.HIToolbox 0x905b5dc9 MenuSelectCore (MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 279
22 com.apple.HIToolbox 0x905b591d _HandleMenuSelection2 + 383
23 com.apple.HIToolbox 0x905b5791 _HandleMenuSelection + 53
24 com.apple.AppKit 0x930e739b _NSHandleCarbonMenuEvent + 244
25 com.apple.AppKit 0x9304e1f4 _DPSNextEvent + 1834
26 com.apple.AppKit 0x9304d6a0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
27 com.apple.AppKit 0x930466d1 -[NSApplication run] + 795
28 com.apple.AppKit 0x930139ba NSApplicationMain + 574
29 com.3caam.A Cook's Books 0x0000279c main + 30 (main.m:14)
30 com.3caam.A Cook's Books 0x00002752 start + 54


Thread 1:
0 libSystem.B.dylib 0x93e83ace __semwait_signal + 10
1 libSystem.B.dylib 0x93eadced pthread_cond_wait $UNIX2003 + 73
2 com.apple.QuartzCore 0x9568a161 fe_fragment_thread + 54
3 libSystem.B.dylib 0x93ead075 _pthread_start + 321
4 libSystem.B.dylib 0x93eacf32 thread_start + 34


Thread 2:
0 libSystem.B.dylib 0x93e7c8e6 mach_msg_trap + 10
1 libSystem.B.dylib 0x93e840dc mach_msg + 72
2 com.apple.CoreFoundation 0x953bd0fe CFRunLoopRunSpecific + 1806
3 com.apple.CoreFoundation 0x953bdd94 CFRunLoopRun + 84
4 com.apple.DesktopServices 0x93a04b0f TSystemNotificationTask::SystemNotificationTaskProc(void*) + 123
5 ...ple.CoreServices.CarbonCore 0x900b14bb PrivateMPEntryPoint + 56
6 libSystem.B.dylib 0x93ead075 _pthread_start + 321
7 libSystem.B.dylib 0x93eacf32 thread_start + 34


Thread 3:
0 libSystem.B.dylib 0x93e7c8e6 mach_msg_trap + 10
1 libSystem.B.dylib 0x93e840dc mach_msg + 72
2 com.apple.CoreFoundation 0x953bd0fe CFRunLoopRunSpecific + 1806
3 com.apple.CoreFoundation 0x953bdd94 CFRunLoopRun + 84
4 com.apple.DesktopServices 0x93a04c88 TFSEventsNotificationTask::FSEventsNotificationTaskProc(void*) + 216
5 ...ple.CoreServices.CarbonCore 0x900b14bb PrivateMPEntryPoint + 56
6 libSystem.B.dylib 0x93ead075 _pthread_start + 321
7 libSystem.B.dylib 0x93eacf32 thread_start + 34


Thread 4:
0 libSystem.B.dylib 0x93e83ace __semwait_signal + 10
1 libSystem.B.dylib 0x93eadced pthread_cond_wait $UNIX2003 + 73
2 ...ple.CoreServices.CarbonCore 0x900b32a7 TSWaitOnCondition + 126
3 ...ple.CoreServices.CarbonCore 0x90092226 TSWaitOnConditionTimedRelative + 202
4 ...ple.CoreServices.CarbonCore 0x900b2f24 MPWaitOnQueue + 208
5 com.apple.DesktopServices 0x93a10db8 TNodeSyncTask::SyncTaskProc(void*) + 72
6 ...ple.CoreServices.CarbonCore 0x900b14bb PrivateMPEntryPoint + 56
7 libSystem.B.dylib 0x93ead075 _pthread_start + 321
8 libSystem.B.dylib 0x93eacf32 thread_start + 34


Thread 5:
0 libSystem.B.dylib 0x93e7c946 semaphore_timedwait_signal_trap + 10
1 libSystem.B.dylib 0x93eae1cf _pthread_cond_wait + 1244
2 libSystem.B.dylib 0x93eafa53 pthread_cond_timedwait_relative_np + 47
3 ...ple.CoreServices.CarbonCore 0x90092252 TSWaitOnConditionTimedRelative + 246
4 ...ple.CoreServices.CarbonCore 0x900b2f24 MPWaitOnQueue + 208
5 com.apple.DesktopServices 0x93a13224 TFolderSizeTask::FolderSizeTaskProc(void*) + 104
6 ...ple.CoreServices.CarbonCore 0x900b14bb PrivateMPEntryPoint + 56
7 libSystem.B.dylib 0x93ead075 _pthread_start + 321
8 libSystem.B.dylib 0x93eacf32 thread_start + 34


Thread 6:
0   libSystem.B.dylib             	0x93eac8e6 kevent + 10
1   libSystem.B.dylib             	0x93ead075 _pthread_start + 321
2   libSystem.B.dylib             	0x93eacf32 thread_start + 34

Thread 7:
0   libSystem.B.dylib             	0x93ecbf5a select$DARWIN_EXTSN + 10
1   libSystem.B.dylib             	0x93ead075 _pthread_start + 321
2   libSystem.B.dylib             	0x93eacf32 thread_start + 34

Thread 8:
0 libSystem.B.dylib 0x93e7c946 semaphore_timedwait_signal_trap + 10
1 libSystem.B.dylib 0x93eae1cf _pthread_cond_wait + 1244
2 libSystem.B.dylib 0x93eafa53 pthread_cond_timedwait_relative_np + 47
3 com.apple.Foundation 0x948fef9c -[NSCondition waitUntilDate:] + 236
4 com.apple.Foundation 0x948fedb0 -[NSConditionLock lockWhenCondition:beforeDate:] + 144
5 com.apple.Foundation 0x948fed15 -[NSConditionLock lockWhenCondition:] + 69
6 com.apple.AppKit 0x930b3c19 -[NSUIHeartBeat _heartBeatThread:] + 746
7 com.apple.Foundation 0x948b904d -[NSThread main] + 45
8 com.apple.Foundation 0x948b8bf4 __NSThread__main__ + 308
9 libSystem.B.dylib 0x93ead075 _pthread_start + 321
10 libSystem.B.dylib 0x93eacf32 thread_start + 34


Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x18aa6600  ebx: 0x9311efb2  ecx: 0x93df01c4  edx: 0xbfff0001
  edi: 0x00000000  esi: 0x00222760  ebp: 0xbfffe038  esp: 0xbfffdfe4
   ss: 0x0000001f  efl: 0x00010206  eip: 0x93d576ec   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00000000

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: File menu crashes app
      • From: Tony Cate <email@hidden>
References: 
 >File menu crashes app (From: Tony Cate <email@hidden>)

  • Prev by Date: Re: globals and debugging
  • Next by Date: Re: noob
  • Previous by thread: File menu crashes app
  • Next by thread: Re: File menu crashes app
  • Index(es):
    • Date
    • Thread