I have a image view which sets to image after loading from the server in one of my project. I see some time crashes where stacktrace looks like this
CoreFoundation 0x344d82a3 __exceptionPreprocess + 163
libobjc.A.dylib 0x3c1bc97f objc_exception_throw + 31
CoreFoundation 0x344d7d85 -[NSException name] + 1
Foundation 0x34d78509 -[NSConcreteMapTable countByEnumeratingWithState:objects:count:] + 57
CoreFoundation 0x34460d39 -[__NSFastEnumerationEnumerator nextObject] + 133
CoreFoundation 0x34433f11 -[NSEnumerator countByEnumeratingWithState:objects:count:] + 49
Foundation 0x34e88093 -[NSISEngine enumerateRows:] + 215
Foundation 0x34e8dfdf -[NSISEngine description] + 123
CoreFoundation 0x34448897 -[NSObject(NSObject) _copyDescription] + 35
CoreFoundation 0x344b92db __CFStringAppendFormatCore + 11139
CoreFoundation 0x34453fa9 CFStringCreateWithFormatAndArguments + 73
CoreFoundation 0x344d8195 +[NSException raise:format:] + 57
Foundation 0x34e8a11f -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 191
Foundation 0x34e8c759 -[NSISEngine optimize] + 61
Foundation 0x34e8c8af -[NSISEngine withAutomaticOptimizationDisabled:] + 211
UIKit 0x36719c4f -[UIView(UIConstraintBasedLayout) removeConstraints:] + 283
UIKit 0x362f6451 -[UIView(UIConstraintBasedLayout) invalidateIntrinsicContentSize] + 73
UIKit 0x362f4f39 -[UIImageView setImage:] + 381
MyApp 0x000ae369 -[DetailViewController didLoadImage:contextInfo:] (DetailViewController.m:1722)
MyApp 0x00114a45 -[UTImageCache executeRequest:] (UTImageCache.m:296)
Foundation 0x34deee85 __NSThread__main__ + 973
libsystem_c.dylib 0x3c613311 _pthread_start + 309
libsystem_c.dylib 0x3c6131d8 thread_start + 8
And the crash message is
18-Sep-13 04:43:28 PM NSGenericException
* Collection was mutated while being enumerated.
I am not sure what is the issue here? Is the Auto layout is making any issue here.
Thanks