iOS - Crash at loadViewIfRequired - iphone

I typically wouldn't want to ask SO for help understanding my crash report, but (a) I can learn a lot about reading crash reports from the experts here, and (b), I realize that I don't understand as much about navigation flow as I hoped (this part is specific to the crash report below I think).
So I'm hoping that someone has come across the same issue and can help me understand why my app is crashing.
It only crashes sometimes, which is beyond me as to why it is intermittent. However, when it does crash, it crashes at the same place, with the same stack trace (shown below).
Now I see that it is crashing in cmdPressed (there's a lot of code in this method), but it's hard for me to understand anything deeper than that.
From reading the crash report below, does anyone have any advice as to why my app is crashing??? And why it might be inconsistent?
Thread 0 Crashed:
0 libobjc.A.dylib 0x344dd5aa _objc_msgSend + 10
1 UIKit 0x3374458d -[UIViewController loadViewIfRequired] + 365
2 UIKit 0x33799133 -[UIViewController contentScrollView] + 27
3 UIKit 0x33799079 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 29
4 UIKit 0x33798f5d -[UINavigationController _layoutViewController:] + 33
5 UIKit 0x33798e81 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 273
6 UIKit 0x337985c1 -[UINavigationController _startTransition:fromViewController:toViewController:] + 65
7 UIKit 0x337984a9 -[UINavigationController _startDeferredTransitionIfNeeded:] + 325
8 UIKit 0x337e54b1 -[UINavigationController defaultFirstResponder] + 129
9 UIKit 0x33797849 -[UIResponder(Internal) _deepestDefaultFirstResponder] + 25
10 UIKit 0x337976fb -[UIResponder(Internal) _promoteDeepestDefaultFirstResponder] + 31
11 UIKit 0x33813349 -[UIWindowController transitionViewDidStart:] + 81
12 UIKit 0x337bf8db -[UITransitionView transition:fromView:toView:removeFromView:] + 991
13 UIKit 0x33a00059 __91-[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:]_block_invoke_0236 + 389
14 UIKit 0x33812961 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 4761
15 UIKit 0x33810fc7 -[UIViewController presentViewController:withTransition:completion:] + 3395
16 UIKit 0x33933257 -[UIViewController presentModalViewController:animated:] + 31
17 MyApp 0x00044973 -[AppViewController cmdPressed] (AppViewController.mm:553)
18 UIKit 0x338100a5 -[UIApplication sendAction:to:from:forEvent:] + 73
19 UIKit 0x33810057 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
20 UIKit 0x33810035 -[UIControl sendAction:to:forEvent:] + 45
21 UIKit 0x3380f8eb -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503
22 UIKit 0x3380fde1 -[UIControl touchesEnded:withEvent:] + 489
23 UIKit 0x337385f1 -[UIWindow _sendTouchesForEvent:] + 525
24 UIKit 0x33725801 -[UIApplication sendEvent:] + 381
25 UIKit 0x3372511b _UIApplicationHandleEvent + 6155
26 GraphicsServices 0x389085a3 _PurpleEventCallback + 591
27 GraphicsServices 0x389081d3 PurpleEventCallback + 35
28 CoreFoundation 0x3a5c8173 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
29 CoreFoundation 0x3a5c8117 __CFRunLoopDoSource1 + 139
30 CoreFoundation 0x3a5c6f99 __CFRunLoopRun + 1385
31 CoreFoundation 0x3a539ebd _CFRunLoopRunSpecific + 357
32 CoreFoundation 0x3a539d49 _CFRunLoopRunInMode + 105
33 GraphicsServices 0x389072eb _GSEventRunModal + 75
34 UIKit 0x337792f9 _UIApplicationMain + 1121
35 MyApp 0x0003d083 main (main.m:44)
Any advice is greatly appreciated. Thanks!!!

I know this is late and also I am not sure if this will solve your problem or not. But when I faced this issue (related with loadViewIfRequired) and struggled a lot because in my case also it was crashing sometimes only. I was calling [UITableViewController tableView] from outside of my tableview controller class which was getting called before loading the tableview. As my tableView wasn't loaded properly so my UITableViewController class was trying to call loadViewIfRequired API and which was calling ViewDidLoad on other thread (not in main thread).
I fixed this by not calling [UITableViewController tableView] this before my tableviewcontroller gets loaded also I loaded that in main thread which fixed my problem.

I faced the same issue. For me, the problem was that I changed the xib file but forgot to connect all the previous outlets.

Try to add this method. Hope this will help you.
-(void)setView:(UIView*)view
{
if(view != nil )
[super setView:view];
else
NSLog(#"Memory");
}

Related

Reading crash report about Navigation Animation

I hate to simply post a crash report for my iOS app here, but I am in some dire need of help to understand it. It looks to me like something is crashing in a view or navigation animation, but I can't tell where. Has anyone seen any crash reports like this? Is it outside the scope of my code?
The last reference to my MyApp is in main.m, which doesn't make much sense to me.
Any advice on how to interpret this would be majorly helpful, and greatly appreciated. I'm just now learning to read these things correctly, and the more help I get, the more I learn.
Thread 0 Crashed:
0 libobjc.A.dylib 0x341975be _objc_msgSend + 30
1 UIKit 0x333fbd7d -[UIImageView isAnimating] + 137
2 UIKit 0x333ffb43 -[UIImageView stopAnimating] + 103
3 UIKit 0x333ffa89 -[UIActivityIndicatorView _tearDownAnimation] + 37
4 UIKit 0x333ffa1d -[UIActivityIndicatorView stopAnimating] + 25
5 UIKit 0x333ff983 -[UIActivityIndicatorView _didMoveFromWindow:toWindow:] + 55
6 UIKit 0x333ff5bf -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1119
7 UIKit 0x333ff5bf -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1119
8 UIKit 0x333ff5bf -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1119
9 UIKit 0x333ff5bf -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1119
10 UIKit 0x333f9e4b -[UIView(Hierarchy) _postMovedFromSuperview:] + 139
11 UIKit 0x335c541b __UIViewWasRemovedFromSuperview + 219
12 UIKit 0x3340d8a7 -[UIView(Hierarchy) removeFromSuperview] + 159
13 UIKit 0x3345df01 -[UINavigationTransitionView _cleanupTransition] + 93
14 UIKit 0x333f4ab3 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 159
15 UIKit 0x334698cf -[UIViewAnimationState animationDidStop:finished:] + 51
16 QuartzCore 0x36cc8bd9 CA::Layer::run_animation_callbacks(void*) + 209
17 libdispatch.dylib 0x3859f4b7 _dispatch_client_callout + 23
18 libdispatch.dylib 0x385a41bd _dispatch_main_queue_callback_4CF$VARIANT$mp + 225
19 CoreFoundation 0x3a280f3b __CFRunLoopRun + 1291
20 CoreFoundation 0x3a1f3ebd _CFRunLoopRunSpecific + 357
21 CoreFoundation 0x3a1f3d49 _CFRunLoopRunInMode + 105
22 GraphicsServices 0x385c12eb _GSEventRunModal + 75
23 UIKit 0x334332f9 _UIApplicationMain + 1121
24 MyApp 0x0003706d main (main.m:45)
Comment out a major part of your code to see if the error occurs from there. If it does, then narrow the commenting down. Start with a method containing animation as the log suggests. I don't know if there is a better way, but this is the way I do it if I don't have further information.
It seems that your application running just fine until "[UIImageView isAnimation]" and then crashed. You may check out nearby this line. But I suggest that you could enable zombie object to see where is going wrong.

How to read this iphone app crash log

My app (named MyLittleApplication) crashes randomly when I click on a button that pops view controller.
I could use some help (to find out where should I start looking) with crash log:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x600332e0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x351faf78 objc_msgSend + 16
1 Foundation 0x37d0a74c NSKVOPendingNotificationCreate + 216
2 Foundation 0x37d0a652 NSKeyValuePushPendingNotificationPerThread + 62
3 Foundation 0x37cfc744 NSKeyValueWillChange + 408
4 Foundation 0x37cd3848-[NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] + 176
5 Foundation 0x37d55a14 _NSSetPointValueAndNotify + 76
6 UIKit 0x311f825a -[UIScrollView(Static) _adjustContentOffsetIfNecessary] + 1890
7 UIKit 0x31215a54 -[UIScrollView setFrame:] + 548
8 UIKit 0x31215802 -[UITableView setFrame:] + 182
9 POViO 0x000fcac8 0xf8000 + 19144
10 UIKit 0x31211b8e -[UIViewController _setViewAppearState:isAnimating:] + 138
11 UIKit 0x3126b8a8 -[UIViewController beginAppearanceTransition:animated:] + 184
12 UIKit 0x3121490c -[UINavigationController _startTransition:fromViewController:toViewController:] + 832
13 UIKit 0x312144fc -[UINavigationController _startDeferredTransitionIfNeeded] + 244
14 UIKit 0x3125e8e4 _popViewControllerNormal + 184
15 UIKit 0x3125e712 -[UINavigationController _popViewControllerWithTransition:allowPoppingLast:] + 386
16 UIKit 0x31242bba -[UINavigationController popToViewController:transition:] + 626
17 POViO 0x001074e6 0xf8000 + 62694
18 CoreFoundation 0x374553f6 -[NSObject performSelector:withObject:withObject:] + 46
19 UIKit 0x311eae00 -[UIApplication sendAction:to:from:forEvent:] + 56
20 UIKit 0x311eadbc -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 24
21 UIKit 0x311ead9a -[UIControl sendAction:to:forEvent:] + 38
22 UIKit 0x311eab0a -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 486
23 UIKit 0x311eb442 -[UIControl touchesEnded:withEvent:] + 470
24 UIKit 0x311e9924 -[UIWindow _sendTouchesForEvent:] + 312
25 UIKit 0x311e9312 -[UIWindow sendEvent:] + 374
26 UIKit 0x311cf68e -[UIApplication sendEvent:] + 350
27 UIKit 0x311cef34 _UIApplicationHandleEvent + 5820
28 GraphicsServices 0x33c11224 PurpleEventCallback + 876
29 CoreFoundation 0x374cf51c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
30 CoreFoundation 0x374cf4be __CFRunLoopDoSource1 + 134
31 CoreFoundation 0x374ce30c __CFRunLoopRun + 1364
32 CoreFoundation 0x3745149e CFRunLoopRunSpecific + 294
33 CoreFoundation 0x37451366 CFRunLoopRunInMode + 98
34 GraphicsServices 0x33c10432 GSEventRunModal + 130
35 UIKit 0x311fdcce UIApplicationMain + 1074
36 MyLittleApplication 0x000f90ae 0xf8000 + 4270
37 MyLittleApplication 0x000f9048 0xf8000 + 4168
I suspect that it has something to do with notificationCenter and UIDeviceOrientationDidChangeNotifications I use. Is this true or am I looking in the wrong direction?
I am calling
[notificationCenter removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil]
in viewDidUnload, this shuld be enough?
Can you please tell me what bug should i start looking for?
This is a stacktrace you see the stack of methods called when the crash happened.
You start at the bottom and work yourself up to the top and search for a method call from your app (the stacktrace includes calls from the frameworks too (e.g. -[UIScrollView(Static) _adjustContentOffsetIfNecessary])).
The topmost method call from your app is likely the cause of your error and you can see what the system tried afterwards.
In your case it seems that you call popToViewController and the iOS frameworks try to animate the transition from one UIViewController to the next. There seems to be a problem for the table view to set its frame and scroll to the contentOffset.
This is likely to be caused by a memory error. You get this hint by examining Exception Type: EXC_BAD_ACCESS (SIGSEGV)
EXC_BAD_ACCESS is likely a hint that you try to acces a something which is no more in the memory -> already released.
In general I would recomment to activate exveption breakpoints in Xcode:
Have you set the exception breakpoint?
got to breakpoint editor pane
click on the x in the bottom left corner
choose add exception breakpoint
Now you should see a stacktrace if an exception occurs. And Xcode should be at the line where the crash happens.
The second thing you should get familiar with is the zombie mode in Instruments.
You can find a good introduction to the zombi mode in this video.
In your case, you can see you have a EXC_BAD_ACCESS (SIGSEGV). This means you're trying to access something which isn't here, or at least was here but isn't anymore. If you can replicate the error, try using the Zombies mode of Instruments, it will tell will which thing it was expecting to access. The solution to this problem is often that you released the resource too early a resource you still need.
You might want to throw some NSLog statements in the methods just so you can have an idea of where things are going wrong. Sometimes those iOS messages can be a little cryptic.

NSUnknownKeyException Causing Crash on Button Click [duplicate]

This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
So I'm not sure what is going on. I haven't really changed much. Nothing having to do with this class anyways. It was working fine just a bit before and now I'm getting this crash.
-(IBAction)mphButton:(id)sender{
if(self.mphVC == nil){
MphViewController *mph = [[MphViewController alloc] initWithNibName:#"MphView" bundle:[NSBundle mainBundle]];
self.mphVC = mph;
[mph release];
}
[self.navigationController pushViewController:self.mphVC animated:YES];
}
The thread is stopping saying "Thread 1: Program received signal "SIGABRT" on the [self.navigationController pushViewController:self.mphVC animated:YES];
This is what the message:
2011-09-29 10:59:03.557 SpeedClock[2973:b303] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MphViewController 0x4b42ad0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key count.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00dc25a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f16313 objc_exception_throw + 44
2 CoreFoundation 0x00dc24e1 -[NSException raise] + 17
3 Foundation 0x00794677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x007945e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x0021030c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00d388cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x0020ed23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00210ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x000c6628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x000c4134 -[UIViewController loadView] + 120
11 UIKit 0x000c400e -[UIViewController view] + 56
12 UIKit 0x000c2482 -[UIViewController contentScrollView] + 42
13 UIKit 0x000d2f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
14 UIKit 0x000d1555 -[UINavigationController _layoutViewController:] + 43
15 UIKit 0x000d2870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
16 UIKit 0x000cd32a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
17 UIKit 0x000d4562 -[UINavigationController pushViewController:transition:forceImmediate:] + 932
18 UIKit 0x000cd1c4 -[UINavigationController pushViewController:animated:] + 62
19 SpeedClock 0x00002621 -[RootViewController mphButton:] + 353
20 UIKit 0x000144fd -[UIApplication sendAction:to:from:forEvent:] + 119
21 UIKit 0x000a4799 -[UIControl sendAction:to:forEvent:] + 67
22 UIKit 0x000a6c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
23 UIKit 0x000a57d8 -[UIControl touchesEnded:withEvent:] + 458
24 UIKit 0x00038ded -[UIWindow _sendTouchesForEvent:] + 567
25 UIKit 0x00019c37 -[UIApplication sendEvent:] + 447
26 UIKit 0x0001ef2e _UIApplicationHandleEvent + 7576
27 GraphicsServices 0x00ffb992 PurpleEventCallback + 1550
28 CoreFoundation 0x00da3944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
29 CoreFoundation 0x00d03cf7 __CFRunLoopDoSource1 + 215
30 CoreFoundation 0x00d00f83 __CFRunLoopRun + 979
31 CoreFoundation 0x00d00840 CFRunLoopRunSpecific + 208
32 CoreFoundation 0x00d00761 CFRunLoopRunInMode + 97
33 GraphicsServices 0x00ffa1c4 GSEventRunModal + 217
34 GraphicsServices 0x00ffa289 GSEventRun + 115
35 UIKit 0x00022c93 UIApplicationMain + 1160
36 SpeedClock 0x00001f59 main + 121
37 SpeedClock 0x00001ed5 start + 53
38 ??? 0x00000001 0x0 + 1
)
terminate called throwing an exceptionCurrent language: auto; currently objective-c
(gdb)
I can read these pretty well on Logcat on android. Just not use to reading this one. I saw another post saying that their class might not have been connected to their view. Mine is. It was working just fine prior to me putting in some stuff (which I recommented out and it still isnt working) on the MPHViewController.m
Any and all help is appreciated... Thanks :)
You most likely have something in your "MphView" XIB file called "count" that you no longer have in MphViewController. Maybe a delegate set for an object that's no longer there, or an action, or something like that. Check all your connections in Interface Builder and remove any broken ones.

EXC_BAD_ACCESS (SIGSEGV) and KERN_INVALID_ADDRESS at 0xa0000008

I have a problem that occurs from time to time and I can't find
the solution, can someone help me? Thanks
Here is the log of the crash and where the method is called
0 libobjc.A.dylib 0x00003fb0 objc_msgSend + 16
1 Authentic 0x00048ce2 -[JobsSubtitleView touchUp:] (JobsSubtitleView.m:172)
2 CoreFoundation 0x00026486 -[NSObject performSelector:withObject:withObject:] + 46
3 UIKit 0x00032bf8 -[UIApplication sendAction:to:from:forEvent:] + 56
4 UIKit 0x00032bb4 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 24
5 UIKit 0x00032b92 -[UIControl sendAction:to:forEvent:] + 38
6 UIKit 0x00032902 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 486
7 UIKit 0x0003307a -[UIControl touchesEnded:withEvent:] + 470
8 UIKit 0x00031914 -[UIWindow _sendTouchesForEvent:] + 312
9 UIKit 0x0003133a -[UIWindow sendEvent:] + 374
10 UIKit 0x000076e6 -[UIApplication sendEvent:] + 350
11 UIKit 0x000070d2 _UIApplicationHandleEvent + 5802
12 GraphicsServices 0x00004f44 PurpleEventCallback + 876
13 CoreFoundation 0x00083a28 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
14 CoreFoundation 0x000839ca __CFRunLoopDoSource1 + 134
15 CoreFoundation 0x000825f0 __CFRunLoopRun + 1364
16 CoreFoundation 0x00023f72 CFRunLoopRunSpecific + 294
17 CoreFoundation 0x00023e3a CFRunLoopRunInMode + 98
18 GraphicsServices 0x0000411e GSEventRunModal + 150
19 UIKit 0x00002472 UIApplicationMain + 1074
20 Authentic 0x0006bbd0 main (main.m:17)
21 Authentic 0x00002e8c start + 32
- (void) touchUp:(id)sender {
if(![[UIApplication sharedApplication] isNetworkActivityIndicatorVisible]) {
UIButton *jobsSubtitleButton = (UIButton*)sender;
[jobsSubtitleButton setSelected:!jobsSubtitleButton.selected];
[jobsViewController setClickType:YES]; /*** LINE 172 ***/
if(![jobsViewController isSearching]) {
[jobsViewController setIsSearching:YES];
if([jobsViewController clickType]) {
[self performSelector:#selector(reloadJobs) withObject:nil afterDelay:1.0f];
} else {
[self performSelector:#selector(reloadJobs) withObject:nil];
}
}
}
}
You have not provided enough code to make the root cause of the problem clear. The crash happens because the jobsViewController ivar in your object points to an object that has already been deallocated. But why was it deallocated at this point? There is no way to know based on this code. The most likely cause is that you forgot to retain it or the property was not declared as "retain". But, there could be a number of programming mistakes that were the root cause. You will need to do a code review looking specifically for problems related to not retaining the object pointed to by jobsViewController.

was unable to load a nib named

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."