iOS崩溃:com.apple.main-thread EXC\u BAD\u ACCESS KERN\u INVALID\u地址0x0000000000000000

iOS崩溃:com.apple.main-thread EXC\u BAD\u ACCESS KERN\u INVALID\u地址0x0000000000000000,ios,crash,masonry-ios-osx,Ios,Crash,Masonry Ios Osx,我通过Crashlytics收到了一些崩溃。上个月它坠毁了4次。 我使用砌体进行自动布局,并在布局子视图中添加约束。您可以在下面看到崩溃跟踪 0 libsystem_platform.dylib _platform_memmove + 284 1 Foundation _NSBitSetResize.llvm.9545202549352731061 + 288 2 Foundation NSBitSetAddIndex + 52 3 Foundation NSISLi

我通过Crashlytics收到了一些崩溃。上个月它坠毁了4次。 我使用
砌体
进行自动布局,并在
布局子视图
中添加约束。您可以在下面看到崩溃跟踪

0   libsystem_platform.dylib    _platform_memmove + 284
1   Foundation  _NSBitSetResize.llvm.9545202549352731061 + 288
2   Foundation  NSBitSetAddIndex + 52
3   Foundation  NSISLinExpEnumerateVars + 88
4   Foundation  _row_setHead + 156
5   Foundation  -[NSISEngine tryAddingDirectly:] + 236
6   Foundation  -[NSISEngine _tryToAddConstraintWithMarkerEngineVar:row:mutuallyExclusiveConstraints:] + 156
7   Foundation  -[NSISEngine tryToAddConstraintWithMarker:expression:mutuallyExclusiveConstraints:] + 684
8   Foundation  -[NSLayoutConstraint _addLoweredExpression:toEngine:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 252
9   Foundation  -[NSLayoutConstraint _addToEngine:mutuallyExclusiveConstraints:] + 188
10  UIKitCore   -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 548
11  UIKitCore   -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 36
12  UIKitCore   -[UIView(UIConstraintBasedLayout) nsli_addConstraint:] + 84
13  ChopeDashboard  MASViewConstraint.m line 361  -[MASViewConstraint install] + 361
14  ChopeDashboard  MASConstraintMaker.m line 46  -[MASConstraintMaker install] + 46
15  ChopeDashboard  View+MASAdditions.m line 18  -[UIView(MASAdditions) mas_makeConstraints:] + 18
16  ChopeDashboard  CDResListHeaderView.m line 128  -[CDResListHeaderView layoutSubviews] + 128
17  UIKitCore   -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2140
18  QuartzCore  -[CALayer layoutSublayers] + 284
19  QuartzCore  CA::Layer::layout_if_needed(CA::Transaction*) + 480
20  QuartzCore  CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
21  QuartzCore  CA::Context::commit_transaction(CA::Transaction*, double) + 304
22  QuartzCore  CA::Transaction::commit() + 676
23  QuartzCore  CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 888
24  IOKit   IODispatchCalloutFromCFMessage + 488
25  CoreFoundation  __CFMachPortPerform + 172
26  CoreFoundation  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
27  CoreFoundation  __CFRunLoopDoSource1 + 444
28  CoreFoundation  __CFRunLoopRun + 2168
29  CoreFoundation  CFRunLoopRunSpecific + 464
30  GraphicsServices    GSEventRunModal + 104
31  UIKitCore   UIApplicationMain + 1936
32  ChopeDashboard  main.m line 14 main + 14
33  libdyld.dylib   start + 4

有人遇到过同样的问题吗?

这是一个自动布局问题。@matt我无法复制它。很难检测代码位置。13 ChopeDashboard masviewsconstraint.m行361-[masviewsconstraint安装]+361 14 ChopeDashboard MASConstraintMaker.m行46-[MASConstraintMaker安装]+46尝试从这里开始搜索,可能有冲突?