Weird CoreData Crash [NSManagedObject(_NSInternalMethods) _nilOutReservedCurrentEventSnapshot__] - objective-c

All of a sudden I am getting some weird CoreData crashes, has anyone seen this before or know what could be going on?
# Binary Image Name Address Symbol
0 RRio 0x003353b0 testflight_backtrace
1 RRio 0x00334bec TFSignalHandler
2 libsystem_platform.dylib 0x3949f062 _sigtramp
3 CoreData 0x2e46446a -[NSManagedObject(_NSInternalMethods) _nilOutReservedCurrentEventSnapshot__]
4 CoreData 0x2e45eee4 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:]
5 CoreData 0x2e4584f0 _performRunLoopAction
6 CoreFoundation 0x2e6b11cc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
7 CoreFoundation 0x2e6aeb70 __CFRunLoopDoObservers
8 CoreFoundation 0x2e6aeeb2 __CFRunLoopRun
9 CoreFoundation 0x2e619c26 CFRunLoopRunSpecific
10 CoreFoundation 0x2e619a0a CFRunLoopRunInMode
11 GraphicsServices 0x3330d282 GSEventRunModal
12 UIKit 0x30ebd048 UIApplicationMain
13 RRio 0x000adcda main in main.m on Line 15
14 libdyld.dylib 0x39384ab6 start
Compiling for iOS 6.1 minimum and using ARC

Related

Adhoc build is crashing not debug build

EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xa151830c
Triggered by Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3b766b26 objc_msgSend + 6
1 Foundation 0x31e31386 __NSFireDelayedPerform + 410
2 CoreFoundation 0x314220dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
3 CoreFoundation 0x31421cf2 __CFRunLoopDoTimer + 778
4 CoreFoundation 0x3142008e __CFRunLoopRun + 1206
5 CoreFoundation 0x3138ac22 CFRunLoopRunSpecific + 518
6 CoreFoundation 0x3138aa06 CFRunLoopRunInMode + 102
7 GraphicsServices 0x3607a27e GSEventRunModal + 134
8 UIKit 0x33c2e044 UIApplicationMain + 1132
9 deBodas 0x000d5c6e main (main.m:16)
10 deBodas 0x000c53fc ___lldb_unnamed_function1$$deBodas + 36
This is crash log when i install the build .It is happend when install the build adhoc not a debug build
When i install build through system it is not happend.Any body knows please help me
I am struck this issue last three days.

_WebSafeForwarder forwardInvocation crashes

I'm getting quite a few errors which appear to be related to WebKit in my iOS project. To give some background, we use WebViews in our application for displaying news stories. These news stories often include links and when the user clicks on the links, we usually bring the user to Safari to read a full news article. Pretty standard stuff. Anyways, here's what the crash looks like:
0 libobjc.A.dylib 0x31198f78 objc_msgSend + 15
1 CoreFoundation 0x313567e4 __invoking___ + 68
2 CoreFoundation 0x312b17b1 -[NSInvocation invoke] + 160
3 CoreFoundation 0x312b13cf -[NSInvocation invokeWithTarget:] + 50
4 WebKit 0x3395fe0d -[_WebSafeForwarder forwardInvocation:] + 252
5 CoreFoundation 0x31355a83 ___forwarding___ + 666
6 CoreFoundation 0x312b0650 _CF_forwarding_prep_0 + 48
7 CoreFoundation 0x313567e4 __invoking___ + 68
8 CoreFoundation 0x312b17b1 -[NSInvocation invoke] + 160
9 WebCore 0x31a851f5 _ZL11SendMessageP12NSInvocation + 24
10 WebCore 0x31a986f1 _ZL20HandleDelegateSourcePv + 80
11 CoreFoundation 0x31327ad3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
12 CoreFoundation 0x3132729f __CFRunLoopDoSources0 + 214
13 CoreFoundation 0x31326045 __CFRunLoopRun + 652
14 CoreFoundation 0x312a94a5 CFRunLoopRunSpecific + 300
15 CoreFoundation 0x312a936d CFRunLoopRunInMode + 104
16 GraphicsServices 0x32782439 GSEventRunModal + 136
17 UIKit 0x315aecd5 UIApplicationMain + 1080
18 MyApp 0x23e7 main (main.m:13)
In terms of narrowing this crash down, it only appears to happen on iOS 5.x on iPad.
FWIW, in some areas of our codebase we're using WebViewDelegates and intercepting some of the user clicks on the links in the news stories. Not sure whether this could be a contributing factor, but thought it worthwhile to mention.
Any ideas on what might be causing a crash at this section of code?
Thanks,
Sean

UINavigationController and UITabBarController in Xcode 4

I have made the switch from Xcode 3 to Xcode 4 and my whole work flow pattern is ruined. I made the change because I think iOS 5 will only be able to be developed on Xcode 4.
Anyways, making a UINavigationController with a UITabBarController used to be straight forward for me using the Interface Builder, Now I cant find the correct attributes. It feels like Apple have forgotten certain attributes from the list.
How would i do the equal of the tutorial below in xcode 4.
http://www.xcode-tutorials.com/uitabbarcontroller-and-uinavigationcontroller/
I get a different error
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 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 56741.
2011-06-19 15:58:31.814 FaceDirectory[56741:207] Reachability Flag Status: -R ------- networkStatusForFlags
2011-06-19 15:58:31.815 FaceDirectory[56741:207] Reachable WiFi
2011-06-19 15:58:32.792 FaceDirectory[56741:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "FaceUsersViewController" nib but didn't get a UITableView.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00e315a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f85313 objc_exception_throw + 44
2 CoreFoundation 0x00de9ef8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00de9e6a +[NSException raise:format:] + 58
4 UIKit 0x0028ce9b -[UITableViewController loadView] + 275
5 UIKit 0x0013300e -[UIViewController view] + 56
6 UIKit 0x00131482 -[UIViewController contentScrollView] + 42
7 UIKit 0x00141f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
8 UIKit 0x00140555 -[UINavigationController _layoutViewController:] + 43
9 UIKit 0x00141870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
10 UIKit 0x0013c32a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
11 UIKit 0x002572e9 -[UILayoutContainerView layoutSubviews] + 226
12 QuartzCore 0x01952a5a -[CALayer layoutSublayers] + 181
13 QuartzCore 0x01954ddc CALayerLayoutIfNeeded + 220
14 QuartzCore 0x018fa0b4 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
15 QuartzCore 0x018fb294 _ZN2CA11Transaction6commitEv + 292
16 QuartzCore 0x018fb46d _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
17 CoreFoundation 0x00e1289b __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
18 CoreFoundation 0x00da76e7 __CFRunLoopDoObservers + 295
19 CoreFoundation 0x00d701d7 __CFRunLoopRun + 1575
20 CoreFoundation 0x00d6f840 CFRunLoopRunSpecific + 208
21 CoreFoundation 0x00d6f761 CFRunLoopRunInMode + 97
22 GraphicsServices 0x013091c4 GSEventRunModal + 217
23 GraphicsServices 0x01309289 GSEventRun + 115
24 UIKit 0x00091c93 UIApplicationMain + 1160
25 FaceDirectory 0x00002689 main + 121
26 FaceDirectory 0x00002605 start + 53
)
terminate called after throwing an instance of 'NSException'
sharedlibrary apply-load-rules all
Current language: auto; currently objective-c
(gdb)
If you're talking about changing FirstViewController from a View Controller to a Navigation Controller - then edit FirstViewController so that the declaration looks like this:
#interface FirstViewController : UIViewController {
I also see that the views and their controllers have already been created and hooked up for you.
Edit
The edited question shows that you haven't set up the view outlet for FacetimeUsersViewController nib

xcode instruments causing app crash

I am using xcode Instruments to track Allocations and Leaks. My app is crashing though. It does not crash when running the regular debug or release builds standalone, only when under Instruments:
Any thoughts ideas very gratefully received....
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0002b2e0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x34499c96 objc_msgSend + 14
1 ZZZ Test Suite 0x000a3d74 0x95000 + 60788
2 CoreFoundation 0x308e4c3c -[NSObject(NSObject) release] + 24
3 CoreFoundation 0x308e519a CFRelease + 62
4 CoreFoundation 0x308e7eb4 _CFAutoreleasePoolPop + 140
5 Foundation 0x341b41c4 -[NSAutoreleasePool release] + 92
6 UIKit 0x309e5f08 _UIApplicationHandleEvent + 5784
7 GraphicsServices 0x30269e70 PurpleEventCallback + 660
8 CoreFoundation 0x30957a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
9 CoreFoundation 0x30959838 __CFRunLoopDoSource1 + 160
10 CoreFoundation 0x3095a606 __CFRunLoopRun + 514
11 CoreFoundation 0x308eaebc CFRunLoopRunSpecific + 224
12 CoreFoundation 0x308eadc4 CFRunLoopRunInMode + 52
13 GraphicsServices 0x30269418 GSEventRunModal + 108
14 GraphicsServices 0x302694c4 GSEventRun + 56
15 UIKit 0x30a10d62 -[UIApplication _run] + 398
16 UIKit 0x30a0e800 UIApplicationMain + 664
17 ZZZ Test Suite 0x0009665c 0x95000 + 5724
18 ZZZ Test Suite 0x00096604 0x95000 + 5636
Try running it through the analyser first. You can run it from xcode from the |product| menu then select Analyze. It's a static analyser (clang) that analyses your code when it builds so any problems causing your code to crash at runtime could well be visible through static analysis. Give it a try and fix any problems it throws up then try instruments again.
As a complement to what Ian says above:
set the Environment variable "NSZombieEnabled" to YES
and you will hopefully have a more informative fail.
(In XCode 4 the Environment Variables is found under "Edit Scheme" and select "Debug")

xcode 4 iOS 4.3 project template doesn't work

I'm trying to create a multi-view iOS (4.3) application in xcode 4 using the view-based application template but have so far had no luck. Everything builds but then crashes without error, with me getting the message SIGABRT in the line "int retVal = UIApplicationMain(argc, argv, nil, nil);" in supporting file-> main.m
The same thing happens in both my application and the plain (view-based application ) template from xcode.
Any ideas what the problem might be?
Here's the log:
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 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 3884.
2011-03-15 18:18:16.226 Server-sideStory[3884:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'UISplitViewController is only supported when running under UIUserInterfaceIdiomPad'
*** Call stack at first throw:
(
0 CoreFoundation 0x00dc45a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f18313 objc_exception_throw + 44
2 CoreFoundation 0x00d7cef8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00d7ce6a +[NSException raise:format:] + 58
4 UIKit 0x0031d512 -[UISplitViewController _commonInit] + 165
5 UIKit 0x0031d971 -[UISplitViewController initWithCoder:] + 92
6 Foundation 0x00784c24 _decodeObjectBinary + 3296
7 Foundation 0x00783d91 _decodeObject + 224
8 UIKit 0x00211979 -[UIRuntimeConnection initWithCoder:] + 212
9 Foundation 0x00784c24 _decodeObjectBinary + 3296
10 Foundation 0x007859f5 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1354
11 Foundation 0x00786024 -[NSArray(NSArray) initWithCoder:] + 596
12 Foundation 0x00784c24 _decodeObjectBinary + 3296
13 Foundation 0x00783d91 _decodeObject + 224
14 UIKit 0x00210c36 -[UINib instantiateWithOwner:options:] + 804
15 UIKit 0x00212ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
16 UIKit 0x0001817a -[UIApplication _loadMainNibFile] + 172
17 UIKit 0x00018cf4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 291
18 UIKit 0x00023617 -[UIApplication handleEvent:withNewEvent:] + 1533
19 UIKit 0x0001babf -[UIApplication sendEvent:] + 71
20 UIKit 0x00020f2e _UIApplicationHandleEvent + 7576
21 GraphicsServices 0x00ffd992 PurpleEventCallback + 1550
22 CoreFoundation 0x00da5944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
23 CoreFoundation 0x00d05cf7 __CFRunLoopDoSource1 + 215
24 CoreFoundation 0x00d02f83 __CFRunLoopRun + 979
25 CoreFoundation 0x00d02840 CFRunLoopRunSpecific + 208
26 CoreFoundation 0x00d02761 CFRunLoopRunInMode + 97
27 UIKit 0x000187d2 -[UIApplication _run] + 623
28 UIKit 0x00024c93 UIApplicationMain + 1160
29 Server-sideStory 0x00002719 main + 121
30 Server-sideStory 0x00002695 start + 53
)
terminate called after throwing an instance of 'NSException'
sharedlibrary apply-load-rules all
Current language: auto; currently objective-c
It's telling you that UISplitViewController is not supported on the iPhone - only works on the iPad.