jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

Crash on - [MBProgressHUD updateConstraints] #532

Open nitesh-homage opened 6 years ago

nitesh-homage commented 6 years ago

Hello, The lib gives crash for some devices on above method.

<Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x185586d8c exceptionPreprocess 1 libobjc.A.dylib 0x1847405ec objc_exception_throw 2 CoreFoundation 0x185586bf8 +[NSException raise:format:] 3 Foundation 0x185f76fa0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] 4 Foundation 0x185ed8cf4 -[NSISEngine _optimizeIfNotDisabled] 5 Foundation 0x185ed7aec -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] 6 Foundation 0x185ed7720 -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] 7 Foundation 0x185ed326c -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] 8 UIKit 0x18f167aa4 -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] 9 UIKit 0x18f167880 -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] 10 UIKit 0x18f456288 50-[UIView(UIConstraintBasedLayout) addConstraints:]_block_invoke 11 Foundation 0x185ed5500 -[NSISEngine withBehaviors:performModifications:] 12 UIKit 0x18f20c148 -[UIView(UIConstraintBasedLayout) addConstraints:] 13 MBProgressHUD 0x10506f378 -[MBProgressHUD updateConstraints] (MBProgressHUD.m:609) 14 UIKit 0x18f180948 -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] 15 UIKit 0x18f18067c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] 16 UIKit 0x18f180550 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] 17 Foundation 0x185ed5500 -[NSISEngine withBehaviors:performModifications:] 18 UIKit 0x18fc7adec __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke 19 UIKit 0x18f14bed8 -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] 20 UIKit 0x18f17feb8 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] 21 UIKit 0x18f17fb24 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:] 22 UIKit 0x18f17f53c -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] 23 UIKit 0x18f15b770 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] 24 QuartzCore 0x1896fd25c -[CALayer layoutSublayers] 25 QuartzCore 0x1897013ec CA::Layer::layout_if_needed(CA::Transaction) 26 QuartzCore 0x18966daa0 CA::Context::commit_transaction(CA::Transaction) 27 QuartzCore 0x1896955d0 CA::Transaction::commit() 28 QuartzCore 0x189696450 CA::Transaction::observer_callback(CFRunLoopObserver, unsigned long, void) 29 CoreFoundation 0x18552e910 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION 30 CoreFoundation 0x18552c238 CFRunLoopDoObservers 31 CoreFoundation 0x18552c884 __CFRunLoopRun 32 CoreFoundation 0x18544cda8 CFRunLoopRunSpecific 33 GraphicsServices 0x18742f020 GSEventRunModal 34 UIKit 0x18f42d78c UIApplicationMain 35 HomagePro 0x10464cc5c main (IntroductionVC.swift:16) 36 libdyld.dylib 0x184eddfc0 start

matej commented 6 years ago

You should check the exception message. Please also rad https://github.com/jdg/MBProgressHUD/blob/master/CONTRIBUTING.md.