Note that there are some explanatory texts on larger screens.

plurals
  1. POUICollectionView crash on unhighlightAllItems
    text
    copied!<p>I've gotten several crash reports related to a UICollectionView in iOS 7. I'm not able to consistently recreate this crash.</p> <pre><code>Exception Type: SIGSEGV Exception Codes: SEGV_ACCERR at 0x91c4392b Crashed Thread: 0 Application Specific Information: *** Terminating app due to uncaught exception '', reason: '' Thread 0 Crashed: 0 libobjc.A.dylib 0x39dd2b26 objc_msgSend + 6 1 UIKit 0x31fd5eef -[UICollectionView cellForItemAtIndexPath:] + 111 2 UIKit 0x32060bfd -[UICollectionView _unhighlightItemAtIndexPath:animated:notifyDelegate:] + 149 3 UIKit 0x32383947 -[UICollectionView _unhighlightAllItems] + 151 4 UIKit 0x3205f9fb -[UICollectionView touchesBegan:withEvent:] + 367 5 UIKit 0x31fcb101 forwardTouchMethod + 233 6 UIKit 0x31fcb101 forwardTouchMethod + 233 7 UIKit 0x31e3be4b _UIGestureRecognizerUpdate + 5523 8 UIKit 0x31e73c41 -[UIWindow _sendGesturesForEvent:] + 773 9 UIKit 0x31e735e7 -[UIWindow sendEvent:] + 667 10 UIKit 0x31e48a25 -[UIApplication sendEvent:] + 197 11 UIKit 0x31e47221 _UIApplicationHandleEventQueue + 7097 12 CoreFoundation 0x2f69e18b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15 13 CoreFoundation 0x2f69d6e1 __CFRunLoopDoSources0 + 341 14 CoreFoundation 0x2f69be4f __CFRunLoopRun + 623 15 CoreFoundation 0x2f606ce7 CFRunLoopRunSpecific + 523 16 CoreFoundation 0x2f606acb CFRunLoopRunInMode + 107 17 GraphicsServices 0x342f4283 GSEventRunModal + 139 18 UIKit 0x31ea8a41 UIApplicationMain + 1137 19 JackThreadsIpad 0x000922b7 main (main.m:16) </code></pre> <p>The UICollectionViewCells in the app share a common superclass that manages highlighting. When the cell is highlighted the alpha changes. </p> <pre><code>- (void)setHighlighted:(BOOL)highlighted { [super setHighlighted:highlighted]; if (highlighted) { self.alpha = 0.8; } else { self.alpha = 1.0; } } </code></pre> <p>Could calling [super setHighlighted:highlighted] cause a crash like this? The app was compiled and submitted with XCode 4 and is only happening on iOS 7. Any other suggestions to figure out where this is happening. Thanks for your help.</p> <p>Edit: I was able to catch this in the debugger, but it still is not consistently reproducible. The crash is:</p> <pre><code>[NSIndexPath section] message sent to deallocated instance XXXXXXXX </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload