I just released my new App iBeat, which worked fine for me and my friends before release.
Now appearently many customers get the same crash, that is always happening at a similar stage.
Here's a (symbolicated) sample crash-report:
Exception Type: SIGTRAP
Exception Codes: #0 at 0x30d7c2d4
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception \'NSInternalInconsistencyException\', reason: \'Could not load NIB in bundle: \'NSBundle </var/mobile/Applications/5BBE8B5E-ECF5-4CA8-97A6-1F5BF8AC7792/iBeat.app> (loaded)\' with name \'SettingsVC_iPad\'\'
Thread 0 Crashed:
0 libSystem.B.dylib 0x000792d4 __kill + 8
1 libSystem.B.dylib 0x000792bd raise + 17
2 iBeat 0x0003f301 uncaught_exception_handler (PLCrashReporter.m:137)
3 CoreFoundation 0x000a0adf __handleUncaughtException + 239
4 libobjc.A.dylib 0x00006593 _objc_terminate + 103
5 libstdc++.6.dylib 0x00042df9 __cxxabiv1::__terminate(void (*)()) + 53
6 libstdc++.6.dylib 0x00042e4d std::terminate() + 17
7 libstdc++.6.dylib 0x00042f1d __cxa_throw + 85
8 libobjc.A.dylib 0x000054cb objc_exception_throw + 71
9 CoreFoundation 0x000a07c9 +[NSException raise:format:arguments:] + 69
10 CoreFoundation 0x000a0803 +[NSException raise:format:] + 35
11 UIKit 0x001e9783 -[UINib instantiateWithOwner:options:] + 1111
12 UIKit 0x001eab39 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 93
13 UIKit 0x0013e8e5 -[UIViewController _loadViewFromNibNamed:bundle:] + 37
14 UIKit 0x0013dcb9 -[UIViewController loadView] + 81
15 UIKit 0x0003e227 -[UIViewController view] + 31
16 UIKit 0x0004ad0b -[UIViewController contentScrollView] + 23
17 UIKit 0x0004ab7b -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 31
18 UIKit 0x0004aa79 -[UINavigationController _layoutViewController:] + 25
19 UIKit 0x0004a551 -[UINavigationController _startTransition:fromViewController:toViewController:] + 381
20 UIKit 0x0004a35f -[UINavigationController _startDeferredTransitionIfNeeded] + 183
21 UIKit 0x0004a2a3 -[UINavigationController viewWillLayoutSubviews] + 15
22 UIKit 0x0004a23f -[UILayoutContainerView layoutSubviews] + 139
23 UIKit 0x000130cf -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 27
24 CoreFoundation 0x0003ebbf -[NSObject(NSObject) performSelector:withObject:] + 23
25 QuartzCore 0x0000f685 -[CALayer layoutSublayers] + 121
26 QuartzCore 0x0000f43d CALayerLayoutIfNeeded + 185
27 QuartzCore 0x0000f377 -[CALayer layoutIfNeeded] + 79
28 UIKit 0x0008c48f -[UIView(Hierarchy) layoutIfNeeded] + 23
29 UIKit 0x000d0ec1 -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:] + 357
30 UIKit 0x00110e49 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 3101
31 UIKit 0x000cf6db -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 679
32 UIKit 0x000cefc7 -[UIViewController presentModalViewController:withTransition:] + 2139
33 UIKit 0x000ce6a3 -[UIViewController presentModalViewController:animated:] + 59
34 iBeat 0x000044f3 -[MetronomeVC settingsTapped] (MetronomeVC.m:956)
This crash happens across all supported iOS versions, with different nib-files, that is with SettingsVC_iPad, InfoVC_iPhone or Settings_VC_iPhone.
The problem is, I can't recreate this error, not on my iPod, neither on my iPad.
Any suggestions? (This crash seems to be really common, I already got 200 crashreports on this)
EDIT: To clarify, I did experiment with the downloaded version from the App Store, so I tried to recreate it with the exact version the errors happened with.
I am not sure it solves ur problem or not .. but I strongly doubt that this is the mistake ...
I think when u packaged ur application , u didn't copy ur nib file into ur project and has only a reference there..
You are not getting this error because probably you are taking your app from your development mac and the nib file's reference is present there ..
Delete the app from ur iphone and Try downloading the app from app store and then see ..
Sorry for the inconvenience, but it was totally my fault.
Really early in the development I was planning to do a french version, so I had an fr.lproj folder that I never deleted. Appearently the App was still looking for french versions of my IB files there, when started in french.
"On n'a jamais fini d'apprendre."
Related
Good morning,
I have released a new app on the AppStore. It worked fine on simulator, in different devices (both iPhone 4 and iPhone 5) and also worked using testflight.
Today, my app has been approved and it is in the AppStore. The problem is that it works perfectly on iphone 4 but not on iPhone 5.
The log is:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x333363e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3b03195e objc_exception_throw + 26
2 UIKit 0x354d161c +[UIStoryboard storyboardWithName:bundle:] + 436
3 Torero 0x00054008 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:27)
4 UIKit 0x351a5a9c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
5 UIKit 0x351a5620 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
6 UIKit 0x3519d82e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
7 UIKit 0x35145d1a -[UIApplication handleEvent:withNewEvent:] + 1006
8 UIKit 0x351457a8 -[UIApplication sendEvent:] + 68
9 UIKit 0x351451ea _UIApplicationHandleEvent + 6194
10 GraphicsServices 0x36e5d5f2 _PurpleEventCallback + 586
11 GraphicsServices 0x36e5d222 PurpleEventCallback + 30
12 CoreFoundation 0x3330b3e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
13 CoreFoundation 0x3330b386 __CFRunLoopDoSource1 + 134
14 CoreFoundation 0x3330a20a __CFRunLoopRun + 1378
15 CoreFoundation 0x3327d238 CFRunLoopRunSpecific + 352
16 CoreFoundation 0x3327d0c4 CFRunLoopRunInMode + 100
17 UIKit 0x3519c468 -[UIApplication _run] + 664
18 UIKit 0x351992b4 UIApplicationMain + 1116
19 Torero 0x00053e8e main (main.m:16)
20 Torero 0x00053e44 0x52000 + 7748
I think that the problem is in the selector of storyboard in application:didFinishLaunchingWithOptions so I have copied my old iphone 5 storyboard in a new one, changed name and uploaded a new version of my app.
Do you think it will work? Do you think should I do anything else?
Thank you very much
Works on simulator but not on device? Check capitalization of your file names. File names on device are case-sensitive, on simulator they are not.
I am learning how to make iPhone apps in the simulator but my app crashes as soon as it launches in the simulator. Also, there are no errors and no warnings when I compile the source code.
Here is a copy of the console logs -
2011-10-27 04:49:08.376 login[1192:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'LoginView''
* Call stack at first throw:
(
0 CoreFoundation 0x00dc85a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f1c313 objc_exception_throw + 44
2 CoreFoundation 0x00d80ef8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00d80e6a +[NSException raise:format:] + 58
4 UIKit 0x004b30fa -[UINib instantiateWithOwner:options:] + 2024
5 UIKit 0x004b4ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
6 UIKit 0x0036a628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
7 UIKit 0x00368134 -[UIViewController loadView] + 120
8 UIKit 0x0036800e -[UIViewController view] + 56
9 login 0x000029c3 -[loginViewController viewDidLoad] + 165
10 UIKit 0x004b2f26 -[UINib instantiateWithOwner:options:] + 1556
11 UIKit 0x004b4ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
12 UIKit 0x002ba17a -[UIApplication _loadMainNibFile] + 172
13 UIKit 0x002bacf4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 291
14 UIKit 0x002c5617 -[UIApplication handleEvent:withNewEvent:] + 1533
15 UIKit 0x002bdabf -[UIApplication sendEvent:] + 71
16 UIKit 0x002c2f2e _UIApplicationHandleEvent + 7576
17 GraphicsServices 0x01720992 PurpleEventCallback + 1550
18 CoreFoundation 0x00da9944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
19 CoreFoundation 0x00d09cf7 __CFRunLoopDoSource1 + 215
20 CoreFoundation 0x00d06f83 __CFRunLoopRun + 979
21 CoreFoundation 0x00d06840 CFRunLoopRunSpecific + 208
22 CoreFoundation 0x00d06761 CFRunLoopRunInMode + 97
23 UIKit 0x002ba7d2 -[UIApplication _run] + 623
24 UIKit 0x002c6c93 UIApplicationMain + 1160
25 login 0x00002694 main + 102
26 login 0x00002625 start + 53
)
terminate called after throwing an instance of 'NSException'
I have tried and tried and can't seem to fix this problem. I will appreciate any help.
Your app is trying to load a file called LoginView.xib, and failing to. Seems like this file is referenced from your MainWindow.xib (or whichever is your main nib file as defined in your application plist). Check that this file exists, is copied to the bundle (in the copy resources build phase). If that's the case you can try cleaning the project, restarting xCode and trying again (I had this problem occasionally, for no apparent reason when switching between iPhone/iPad targets).
I have a Problem with my App. It is working perfectly on my iPhone 3GS, but now where I tried to test it on an iPhone 4, it is crashing while the Splashscreen is visible.
Here's the log:
2011-07-06 16:01:05.611 Apptest [294:607] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/0C371068-7E74-4C54-997C-80E3B0929411/Apptest.app> (loaded)' with name 'MainWindow''
*** Call stack at first throw:
(
0 CoreFoundation 0x311ec64f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x3494dc5d objc_exception_throw + 24
2 CoreFoundation 0x311ec491 +[NSException raise:format:arguments:] + 68
3 CoreFoundation 0x311ec4cb +[NSException raise:format:] + 34
4 UIKit 0x368c9a53 -[UINib instantiateWithOwner:options:] + 1110
5 UIKit 0x368cae09 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92
6 UIKit 0x366f54cd -[UIApplication _loadMainNibFile] + 96
7 UIKit 0x366efb09 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 180
8 UIKit 0x366c47d7 -[UIApplication handleEvent:withNewEvent:] + 1114
9 UIKit 0x366c4215 -[UIApplication sendEvent:] + 44
10 UIKit 0x366c3c53 _UIApplicationHandleEvent + 5090
11 GraphicsServices 0x36398e77 PurpleEventCallback + 666
12 CoreFoundation 0x311c3a97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
13 CoreFoundation 0x311c583f __CFRunLoopDoSource1 + 166
14 CoreFoundation 0x311c660d __CFRunLoopRun + 520
15 CoreFoundation 0x31156ec3 CFRunLoopRunSpecific + 230
16 CoreFoundation 0x31156dcb CFRunLoopRunInMode + 58
17 UIKit 0x366eed49 -[UIApplication _run] + 372
18 UIKit 0x366ec807 UIApplicationMain + 670
19 Apptest 0x00002a0b main + 82
20 Apptest 0x000029b4 start + 40
)
terminate called after throwing an instance of 'NSException'
I hope you can help me. Thanks in advance.
Does the MainWindow.xib actually exist in your project?
You may have deleted it by accident. It may still work on the 3GS even if you deleted it from your project as it may well still be in the bundle on the 3GS.
I normally clean my projects and reset the simulator/uninstall the app from my device if I get inconsistencies like this.
I developed a univarsal application,(iPhone, iPad). But later I tried to make them sepret, so i copied my folder in another directory and then linked my iPhone's control file with iPad's XIBs, and delegated them with Outlets, (my controll file remained in the iPhone folder, i just link them in iPad), after it i removed iPhone XIBs from this folder.
Now my project is working properly, BUT only if I execute the iPhone version first(even from that different directory), and then execute my iPad version, coz it share's the build file of iPhone.
But when I try to execute it Initially (after deleting prior installed version from simulator), it doesn't work, as it terminate after throwing following exception.
2011-04-23 10:56:01.831 Tuscany[1837:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'
*** Call stack at first throw:
(
0 CoreFoundation 0x01683be9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x014785c2 objc_exception_throw + 47
2 CoreFoundation 0x0163c628 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x0163c59a +[NSException raise:format:] + 58
4 Foundation 0x000d6b12 -[NSURL(NSURL) initFileURLWithPath:] + 90
5 Foundation 0x000d6aa0 +[NSURL(NSURL) fileURLWithPath:] + 72
6 Tuscany 0x0003572c -[SplashScreenViewController readyPlayer] + 77
7 Tuscany 0x00035a62 -[SplashScreenViewController viewDidLoad] + 296
8 UIKit 0x003e865e -[UIViewController view] + 179
9 UIKit 0x0035e026 -[UIWindow addRootViewControllerViewIfPossible] + 51
10 UIKit 0x0035d511 -[UIWindow _setHidden:forced:] + 303
11 UIKit 0x0035d301 -[UIWindow _orderFrontWithoutMakingKey] + 50
12 UIKit 0x0a2ac110 -[UIWindowAccessibility(SafeCategory) _orderFrontWithoutMakingKey] + 56
13 UIKit 0x0035bfb5 -[UIWindow makeKeyAndVisible] + 39
14 Tuscany 0x00003205 -[AppDelegate_iPad application:didFinishLaunchingWithOptions:] + 1472
15 UIKit 0x0033b1fa -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
16 UIKit 0x0033d55e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
17 UIKit 0x00347db2 -[UIApplication handleEvent:withNewEvent:] + 1533
18 UIKit 0x00340202 -[UIApplication sendEvent:] + 71
19 UIKit 0x00345732 _UIApplicationHandleEvent + 7576
20 GraphicsServices 0x01ce3a36 PurpleEventCallback + 1550
21 CoreFoundation 0x01665064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
22 CoreFoundation 0x015c56f7 __CFRunLoopDoSource1 + 215
23 CoreFoundation 0x015c2983 __CFRunLoopRun + 979
24 CoreFoundation 0x015c2240 CFRunLoopRunSpecific + 208
25 CoreFoundation 0x015c2161 CFRunLoopRunInMode + 97
26 UIKit 0x0033cfa8 -[UIApplication _run] + 636
27 UIKit 0x0034942e UIApplicationMain + 1160
28 Tuscany 0x00002b30 main + 102
29 Tuscany 0x00002ac1 start + 53
)
terminate called after throwing an instance of 'NSException'
here to mention i have worked hard with the line i'm establishing connection, and as i told same code run properly when I execute iPhone version first and then the iPad.
so please guied me with this,
thank you
What it says.
In the readyPlayer method you are trying to give a nil value to the fileUrlWithPath method.
You need to check why the path is nil.
My problem is this. I have an app that builds and runs fine in Debug mode, no crashes, memory errors, etc. As soon as I do an Ad-hoc build and try to run it on the device the main thread crashes at a certain point, for no apparent reason... The stack trace I managed to get from the device log is thus...
0 libSystem.B.dylib 0x30d7c2d4 __kill + 8
1 libSystem.B.dylib 0x30d7c2c4 kill + 4
2 libSystem.B.dylib 0x30d7c2b6 raise + 10
3 libSystem.B.dylib 0x30d90d72 abort + 50
4 libstdc++.6.dylib 0x34981a20 __gnu_cxx::__verbose_terminate_handler() + 376
5 libobjc.A.dylib 0x34a83594 _objc_terminate + 104
6 libstdc++.6.dylib 0x3497fdf2 __cxxabiv1::__terminate(void (*)()) + 46
7 libstdc++.6.dylib 0x3497fe46 std::terminate() + 10
8 libstdc++.6.dylib 0x3497ff16 __cxa_throw + 78
9 libobjc.A.dylib 0x34a824c4 objc_exception_throw + 64
10 CoreFoundation 0x3587a7c2 +[NSException raise:format:arguments:] + 62
11 CoreFoundation 0x3587a7fc +[NSException raise:format:] + 28
12 QuartzCore 0x31071222 CALayerSetPosition(CALayer*, CA::Vec2<double> const&, bool) + 134
13 QuartzCore 0x31071190 -[CALayer setPosition:] + 32
14 UIKit 0x341e4378 -[UIView(Geometry) setCenter:] + 16
15 MyApp 0x00012b2c 0x1000 + 72492
16 MyApp 0x0001276a 0x1000 + 71530
17 UIKit 0x341e3270 -[UIViewController view] + 104
18 UIKit 0x341efd04 -[UIViewController contentScrollView] + 16
19 UIKit 0x341efb74 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
20 UIKit 0x341efa72 -[UINavigationController _layoutViewController:] + 18
21 UIKit 0x341ef4cc -[UINavigationController _startTransition:fromViewController:toViewController:] + 248
22 UIKit 0x341ef358 -[UINavigationController _startDeferredTransitionIfNeeded] + 176
23 UIKit 0x341e30be -[UINavigationController pushViewController:transition:forceImmediate:] + 634
24 UIKit 0x341e2e34 -[UINavigationController pushViewController:animated:] + 28
25 MyApp 0x00004f80 0x1000 + 16256
26 UIKit 0x3420b834 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 656
27 UIKit 0x342cb60c -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 124
28 Foundation 0x31181df6 __NSFireDelayedPerform + 362
29 CoreFoundation 0x3583109c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
30 CoreFoundation 0x35830b54 __CFRunLoopDoTimer + 844
31 CoreFoundation 0x358021ae __CFRunLoopRun + 1082
32 CoreFoundation 0x35801c80 CFRunLoopRunSpecific + 224
33 CoreFoundation 0x35801b88 CFRunLoopRunInMode + 52
34 GraphicsServices 0x320c84a4 GSEventRunModal + 108
35 GraphicsServices 0x320c8550 GSEventRun + 56
36 UIKit 0x341dc322 -[UIApplication _run] + 406
37 UIKit 0x341d9e8c UIApplicationMain + 664
The other really strange thing is that if you close the app and stop it running (after the crash) in the background and then relaunch it, it bails out almost immediately quoting...
<Warning>: Application 'MyApp' exited abnormally with signal 11: Segmentation fault
Which I'm lead to believe is a memory access error (uninitialised memory access). I'm not doing anything crazy with pointers or anything so all I can presume is that it's a problem with the CF libraries...
Any thoughts or help would be HUGELY appreciated :)
It's hard to say exactly what the answer is without knowing more, but my first guess is that you are providing some invalid value to a UIView's center property.
There are two pieces of information missing that could help you/me find the answer.
First, lines like these in the stack trace need to be symbolicated:
15 MyApp 0x00012b2c 0x1000 + 72492
16 MyApp 0x0001276a 0x1000 + 71530
Knowing what is happening in those two lines will help you track it down, and knowing what the exception that got thrown (starting at line 11 in the stack trace) contains will help further. You may be able to get this information from looking at the device's Console output in Xcode's Organizer.
You can symbolicate the crash report if you have the dSYM file that was created when you built the app for AdHoc distribution. Dragging the crash report into Xcode's Organizer window will attempt to symbolicate it automatically. If that doesn't work, you can try using the symbolicatecrash script directly. It's tucked away in a path like this:
/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash