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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSInternalInconsistencyException crash in CropView._InteractiveCropGuideView during gesture handling #257

Open
spartan-minhnguyen opened this issue Nov 29, 2024 · 0 comments

Comments

@spartan-minhnguyen
Copy link

spartan-minhnguyen commented Nov 29, 2024

Description:

Fatal Exception: NSInternalInconsistencyException
NSLayoutConstraint constant is not finite! That's illegal. constant:inf firstAnchor:<NSLayoutXAxisAnchor:0x3003aaa40 "_TtCC12BrightroomUI8CropView25_InteractiveCropGuideView:0x105259200.left"> secondAnchor:<NSLayoutXAxisAnchor:0x3003b94c0 "BrightroomUI.CropView:0x118c80500.left">

  • While using Brightroom, a crash occurs when handling pan gestures in the CropView._InteractiveCropGuideView. This crash happens specifically in the onGestureTrackingChanged() method when setting constraints (NSLayoutConstraint.setConstant).

  • The crash log indicates an NSInternalInconsistencyException caused by invalid or unexpected constants being applied to a constraint.

Actual Behavior:

  • The app crashes with the following exception: Fatal Exception: NSInternalInconsistencyException -[NSLayoutConstraint setConstant:]

Crash Log:
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x827cc __exceptionPreprocess
1 libobjc.A.dylib 0x172e4 objc_exception_throw
2 Foundation 0x80f8d8 _userInfoForFileAndLine
3 CoreAutoLayout 0x4d44 -[NSLayoutConstraint _setSymbolicConstant:constant:symbolicConstantMultiplier:]
4 CoreAutoLayout 0x4854 -[NSLayoutConstraint setConstant:]
5 App 0x4e4c44 CropView._InteractiveCropGuideView.onGestureTrackingChanged() + 372 (CropView._InteractiveCropGuideView.swift:372)
6 App 0x4e7094 CropView._InteractiveCropGuideView.handlePanGestureInLeft(gesture:) + 902 (CropView._InteractiveCropGuideView.swift:902)
7 App 0x4e710c @objc CropView._InteractiveCropGuideView.handlePanGestureInLeft(gesture:) ()
...

Environment:
Brightroom version: 3.0.0 beta 5
iOS version: iOS 18.1.1
Device model: iPhone 13 Pro

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

1 participant