Have any ideas on this?
[31m*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: key cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x033c0946 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x02ce7a97 objc_exception_throw + 44
2 CoreFoundation 0x032b3bbc -[__NSDictionaryM setObject:forKey:] + 940
3 Foundation 0x028c416a -[NSMutableDictionary(NSKeyValueCoding) setValue:forKey:] + 68
4 SemiSwitch 0x00620998 -[IGGridViewRenderer enqueueReusableCell:withIdentifier:] + 170
5 SemiSwitch 0x00621798 -[IGGridViewRenderer unhookCell:] + 734
6 SemiSwitch 0x00621e59 -[IGGridViewRenderer releaseCellsFromRow:isVisible:isSection:withBounds:] + 1571
7 SemiSwitch 0x0063447d -[IGGridViewRenderer gridView:renderRowsInViewport:withBounds:] + 5755
8 SemiSwitch 0x0063823b -[IGGridViewRenderer render:] + 1293
9 SemiSwitch 0x00665bc5 -[IGGridView invalidateFromOffset] + 339
10 SemiSwitch 0x0066468b -[IGGridView setContentOffset:] + 121
11 UIKit 0x03c9d12c -[UIScrollView(UIScrollViewInternal) _adjustContentOffsetIfNecessary] + 2895
12 UIKit 0x03c80456 -[UIScrollView setContentSize:] + 342
13 SemiSwitch 0x00664318 -[IGGridView setContentSize:] + 72
14 SemiSwitch 0x00664590 -[IGGridView setContentSizeInternal:] + 567
15 SemiSwitch 0x00664aa0 -[IGGridView setBounds:] + 528
16 UIKit 0x03c61aae -[UIView(Geometry) _applyISEngineLayoutValues] + 348
17 UIKit 0x03c61d6b -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 135
18 UIKit 0x043b6fb6 -[UIScrollView(_UIOldConstraintBasedLayoutSupport) _resizeWithOldSuperviewSize:] + 73
19 UIKit 0x03c61e9e -[UIView(Geometry) resizeWithOldSuperviewSize:] + 121
20 UIKit 0x03c609ed __46-[UIView(Geometry) resizeSubviewsWithOldSize:]_block_invoke + 87
21 CoreFoundation 0x032e6e33 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 99
22 CoreFoundation 0x032e64cf -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 239
23 UIKit 0x03c6097d -[UIView(Geometry) resizeSubviewsWithOldSize:] + 149
24 UIKit 0x04365c39 -[UIView(AdditionalLayoutSupport) _is_layout] + 166
25 UIKit 0x03c662bf -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 697
26 UIKit 0x03c6637c -[UIView(Hierarchy) layoutSubviews] + 57
27 UIKit 0x03c73dd1 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 608
28 libobjc.A.dylib 0x02cfd771 -[NSObject performSelector:withObject:] + 70
29 QuartzCore 0x01b4328f -[CALayer layoutSublayers] + 152
30 QuartzCore 0x01b37115 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
31 QuartzCore 0x01b455f6 -[CALayer(CALayerPrivate) layoutBelowIfNeeded] + 44
32 UIKit 0x03c65d52 -[UIView(Hierarchy) layoutBelowIfNeeded] + 710
33 UIKit 0x03c65a77 -[UIView(Hierarchy) layoutIfNeeded] + 83
34 SemiSwitch 0x00461d23 -[SemiLayoutViewController viewDidLayoutSubviews] + 83
35 UIKit 0x03c73e1b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 682
36 libobjc.A.dylib 0x02cfd771 -[NSObject performSelector:withObject:] + 70
37 QuartzCore 0x01b4328f -[CALayer layoutSublayers] + 152
38 QuartzCore 0x01b37115 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
39 QuartzCore 0x01b455f6 -[CALayer(CALayerPrivate) layoutBelowIfNeeded] + 44
40 UIKit 0x03c65d52 -[UIView(Hierarchy) layoutBelowIfNeeded] + 710
41 UIKit 0x03c65a77 -[UIView(Hierarchy) layoutIfNeeded] + 83
42 UIKit 0x03d76545 -[UINavigationController _layoutViewController:] + 1154
43 UIKit 0x03d756b9 -[UINavigationController _layoutTopViewController] + 261
44 UIKit 0x03d6cd83 __77-[UINavigationController _repositionPaletteWithNavigationBarHidden:duration:]_block_invoke814 + 82
45 UIKit 0x03d6ca77 -[UINavigationController _repositionPaletteWithNavigationBarHidden:duration:] + 329
46 UIKit 0x03d73f75 -[UINavigationController _updateBarsForCurrentInterfaceOrientation] + 106
47 UIKit 0x03d7db07 __84-[UINavigationController willTransitionToTraitCollection:withTransitionCoordinator:]_block_invoke + 667
48 UIKit 0x0445bdbb -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 198
49 UIKit 0x044586e9 -[_UIViewControllerTransitionContext __runAlongsideAnimations] + 168
50 UIKit 0x041240a5 __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke + 112
51 UIKit 0x03c6b6b6 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 494
52 UIKit 0x03c6ba77 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 110
53 UIKit 0x04123ff2 -[_UIWindowRotationAnimationController animateTransition:] + 436
54 UIKit 0x03c3e10f -[UIWindow _rotateToBounds:withAnimator:transitionContext:] + 877
55 UIKit 0x03c40a21 -[UIWindow _rotateWindowToOrientation:updateStatusBar:duration:skipCallbacks:] + 2143
56 UIKit 0x03c428a8 -[UIWindow _setRotatableClient:toOrientation:applyTransformToWindow:updateStatusBar:duration:force:isRotating:] + 6839
57 UIKit 0x03c40120 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 128
58 UIKit 0x03c40099 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 84
59 UIKit 0x03c3fe7f -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 138
60 UIKit 0x03c3ffec -[UIWindow _setRotatableViewOrientation:duration:force:] + 68
61 UIKit 0x03c3ecba __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 130
62 UIKit 0x03c3ec17 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 425
63 UIKit 0x03c3f4d8 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 1397
64 UIKit 0x03c3ef5c -[UIWindow _updateInterfaceOrientationFromDeviceOrientationIfRotationEnabled:] + 93
65 UIKit 0x03c3e9fb -[UIWindow _handleDeviceOrientationChange:] + 122
66 Foundation 0x02895c49 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
67 CoreFoundation 0x0338b4a4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
68 CoreFoundation 0x0327903b _CFXNotificationPost + 3051
69 Foundation 0x02885246 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
70 UIKit 0x03eb4040 -[UIDevice setOrientation:animated:] + 307
71 UIKit 0x03bfff09 -[UIApplication handleEvent:withNewEvent:] + 1364
72 UIKit 0x03c004ac -[UIApplication sendEvent:] + 85
73 UIKit 0x03be8be3 _UIApplicationHandleEvent + 704
74 GraphicsServices 0x059ebc8b _PurpleEventCallback + 765
75 GraphicsServices 0x059eb79b PurpleEventCallback + 46
76 CoreFoundation 0x032e4485 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
77 CoreFoundation 0x032e43ee __CFRunLoopDoSource1 + 510
78 CoreFoundation 0x032d9823 __CFRunLoopRun + 2451
79 CoreFoundation 0x032d8bcb CFRunLoopRunSpecific + 443
80 CoreFoundation 0x032d89fb CFRunLoopRunInMode + 123
81 GraphicsServices 0x059ea24f GSEventRunModal + 192
82 GraphicsServices 0x059ea08c GSEventRun + 104
83 UIKit 0x03be88b6 UIApplicationMain + 1526
84 SemiSwitch 0x0022f51d main + 141
85 libdyld.dylib 0x051caac9 start + 1
Hey Caylan,
I'm not really sure.
The line where its falling is cacheing a cell by grabbing its identifier and storing it in a dictionary.
So 2 things could be happening.
1. Somehow the cell's identifier is being lost.
2. Somehow the cell was released from memory, and the cell we're asking is nil.
Now the second option, i'm a bit skeptical of, as we check a few lines above if the cell isn't nil.
However, before we get to the crashing code, and after we do the nil check, we call cell detached. Is it possible you're doing something in there which could be essentially killing the cell?
-SteveZ