1

My app crashes on launch with the following SIGBART :

@autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 

The code is pulled from a git repository and works on other computers.

I tried reinstalling xcode 4.2 to no avail.
This is for ios 5.0

3
  • 1
    So, what have you done to debug it? Commented Jan 25, 2012 at 21:59
  • Please see below stack trace. I tried throwing in some exception breakpoints. But no breakpoint ever gets a chance. Bc it crashes immediately. Commented Jan 26, 2012 at 20:27
  • Have you tried a simple Hello World app? Commented Jan 26, 2012 at 23:05

1 Answer 1

1

That line isn't throwing the exceprion. To find out which line causes the crash you should look at Exception Breakpoints. Usually you want to add an exception throw Breakpoint to see which line threw the exception. More details in this answer: Xcode doesn't show the line that causes a crash

You should also always scan your code for errors and post some code! If you don't post code, most of the times nobody will be able to help you, especially when the problem is a code related crash.

Sign up to request clarification or add additional context in comments.

10 Comments

but this isn't a code related crash. the code works fine on two other computers. There is no code i can post. I have thrown in some exception breakpoints. They dont help, unless i am using them incorrectly
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 15 16:03:10 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".Attaching to process 2206.
Pending breakpoint 1 - "objc_exception_throw" resolved sharedlibrary apply-load-rules all Error in re-setting breakpoint 1: Catchpoint 2 (throw)Error in re-setting breakpoint 1: Error in re-setting breakpoint 1: Current language: auto; currently objective-c Single stepping until exit from function objc_exception_throw, which has no line number information. Catchpoint 2 (exception thrown).(gdb)
The above is all i get in the debugger
there is definitely an exception thrown from the code. With the exception breakpoint enabled there should be a line highlighted green, post that code!
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.