• 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: Apps crashs when clicking on menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apps crashs when clicking on menu


  • Subject: Re: Apps crashs when clicking on menu
  • From: email@hidden
  • Date: Wed, 20 Feb 2002 13:13:21 -0800

I understand that and I'll try to make it better this and next time.

Great!

Sorry, for the weak description. The crash occurs when I click on the menubar (even when the button is pressed and not yet released the app will quit). PB says "Error from Executable Runner: My App.app has exited due to signal 11 (SIGSEGV).". A normal window with a toolbar and an attached drawer are opened.

What about a backtrace? This is the single most useful tool in diagnosing crashes. You can see it in Project Builder, although I'm not sure if there's a way to copy it to the clipboard so you can send it out. I generally run under gdb in Terminal, and from there you can certainly copy the backtrace (obtained with the "bt" command) and paste it into mail for all of us...

I'm also running an Alertpanel on startup - when I click on the menubar there, the menues are acting normal...

Sounds to me like you probably have some problem with your alert, then, that is messing up the system. Maybe when your alert panel is dismissed you're doing an extra release? If an autorelease is pending for the alert panel, this can sometimes manifest itself on the next event that "bumps" the run loop, I think (at least I think I've seen this behavior before). Or you're causing something to be released that somebody still holds a reference to, and that reference is being used on the mousedown in the menu bar, causing the crash. Sounds very likely to be a retain/release bug of some kind (as most ObjC crashers are).
Try commenting out your whole alert at startup thing completely and see if the crash still happens. If not, then you have a pretty constrained area in which to look for the problem. And don't forget that depending upon the flags set on NSWindow, AppKit can release your NSWindow for you when it closes.

Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Apps crashs when clicking on menu (From: Thilo Ettelt <email@hidden>)

  • Prev by Date: Re: Apps crashs when clicking on menu
  • Next by Date: Re: Please explain this error message...
  • Previous by thread: Re: Apps crashs when clicking on menu
  • Next by thread: Reading several UserDefaults
  • Index(es):
    • Date
    • Thread