CollectionViewCenteredFlowLayout icon indicating copy to clipboard operation
CollectionViewCenteredFlowLayout copied to clipboard

Exception 'NSInternalInconsistencyException', reason: 'negative sizes are not supported in the flow layout'

Open vzool opened this issue 2 years ago • 1 comments

2022-05-12 10:11:57.983617+0300 Planto[47691:3884672] *** Assertion failure in -[CollectionViewCenteredFlowLayout.CollectionViewCenteredFlowLayout _getSizingInfosWithExistingSizingDictionary:], UICollectionViewFlowLayout.m:1501
2022-05-12 10:11:58.005042+0300 Planto[47691:3884672] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'negative sizes are not supported in the flow layout'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff20406d44 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff201a4a65 objc_exception_throw + 48
	2   Foundation                          0x00007fff2075e634 _userInfoForFileAndLine + 0
	3   UIKitCore                           0x00007fff24727647 -[UICollectionViewFlowLayout _getSizingInfosWithExistingSizingDictionary:] + 2971
	4   UIKitCore                           0x00007fff24728cbd -[UICollectionViewFlowLayout _fetchItemsInfoForRect:] + 228
	5   UIKitCore                           0x00007fff24721eb5 -[UICollectionViewFlowLayout collectionViewContentSize] + 48
	6   UIKitCore                           0x00007fff2471b2be -[UICollectionViewData _validateContentSize] + 72
	7   UIKitCore                           0x00007fff2471b477 -[UICollectionViewData _prepareToLoadData] + 211
	8   UIKitCore                           0x00007fff2471c2b5 -[UICollectionViewData validateLayoutInRect:] + 51
	9   UIKitCore                           0x00007fff246db9f1 -[UICollectionView layoutSubviews] + 229
	10  UIKitCore                           0x00007fff2565a2b0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2496
	11  QuartzCore                          0x00007fff28a6639d _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 543
	12  QuartzCore                          0x00007fff28a71583 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65
	13  QuartzCore                          0x00007fff289937c9 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 623
	14  QuartzCore                          0x00007fff289cae86 _ZN2CA11Transaction6commitEv + 774
	15  UIKitCore                           0x00007fff250c18e7 _afterCACommitHandler + 105
	16  CoreFoundation                      0x00007fff2037267d __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	17  CoreFoundation                      0x00007fff2036ce41 __CFRunLoopDoObservers + 570
	18  CoreFoundation                      0x00007fff2036d3d9 __CFRunLoopRun + 1100
	19  CoreFoundation                      0x00007fff2036ca90 CFRunLoopRunSpecific + 562
	20  GraphicsServices                    0x00007fff2cb72c8e GSEventRunModal + 139
	21  UIKitCore                           0x00007fff2508e90e -[UIApplication _run] + 928
	22  UIKitCore                           0x00007fff25093569 UIApplicationMain + 101
	23  Planto                              0x0000000100b1e0df main + 63
	24  dyld                                0x00000001029dbf21 start_sim + 10
	25  ???                                 0x000000010d8cc51e 0x0 + 4522296606
)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/vzool/Library/Developer/Xcode/DerivedData/Planto-anhibdxjncrzgscnrrnkzbfisflz/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMTLCapture.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/vzool/Library/Developer/Xcode/DerivedData/Planto-anhibdxjncrzgscnrrnkzbfisflz/Build/Products/Debug-iphonesimulator
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'negative sizes are not supported in the flow layout'
terminating with uncaught exception of type NSException
CoreSimulator 802.6 - Device: iPhone SE (3rd generation) (61A2DCE0-FFEF-4691-B84A-74FECB6F501E) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone SE (3rd generation)

vzool avatar May 12 '22 07:05 vzool

Kindly make a pull request with a fix if you can reproduce the issue consistently.

Coeur avatar May 12 '22 08:05 Coeur