Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-08-2010, 11:49 AM   #1 (permalink)
Registered Member
 
wilky94's Avatar
 
Join Date: Dec 2009
Location: Seaham UK
Age: 17
Posts: 257
wilky94 is on a distinguished road
Send a message via AIM to wilky94 Send a message via Skype™ to wilky94
Default Crashing on Launch

Hi, I just ran my app and it recieves 'SIGABRT' as soon as it loads. I have checked for any errors etc and made sure everything in interface builder is fine but still I get the same result. I checked the console and found this:
Code:
terminate called after throwing an instance of 'NSException'
I have no Idea what it means so I really need someone to help.

Thanks
Kieran
wilky94 is offline   Reply With Quote
Old 07-08-2010, 02:13 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 342
flamingliquid is on a distinguished road
Default

The console should also contain information as to why it crashed. SIGABRT means an assertion failure.

For example I created a quick project that was meant to crash by creating an NSArray with 1 string in it, then requesting the string at index 5. Here is what appeared in the console. You will see that there is a reason for the crash at the top. That is what you are looking for.

Code:
2010-07-08 12:15:12.362 Untitled[9919:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (5) beyond bounds (1)'
2010-07-08 12:15:12.365 Untitled[9919:207] Stack: (
   A bunch of number that I deleted in the post to keep it brief...
)
terminate called after throwing an instance of 'NSException'
__________________
17 year old nerd.
Send me a PM. Maybe I can help.

Last edited by flamingliquid; 07-08-2010 at 02:18 PM.
flamingliquid is offline   Reply With Quote
Old 07-08-2010, 03:22 PM   #3 (permalink)
Registered Member
 
wilky94's Avatar
 
Join Date: Dec 2009
Location: Seaham UK
Age: 17
Posts: 257
wilky94 is on a distinguished road
Send a message via AIM to wilky94 Send a message via Skype™ to wilky94
Default

Quote:
Originally Posted by flamingliquid View Post
The console should also contain information as to why it crashed. SIGABRT means an assertion failure.

For example I created a quick project that was meant to crash by creating an NSArray with 1 string in it, then requesting the string at index 5. Here is what appeared in the console. You will see that there is a reason for the crash at the top. That is what you are looking for.

Code:
2010-07-08 12:15:12.362 Untitled[9919:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (5) beyond bounds (1)'
2010-07-08 12:15:12.365 Untitled[9919:207] Stack: (
   A bunch of number that I deleted in the post to keep it brief...
)
terminate called after throwing an instance of 'NSException'


Hi, thanks for the reply sorry about that. This is the complete log:
Code:
2010-07-08 21:20:39.662 Whack Anyone[1633:307] ******* Accessibility Status Changed: On
2010-07-08 21:20:40.606 My App[1633:307] ********** Loading AX for: bundle identifier ************
2010-07-08 21:20:41.532 My App[1633:307] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/D5A3EE44-2BD4-4C52-BB2F-B081A7/My App.app> (loaded)' with name 'MainWindow''
*** Call stack at first throw:
(
	0   CoreFoundation                      0x30db5fd3 __exceptionPreprocess + 114
	1   libobjc.A.dylib                     0x30a798a5 objc_exception_throw + 24
	2   CoreFoundation                      0x30db5e91 +[NSException raise:format:arguments:] + 68
	3   CoreFoundation                      0x30db5ecb +[NSException raise:format:] + 34
	4   UIKit                               0x332b4b43 -[UINib instantiateWithOwner:options:] + 1110
	5   UIKit                               0x332b5ef9 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92
	6   UIKit                               0x330bd09d -[UIApplication _loadMainNibFile] + 96
	7   UIKit                               0x331ff7a7 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 114
	8   UIKit                               0x3310c139 -[UIApplication handleEvent:withNewEvent:] + 1396
	9   UIKit                               0x3310ba5d -[UIApplication sendEvent:] + 44
	10  UIKit                               0x3310b507 _UIApplicationHandleEvent + 5022
	11  GraphicsServices                    0x30382147 PurpleEventCallback + 666
	12  CoreFoundation                      0x30d8baab __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
	13  CoreFoundation                      0x30d8d84f __CFRunLoopDoSource1 + 166
	14  CoreFoundation                      0x30d8e62d __CFRunLoopRun + 520
	15  CoreFoundation                      0x30d378eb CFRunLoopRunSpecific + 230
	16  CoreFoundation                      0x30d377f3 CFRunLoopRunInMode + 58
	17  UIKit                               0x330b5287 -[UIApplication _run] + 370
	18  UIKit                               0x330b3e17 UIApplicationMain + 670
	19  My App                       0x0000440b main + 42
	20 My App                    0x000043dc start + 40
)
terminate called after throwing an instance of 'NSException'
wilky94 is offline   Reply With Quote
Old 07-08-2010, 03:26 PM   #4 (permalink)
Registered Member
 
wilky94's Avatar
 
Join Date: Dec 2009
Location: Seaham UK
Age: 17
Posts: 257
wilky94 is on a distinguished road
Send a message via AIM to wilky94 Send a message via Skype™ to wilky94
Red face

Quote:
Originally Posted by wilky94 View Post
Hi, thanks for the reply sorry about that. This is the complete log:
Code:
2010-07-08 21:20:39.662 Whack Anyone[1633:307] ******* Accessibility Status Changed: On
2010-07-08 21:20:40.606 My App[1633:307] ********** Loading AX for: bundle identifier ************
2010-07-08 21:20:41.532 My App[1633:307] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/D5A3EE44-2BD4-4C52-BB2F-B081A7/My App.app> (loaded)' with name 'MainWindow''
*** Call stack at first throw:
(
	0   CoreFoundation                      0x30db5fd3 __exceptionPreprocess + 114
	1   libobjc.A.dylib                     0x30a798a5 objc_exception_throw + 24
	2   CoreFoundation                      0x30db5e91 +[NSException raise:format:arguments:] + 68
	3   CoreFoundation                      0x30db5ecb +[NSException raise:format:] + 34
	4   UIKit                               0x332b4b43 -[UINib instantiateWithOwner:options:] + 1110
	5   UIKit                               0x332b5ef9 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92
	6   UIKit                               0x330bd09d -[UIApplication _loadMainNibFile] + 96
	7   UIKit                               0x331ff7a7 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 114
	8   UIKit                               0x3310c139 -[UIApplication handleEvent:withNewEvent:] + 1396
	9   UIKit                               0x3310ba5d -[UIApplication sendEvent:] + 44
	10  UIKit                               0x3310b507 _UIApplicationHandleEvent + 5022
	11  GraphicsServices                    0x30382147 PurpleEventCallback + 666
	12  CoreFoundation                      0x30d8baab __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
	13  CoreFoundation                      0x30d8d84f __CFRunLoopDoSource1 + 166
	14  CoreFoundation                      0x30d8e62d __CFRunLoopRun + 520
	15  CoreFoundation                      0x30d378eb CFRunLoopRunSpecific + 230
	16  CoreFoundation                      0x30d377f3 CFRunLoopRunInMode + 58
	17  UIKit                               0x330b5287 -[UIApplication _run] + 370
	18  UIKit                               0x330b3e17 UIApplicationMain + 670
	19  My App                       0x0000440b main + 42
	20 My App                    0x000043dc start + 40
)
terminate called after throwing an instance of 'NSException'
Sorry I should have read this full I deleted the main window and now I need to add it again. thanks for your help anyway
wilky94 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 340
10 members and 330 guests
cgokey, EXOPTENDAELAX, GHuebner, Mirotion22, ohmniac, PavelSea, Pudding, SLIC, Sloshmonster, Sonuye857
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:27 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0