Version 1.10.0 (1634)
Device: iPhone 7 Plus (iOS 10.3.3)
https://github.com/SwiftWeekly/swiftweekly.github.io/issues/308
Cannot reproduce on 5s simulator, can on 7 Plus. Stack trace:
Freetime[6318:192736] *** Assertion failure in -[UICollectionView dealloc], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.7.47/UICollectionView.m:753
2017-09-04 22:17:59.664 Freetime[6318:192736] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView (<UICollectionView: 0x7ffab68af200; frame = (0 0; 414 658); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60000045b540>; layer = <CALayer: 0x6000004231e0>; contentOffset: {0, 129}; contentSize: {414, 787}> collection view layout: <UICollectionViewFlowLayout: 0x7ffab5d33460>) was deallocated while an update was in flight'
*** First throw call stack:
(
0 CoreFoundation 0x0000000106802b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000106267141 objc_exception_throw + 48
2 CoreFoundation 0x0000000106806cf2 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000105e01536 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 UIKit 0x000000010803f7bc -[UICollectionView dealloc] + 704
5 CoreFoundation 0x00000001068592ad common_removeAllObjects + 189
6 CoreFoundation 0x000000010673a373 -[__NSArrayM dealloc] + 19
7 libobjc.A.dylib 0x000000010627bb8e _ZN11objc_object17sidetable_releaseEb + 202
8 libobjc.A.dylib 0x000000010627c2fa _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 866
9 UIKit 0x00000001077aa2f7 -[UIView dealloc] + 1841
10 libobjc.A.dylib 0x000000010627c2fa _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 866
11 CoreFoundation 0x0000000106751e96 _CFAutoreleasePoolPop + 22
12 CoreFoundation 0x000000010678daec __CFRunLoopRun + 2172
13 CoreFoundation 0x000000010678d016 CFRunLoopRunSpecific + 406
14 GraphicsServices 0x000000010e811a24 GSEventRunModal + 62
15 UIKit 0x0000000107715134 UIApplicationMain + 159
16 Freetime 0x00000001048ff077 main + 55
17 libdyld.dylib 0x000000010aa9a65d start + 1
18 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Weird I think I noticed this before too. Might be from adding the KVO for web view resizing? Will dig. Glad there's specific issues causing it!
Confirmed its the KVO that's causing the crash. Figuring out what the issue is tho.