woocommerce-ios
woocommerce-ios copied to clipboard
NSGenericException: Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x280e1e300 "_TtC11WooCommerceP33...
Sentry Issue: WOOCOMMERCE-IOS-1DJ3
NSGenericException: Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x280e1e300 "_TtC11WooCommerceP33_FFA5D4594163A533C445FD7D6757038419NoticeContainerView:0x131ff2b70.bottom"> and <NSLayoutYAxisAnchor:0x280f5b4c0 "UITabBar:0x131f4f7d0.top"> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal.
File "DefaultNoticePresenter.swift", line 135, in DefaultNoticePresenter.presentNoticeInForeground
File "DefaultNoticePresenter.swift", line 63, in DefaultNoticePresenter.present
File "DefaultNoticePresenter.swift", line 57, in DefaultNoticePresenter.presentNextNoticeIfPossible
File "DefaultNoticePresenter.swift", line 42, in DefaultNoticePresenter.enqueue
File "<compiler-generated>", in DefaultNoticePresenter
...
(20 additional frame(s) were not displayed)
Severity: high Impact: low Priority: medium
I can't reproduce this, but it appears to be related to an in-app push notification notice being shown during customer address editing on the Create Order screens.
It's only been seen once, in 9.8 which is the most widely used release at time of writing, but showed up towards the end of its lifecycle.
If it only happens when adding the customer details, it could be quite rare that a user gets in to that situation, but embarrassing (if in person) for the merchant to have to ask for all the customer's details again. In this case, they seemed to have entered quite a lot of address details already, based on the text editing breadcrumb events.
It looks like a constraints issue where a notice was presented and attempted to be constrained to something in a different view hierarchy. It happened during address editing on order creation, as far as I can tell from the breadcrumbs. The constraint is from the notice container view to the tab bar, as we’d expect.
When I try to reproduce it, the notice is hidden by the modal view controller(s) for editing the address… but when those were dismissed I saw that the notice was on top of the order creation view controller, without the tab bar being visible. It didn’t crash for me though. I triggered the notice by placing another order on the website.