nsomar / OAStackView

Porting UIStackView to iOS 7+
MIT License
2.14k stars 191 forks source link

App crash when initialize the OAStackView #92

Open xiaomaogong opened 8 years ago

xiaomaogong commented 8 years ago

Any idea why this crash?

Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x0000000189a49e6a

Crashed: com.apple.main-thread 0 MyAPP 0x100b30000 -OAStackViewAlignmentStrategy addConstraintsOnOtherAxis: 1 MyAPP 0x100b2e9c4 *38-[OAStackView setAlignmentConstraints]_block_invoke (OAStackView.m:146) 2 MyAPP 0x100b2d784 -OAStackView(Traversal) iterateVisibleViews: 3 MyAPP 0x100b2e8c8 -OAStackView setAlignmentConstraints 4 MyAPP 0x100b2f7f0 -OAStackView layoutArrangedViews 5 MyAPP 0x100b2e234 -OAStackView initWithArrangedSubviews: 6 MyAPP 0x1002745dc -MyFCVMajorCell tk_initialize 7 MyAPP 0x1002735b0 -MyFCVMajorCell initWithFrame: 8 UIKit 0x18988f488 -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 892 9 UIKit 0x1890abd48 -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + 180 10 MyAPP 0x1007639a8 -MyFollowingCollectionView collectionView:cellForItemAtIndexPath: 11 UIKit 0x1898873a8 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:] + 432 12 UIKit 0x1890a9adc -[UICollectionView _updateVisibleCellsNow:] + 4628 13 UIKit 0x1890a4808 -[UICollectionView layoutSubviews] + 228 14 UIKit 0x1890401e4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656 15 QuartzCore 0x1869d2994 -[CALayer layoutSublayers] + 148 16 QuartzCore 0x1869cd5d0 CA::Layer::layout_ifneeded(CA::Transaction) + 292 17 QuartzCore 0x1869cd490 CA::Layer::layout_and_display_ifneeded(CA::Transaction) + 32 18 QuartzCore 0x1869ccac0 CA::Context::committransaction(CA::Transaction) + 252 19 QuartzCore 0x1869cc820 CA::Transaction::commit() + 500 20 QuartzCore 0x1869c5de4 CA::Transaction::observer_callback(_CFRunLoopObserver, unsigned long, void) + 80 21 CoreFoundation 0x183e9c728 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION** + 32 22 CoreFoundation 0x183e9a4cc CFRunLoopDoObservers + 372 23 CoreFoundation 0x183e9a8fc __CFRunLoopRun + 928 24 CoreFoundation 0x183dc4c50 CFRunLoopRunSpecific + 384 25 GraphicsServices 0x1856ac088 GSEventRunModal + 180 26 UIKit 0x1890ae088 UIApplicationMain + 204 27 MyAPP 0x1000d1fc0 main (main.m:22) 28 libdispatch.dylib 0x1839628b8 (Missing)

ghost commented 8 years ago

I have the same issue. Anyone can answer this?