I get this error:
2013-01-21 15:09:49.479 obtl[13136:403] An uncaught exception was raised
2013-01-21 15:09:49.484 obtl[13136:403] [<NSApplication 0x10012a600> valueForUndefinedKey:]: this class is not key value coding-compliant for the key managedObjectContext.
2013-01-21 15:09:49.493 obtl[13136:403] (
0 CoreFoundation 0x00007fff8c000f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff934f4d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c08b1b9 -[NSException raise] + 9
3 Foundation 0x00007fff8ef65703 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 240
4 Foundation 0x00007fff8ee9c38e _NSGetUsingKeyValueGetter + 108
5 Foundation 0x00007fff8ee9c315 -[NSObject(NSKeyValueCoding) valueForKey:] + 392
6 AppKit 0x00007fff938596ef -[NSApplication(NSScripting) valueForKey:] + 510
7 Foundation 0x00007fff8eebbda2 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 348
8 AppKit 0x00007fff936572fa -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 654
9 AppKit 0x00007fff93656fe4 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 171
10 AppKit 0x00007fff93656c52 -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] + 1181
11 AppKit 0x00007fff93648f8f -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591
12 AppKit 0x00007fff936422a1 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079
13 AppKit 0x00007fff936388bb loadNib + 322
14 AppKit 0x00007fff93637db8 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
15 AppKit 0x00007fff93637cd3 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
16 AppKit 0x00007fff93637c16 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364
17 AppKit 0x00007fff938a8cd7 NSApplicationMain + 398
18 obtl 0x0000000100001b52 main + 34
19 obtl 0x0000000100001b24 start + 52
)
2013-01-21 15:09:49.503 obtl[13136:403] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSApplication 0x10012a600> valueForUndefinedKey:]: this class is not key value coding-compliant for the key managedObjectContext.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8c000f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff934f4d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c08b1b9 -[NSException raise] + 9
3 Foundation 0x00007fff8ef65703 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 240
4 Foundation 0x00007fff8ee9c38e _NSGetUsingKeyValueGetter + 108
5 Foundation 0x00007fff8ee9c315 -[NSObject(NSKeyValueCoding) valueForKey:] + 392
6 AppKit 0x00007fff938596ef -[NSApplication(NSScripting) valueForKey:] + 510
7 Foundation 0x00007fff8eebbda2 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 348
8 AppKit 0x00007fff936572fa -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 654
9 AppKit 0x00007fff93656fe4 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 171
10 AppKit 0x00007fff93656c52 -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] + 1181
11 AppKit 0x00007fff93648f8f -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591
12 AppKit 0x00007fff936422a1 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079
13 AppKit 0x00007fff936388bb loadNib + 322
14 AppKit 0x00007fff93637db8 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
15 AppKit 0x00007fff93637cd3 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
16 AppKit 0x00007fff93637c16 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364
17 AppKit 0x00007fff938a8cd7 NSApplicationMain + 398
18 obtl 0x0000000100001b52 main + 34
19 obtl 0x0000000100001b24 start + 52
)
terminate called throwing an exception
Related information:
Mac OSX App (trying to aim for users with Snow Leopard to be able to use it as well).
Everything is bound appropriately to FileOwner.managedObjectContext and the appropriate entity. I have triple checked all of my tables, buttons, etc to make sure that they are attached to the right bindings.
I only have 1 window file.
I am using Xcode 4.5.2 on Mac Lion (without using Auto Layout). I am lost as to how to fix this-and yes I have researched a lot of the similar questions and have tried some of the same solutions to no avail.
From the crash log, it appears that you are loading a nib and that the nib tries to access a managedObjectContext property defined in the nib's owner. It is not found, so the crash. This is probably due to a wrong nib owner.
I would suggest to review your nib file:
the file's owner should be of type: NSApplication;
the file's owner should have a delegate outlet bound to the app delegate;
the app delegate should declare the managedObjectContext property.
Related
My macOS app uses a NSTableView with 'Floats Group Row' enabled. This works without problems on my test Macs. However, on a regular basis I receive crash reports from users with:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'self.floatingGroupRowView should be equal to the given row view!'
Does anyone know the conditions for this error?
The last part of the crashlog look similar to this:
0 CoreFoundation 0x00007fff51db6ff3 __exceptionPreprocess + 147
1 libobjc.A.dylib 0x00007fff78992c76 objc_exception_throw + 48
2 CoreFoundation 0x00007fff51dbcda2 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fff53ebb260 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 192
4 AppKit 0x00007fff4f656e9f -[NSTableRowData _updateFloatingGroupRowView:row:] + 421
5 AppKit 0x00007fff4f4245db -[NSTableRowData _updateFrameRowView:row:] + 100
6 AppKit 0x00007fff4fd03fca __48-[NSTableRowData _doAutomaticRowHeightsForRows:]_block_invoke.1004 + 47
7 AppKit 0x00007fff4f40eae2 -[NSTableRowData enumerateAvailableRowViewsUsingBlock:] + 139
8 AppKit 0x00007fff4fd03ede -[NSTableRowData _doAutomaticRowHeightsForRows:] + 274
9 AppKit 0x00007fff4fd07157 __59-[NSTableRowData _automaticRowHeightsUpdateVisibleRowViews]_block_invoke.1494 + 141
10 AppKit 0x00007fff4fd06d05 -[NSTableRowData _keepTopRowStable:andDoWorkUntilDone:] + 535
11 AppKit 0x00007fff4fd07075 -[NSTableRowData _automaticRowHeightsUpdateVisibleRowViews] + 161
12 AppKit 0x00007fff4f415d85 -[NSTableRowData updateVisibleRowViews] + 261
13 AppKit 0x00007fff4f5bf24e -[NSTableRowData prepareContentInRect:] + 106
14 AppKit 0x00007fff4f5bed46 -[NSTableView prepareContentInRect:] + 303
15 AppKit 0x00007fff4fbbf7b1 __38-[NSView _pullInExtraTilesForOverdraw]_block_invoke + 562
16 AppKit 0x00007fff4f484a19 -[NSView _performWorkOnTilesFromRect:renderedContentRect:maximumRect:scrollVelocity:handler:] + 1544
17 AppKit 0x00007fff4f4841f2 -[NSView _pullInExtraTilesForOverdraw] + 854
18 AppKit 0x00007fff4f483e6d -[NSView _doIdlePrefetch] + 37
Unfortunately, these crashlogs don't point consistently to one particular line in my code.
I am getting this exception in MAC where I am creating two Tab View Item in a Window.I have a table view for each tab.
I searched a lot but could not see any soultions? Can anybody help me ?
SourceCache/AppKit/AppKit-1265.21/AppKit.subproj/NSClipView.m:945
2014-07-30 13:54:08.204 Intralinks VIA[728:1003] An uncaught exception was raised
2014-07-30 13:54:08.204 Intralinks VIA[728:1003] Overhang subviews getting created twice!
2014-07-30 13:54:08.205 Intralinks VIA[728:1003] (
0 CoreFoundation 0x00007fff9474025c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8d321e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff94740038 +[NSException raise:format:arguments:] + 104
3 Foundation 0x00007fff8a088d41 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
4 AppKit 0x00007fff92b34cfd -[NSClipView _addOverhangSubviewsIfNeeded] + 150
5 AppKit 0x00007fff9278c451 -[NSClipView setDocumentView:] + 530
6 AppKit 0x00007fff9278bfe8 -[NSScrollView setDocumentView:] + 114
7 AppKit 0x00007fff9271e7de -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 358
8 AppKit 0x00007fff927135ce loadNib + 327
9 AppKit 0x00007fff92712b6c +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 288
10 AppKit 0x00007fff929a74d2 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 140
11 AppKit 0x00007fff929a72ca -[NSWindowController loadWindow] + 196
12 AppKit 0x00007fff929abf88 -[NSWindowController window] + 80
13 AppKit 0x00007fff929ad0f0 -[NSWindowController showWindow:] + 36
I got the answer.
The issue was I was calling showWindow from a Background Thread and not the main thread.
I'm trying to develop a Mapkit app. There is a map, a lot of annotations located on this map. If I touch one of these annotations my app is displaying a custom popover from a storyboard. If I touch another location on view while popover is active, popover disappears without any problem.
But, if I touch one of annotation and move my finger out of annotation without releasing my finger, I got the error.
2014-08-01 11:33:34.160 notamTR[1101:60b] *** Terminating app due to uncaught exception 'NSGenericException', reason: '-[UIPopoverController dealloc] reached while popover is still visible.'
*** First throw call stack:
(
0 CoreFoundation 0x01b231e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x018208e5 objc_exception_throw + 44
2 CoreFoundation 0x01b22fbb +[NSException raise:format:] + 139
3 UIKit 0x00ae195e -[UIPopoverController dealloc] + 86
4 libobjc.A.dylib 0x01831692 _ZN11objc_object17sidetable_releaseEb + 268
5 libobjc.A.dylib 0x01830e81 objc_release + 49
6 myMap 0x0000b82d -[ViewController mapView:didSelectAnnotationView:] + 1885
7 MapKit 0x0017799d -[MKMapView annotationManager:didSelectAnnotationRepresentation:] + 704
8 MapKit 0x001ae9b8 -[MKAnnotationManager selectAnnotation:animated:avoid:] + 715
9 MapKit 0x001ae6e8 -[MKAnnotationManager selectAnnotation:animated:] + 75
10 MapKit 0x00165206 -[MKMapView handleLongPress:] + 993
11 UIKit 0x0087c4f4 _UIGestureRecognizerSendActions + 230
12 UIKit 0x0087b168 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 383
13 UIKit 0x0087cbdd -[UIGestureRecognizer _delayedUpdateGesture] + 60
14 UIKit 0x0088013d ___UIGestureRecognizerUpdate_block_invoke + 57
15 UIKit 0x008800be _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 317
16 UIKit 0x008767ac _UIGestureRecognizerUpdate + 199
17 UIKit 0x00521a5a -[UIWindow _sendGesturesForEvent:] + 1291
18 UIKit 0x00522971 -[UIWindow sendEvent:] + 1021
19 UIKit 0x004f45f2 -[UIApplication sendEvent:] + 242
20 UIKit 0x004de353 _UIApplicationHandleEventQueue + 11455
21 CoreFoundation 0x01aac77f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
22 CoreFoundation 0x01aac10b __CFRunLoopDoSources0 + 235
23 CoreFoundation 0x01ac91ae __CFRunLoopRun + 910
24 CoreFoundation 0x01ac89d3 CFRunLoopRunSpecific + 467
25 CoreFoundation 0x01ac87eb CFRunLoopRunInMode + 123
26 GraphicsServices 0x032df5ee GSEventRunModal + 192
27 GraphicsServices 0x032df42b GSEventRun + 104
28 UIKit 0x004e0f9b UIApplicationMain + 1225
29 myMap 0x0001c37c main + 92
30 libdyld.dylib 0x020e4701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
It is quite late with this Answer, but for those looking for a solution: Try to create a storong property to hold this popover, and then when taping on the map accessory use the self.popover reference to init it with a content.
I have an app called "FirstAid" that crashes in the simulator and on a device. If I create a clean project called "FirstAid" that also crashes with the same report. Any other named app is fine.
I have done a clean, and rebuilt it but it still crashes.
How do I fix it?
2011-05-14 10:06:39.912 FirstAid[1217:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00ef55a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x01049313 objc_exception_throw + 44
2 CoreFoundation 0x00ef54e1 -[NSException raise] + 17
3 Foundation 0x008c7677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x008c75e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x0034330c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00e6b8cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x00341d23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00343ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x0014917a -[UIApplication _loadMainNibFile] + 172
10 UIKit 0x00149cf4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 291
11 UIKit 0x00154617 -[UIApplication handleEvent:withNewEvent:] + 1533
12 UIKit 0x0014cabf -[UIApplication sendEvent:] + 71
13 UIKit 0x00151f2e _UIApplicationHandleEvent + 7576
14 GraphicsServices 0x013ce992 PurpleEventCallback + 1550
15 CoreFoundation 0x00ed6944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
16 CoreFoundation 0x00e36cf7 __CFRunLoopDoSource1 + 215
17 CoreFoundation 0x00e33f83 __CFRunLoopRun + 979
18 CoreFoundation 0x00e33840 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x00e33761 CFRunLoopRunInMode + 97
20 UIKit 0x001497d2 -[UIApplication _run] + 623
21 UIKit 0x00155c93 UIApplicationMain + 1160
22 FirstAid 0x00001cb9 main + 121
23 FirstAid 0x00001c35 start + 53
)
terminate called after throwing an instance of 'NSException'
This error may mean several things, but my bet is that some of your outlets (from IB) is broken. Examine your XIB-files + all their outlets and make sure they exist in your code as well.
I'm getting some strange memory errors in Xcode; it's accessing code from other apps which is very strange.
Here is the code:
[Session started at 2011-03-08 17:04:33 +0800.]
2011-03-08 17:04:59.438 Movie[5309:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MovieViewController" nib but the view outlet was not set.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00daebe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f035c2 objc_exception_throw + 47
2 CoreFoundation 0x00d67628 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00d6759a +[NSException raise:format:] + 58
4 UIKit 0x00367b75 -[UIViewController _loadViewFromNibNamed:bundle:] + 295
5 UIKit 0x00365709 -[UIViewController loadView] + 120
6 UIKit 0x003655e3 -[UIViewController view] + 56
7 Movie 0x00002466 -[MovieAppDelegate application:didFinishLaunchingWithOptions:] + 79
8 UIKit 0x002b81fa -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
9 UIKit 0x002ba55e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
10 UIKit 0x002c4db2 -[UIApplication handleEvent:withNewEvent:] + 1533
11 UIKit 0x002bd202 -[UIApplication sendEvent:] + 71
12 UIKit 0x002c2732 _UIApplicationHandleEvent + 7576
13 GraphicsServices 0x016e4a36 PurpleEventCallback + 1550
14 CoreFoundation 0x00d90064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
15 CoreFoundation 0x00cf06f7 __CFRunLoopDoSource1 + 215
16 CoreFoundation 0x00ced983 __CFRunLoopRun + 979
17 CoreFoundation 0x00ced240 CFRunLoopRunSpecific + 208
18 CoreFoundation 0x00ced161 CFRunLoopRunInMode + 97
19 UIKit 0x002b9fa8 -[UIApplication _run] + 636
20 UIKit 0x002c642e UIApplicationMain + 1160
21 Movie 0x000023f4 main + 102
22 Movie 0x00002385 start + 53
)
terminate called after throwing an instance of 'NSException'
Can you tell me what this means?
Thanks in advance!
It says in plain english what the problem is: "[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MovieViewController" nib but the view outlet was not set". Set the view outlet in Interface Builder and that's it.