Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

remakeConstraints will crash #766

Open
3 tasks
dark155 opened this issue Dec 6, 2022 · 1 comment
Open
3 tasks

remakeConstraints will crash #766

dark155 opened this issue Dec 6, 2022 · 1 comment

Comments

@dark155
Copy link

dark155 commented Dec 6, 2022

New Issue Checklist

馃毇 If this template is not filled out your issue will be closed with no comment. 馃毇

  • I have looked at the Documentation
  • I have read the F.A.Q.
  • I have filled out this issue template.

Issue Info

Info Value
Platform e.g. ios/osx/tvos
Platform Version e.g. 8.0
SnapKit Version e.g. 0.19.0
Integration Method e.g. carthage/cocoapods/manually

Issue Description

Crashed: com.apple.main-thread
0 CoreAutoLayout 0x6404 AddVarToSortedPriorityVectorList + 68
1 CoreAutoLayout 0x10020 -[NSISObjectiveLinearExpression addVar:priority:times:processVarNewToReceiver:processVarDroppedFromReceiver:] + 240
2 CoreAutoLayout 0x10690 NSISLinExpEnumerateVarsAndCoefficients + 92
3 CoreAutoLayout 0xf720 -[NSISObjectiveLinearExpression addExpression:priority:times:processVarNewToReceiver:processVarDroppedFromReceiver:] + 144
4 CoreAutoLayout 0x8db8 -[NSISEngine tryUsingArtificialVariableToAddConstraintWithMarker:row:usingInfeasibilityHandlingBehavior:mutuallyExclusiveConstraints:] + 204
5 CoreAutoLayout 0xd96c -[NSISEngine _tryToAddConstraintWithMarkerEngineVar:row:mutuallyExclusiveConstraints:] + 388
6 CoreAutoLayout 0x7f7c -[NSISEngine tryToAddConstraintWithMarker:expression:mutuallyExclusiveConstraints:] + 668
7 CoreAutoLayout 0x7be4 -[NSLayoutConstraint _addLoweredExpression:toEngine:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 232
8 CoreAutoLayout 0x21e8 -[NSLayoutConstraint _addToEngine:mutuallyExclusiveConstraints:] + 148
9 UIKitCore 0x56838 -[UIView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 520
10 UIKitCore 0x3bb80 -[UIView _tryToAddConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 156
11 UIKitCore 0x585d8 -[UIView(UIConstraintBasedLayout) nsli_addConstraint:] + 72
12 CoreAutoLayout 0x6304 __55+[NSLayoutConstraint _addOrRemoveConstraints:activate:]_block_invoke + 36
13 CoreAutoLayout 0x55d8 -[NSISEngine withBehaviors:performModifications:] + 76
14 CoreAutoLayout 0x23cc +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 264
15 mxz_ios 0xde0cc4 specialized static ConstraintMaker.makeConstraints(item:closure:) + 4384869572

@Rex-xingjl
Copy link

Rex-xingjl commented Feb 1, 2024

I have the same crash and still work on it. It seems when I remake constraints for ViewA, but I don't remake constraints for ViewA's subviews.
The reason for this crash is that I animate the presentation of a view and use SnapKit for constraint changes during the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants