You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CarPlayManagerTests.testManagerTellsDelegateWhenNavigationStartsAndEndsDueToArrival() has been crashing sporadically on CI since we upgraded MapboxNavigationNative in #2412. First step is to see if it keeps happening now that #2417 has landed.
This crash was happening sporadically on CI, but I can reproduce it reliably on release-v1.0-pre-release as of db1bb8a when running the test individually:
2020-07-21 18:09:45.481062-0700 Example[88352:8231871] Warning: Attempt to present <MapboxNavigationTests.CarPlayNavigationViewControllerTestable: 0x7fbed2c76a60> on <MapboxNavigation.CarPlayMapViewController: 0x7fbed3b24c90> whose view is not in the window hierarchy!
Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /path/to/mapbox-navigation-ios/MapboxNavigationTests/CarPlayManagerTests.swift, line 214
2020-07-21 18:09:45.483130-0700 Example[88352:8231871] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /path/to/mapbox-navigation-ios/MapboxNavigationTests/CarPlayManagerTests.swift, line 214
manager.currentNavigator is nil each time. It never gets retained outside of CarPlayManager.mapTemplate(_:startedTrip:using:), because CarPlayManager.carPlayMapViewController isn’t part of the view hierarchy and can’t present it.
We saw basically the same thing in #2360 (comment), but here we are testing whether the CarPlayNavigationViewController (currentNavigator) can exit correctly.
CarPlayManagerTests.testManagerTellsDelegateWhenNavigationStartsAndEndsDueToArrival()
has been crashing sporadically on CI since we upgraded MapboxNavigationNative in #2412. First step is to see if it keeps happening now that #2417 has landed./ref #2439 (comment)
/cc @mapbox/navigation-ios @avi-c
The text was updated successfully, but these errors were encountered: