iOS SDK: Messenger crash | Community
Skip to main content

iOS SDK 10.3.0, so far only occurred on devices with a version of iOS 12.

 

When you open Messenger but close it before the messages finished loading, it will crash.

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Mutating a priority from required to not on an installed constraint (or vice-versa) is not supported. You passed priority 999 and the existing priority was 1000.'

I couldn't reproduce on iOS 14 or iOS 15 versions, but I noticed after closing Messenger, there are some constraint conflicts

[LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x6000014ba580 UIView:0x7fa7c8e734d0.width == UIStackView:0x7fa7c8e78de0.width (active)>", "<NSLayoutConstraint:0x6000014b9b30 H:|-(24)-[UIStackView:0x7fa7c8e78de0] (active, names: '|':Intercom.ConversationHistoryCard:0x7fa7c8e75350 )>", "<NSLayoutConstraint:0x6000014b9ea0 UIStackView:0x7fa7c8e78de0.trailing == Intercom.ConversationHistoryCard:0x7fa7c8e75350.trailing - 24 (active)>", "<NSLayoutConstraint:0x6000014ba8f0 '_UITemporaryLayoutWidth' Intercom.ConversationHistoryCard:0x7fa7c8e75350.width == 0 (active)>" )   Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000014ba580 UIView:0x7fa7c8e734d0.width == UIStackView:0x7fa7c8e78de0.width (active)>[LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x6000014b9b30 H:|-(24)-[UIStackView:0x7fa7c8e78de0] (active, names: '|':Intercom.ConversationHistoryCard:0x7fa7c8e75350 )>", "<NSLayoutConstraint:0x6000014b9ea0 UIStackView:0x7fa7c8e78de0.trailing == Intercom.ConversationHistoryCard:0x7fa7c8e75350.trailing - 24 (active)>", "<NSLayoutConstraint:0x6000014ba8f0 '_UITemporaryLayoutWidth' Intercom.ConversationHistoryCard:0x7fa7c8e75350.width == 0 (active)>" )   Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000014b9ea0 UIStackView:0x7fa7c8e78de0.trailing == Intercom.ConversationHistoryCard:0x7fa7c8e75350.trailing - 24 (active)>[LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x6000014b90e0 V:|-(24)-[UIStackView:0x7fa7c8e78de0] (active, names: '|':Intercom.ConversationHistoryCard:0x7fa7c8e75350 )>", "<NSLayoutConstraint:0x6000014b8cd0 UIStackView:0x7fa7c8e78de0.bottom == Intercom.ConversationHistoryCard:0x7fa7c8e75350.bottom - 24 (active)>", "<NSLayoutConstraint:0x6000014baad0 '_UITemporaryLayoutHeight' Intercom.ConversationHistoryCard:0x7fa7c8e75350.height == 0 (active)>" )   Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000014b8cd0 UIStackView:0x7fa7c8e78de0.bottom == Intercom.ConversationHistoryCard:0x7fa7c8e75350.bottom - 24 (active)>

 

Any help to be get rid of the crash, would be appreciated. Thank you.

I'm having the same problem after updating the capacitor to version 3


Any help? All most of our users are using iPod that has SO version 12.5.5


Hey @thyago​, we have released a new version of our iOS SDK released (10.3.1). Does upgrading to this version resolve your issue?


Hello @eric f11​ I tried with version 10.3.1 The crash is still there.

*** Assertion failure in -[NSLayoutConstraint setPriority:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation_Sim/Foundation-1575.17/Foundation/Layout.subproj/NSLayoutConstraint.m:234 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Mutating a priority from required to not on an installed constraint (or vice-versa) is not supported. You passed priority 999 and the existing priority was 1000.' *** First throw call stack: ( 0 CoreFoundation 0x00000001193868db __exceptionPreprocess + 331 1 libobjc.A.dylib 0x000000011877fac5 objc_exception_throw + 48 2 CoreFoundation 0x0000000119386662 +[NSException raise:format:arguments:] + 98 3 Foundation 0x000000011209276b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194 4 Foundation 0x00000001122988eb -[NSLayoutConstraint setPriority:] + 754 5 Intercom 0x0000000113231b9d preActionTypeFromString + 101802 6 Intercom 0x00000001132315c3 preActionTypeFromString + 100304 7 UIKitCore 0x000000011cfb99be -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 1551 8 UIKitCore 0x000000011cfb9fa5 -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + 169 9 Intercom 0x00000001132052e9 Intercom + 189161 10 Intercom 0x0000000113205271 Intercom + 189041 11 UIKitCore 0x000000011cfa4adf -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 383 12 UIKitCore 0x000000011cfa495a -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 31 13 UIKitCore 0x000000011cfc40be __51-[UICollectionView _viewAnimationsForCurrentUpdate]_block_invoke.1646 + 533 14 UIKitCore 0x000000011cfc0d28 -[UICollectionView _viewAnimationsForCurrentUpdate] + 3419 15 UIKitCore 0x000000011cfc6aee __71-[UICollectionView _updateWithItems:tentativelyForReordering:animator:]_block_invoke.1701 + 172 16 UIKitCore 0x000000011dbfeec1 +[UIView(Animation) performWithoutAnimation:] + 90 17 UIKitCore 0x000000011cfc587c -[UICollectionView _updateWithItems:tentativelyForReordering:animator:] + 4027 18 UIKitCore 0x000000011cfbfa85 -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:] + 16787 19 UIKitCore 0x000000011cfc7f24 -[UICollectionView _endUpdatesWithInvalidationContext:tentativelyForReordering:animator:] + 71 20 UIKitCore 0x000000011cfc8267 -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:animator:] + 434 21 UIKitCore 0x000000011cfc8092 -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:] + 90 22 UIKitCore 0x000000011cfc8015 -[UICollectionView _performBatchUpdates:completion:invalidationContext:] + 74 23 UIKitCore 0x000000011cfc7f6a -[UICollectionView performBatchUpdates:completion:] + 53 24 Intercom 0x000000011320356b Intercom + 181611 25 UIKitCore 0x000000011dc0088d +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 569 26 UIKitCore 0x000000011dc00e20 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:] + 48 27 Intercom 0x0000000113203418 Intercom + 181272 28 libdispatch.dylib 0x000000011abc2d7f _dispatch_call_block_and_release + 12 29 libdispatch.dylib 0x000000011abc3db5 _dispatch_client_callout + 8 30 libdispatch.dylib 0x000000011abd1080 _dispatch_main_queue_callback_4CF + 1540 31 CoreFoundation 0x00000001192eda79 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 32 CoreFoundation 0x00000001192e8126 __CFRunLoopRun + 2310 33 CoreFoundation 0x00000001192e74d2 CFRunLoopRunSpecific + 626 34 GraphicsServices 0x000000012028c2fe GSEventRunModal + 65 35 UIKitCore 0x000000011d72dfc2 UIApplicationMain + 140

 


Hey @ionut a11​ @thyago​, our engineers are currently investigating this bug and working on a fix. I'll let you know once this has shipped.


Hi @ionut a11​ @thyago​ 

This issue has been fixed in Release 10.3.2 for our iOS SDK.

Thanks for taking the time to report it.

Brian


Hello @brian b11​ 

 

Is it possible to release updated version of the React Native SDK as well?

Current version of the React Native SDK (1.1.1) depends on the following pod: "Intercom", '~> 10.3.0'. Could it be updated to include the latest bug fixes from iOS SDK 10.3.2?

 

Regards,

Dmitry


Please make a new release of "intercom-react-native" with an updated dependency to 10.3.2.