yandexmobile / yandexmapkit-ios

Yandex Map Kit for iOS
Other
173 stars 30 forks source link

-[YMKMapKit createMapWindowWithPlatformView:] падение на iOS 16 #230

Open ledokholodok opened 1 year ago

ledokholodok commented 1 year ago

После обновления версии до 4.2.1-lite наблюдаем увеличение падений -[YMKMapKit createMapWindowWithPlatformView:] только у пользователей с iOS 16 при переходе на экран с окном для отображения карты Еще до момента создания YMKMapView, Mapkit.setApiKey() вызывается при запуске приложения, так что тут проблем не должно быть

Fatal Exception: NSInternalInconsistencyException Could not compute MVP for infinite CameraPosition

Снимок экрана 2022-11-14 в 15 07 46
Fatal Exception: NSInternalInconsistencyException

0  CoreFoundation 0xa248 __exceptionPreprocess
1  libobjc.A.dylib 0x17a68 objc_exception_throw
2  Foundation 0x54681c _userInfoForFileAndLine
3  AppName 0x1dc5824 -[YMKMapKit createMapWindowWithPlatformView:]
4  AppName 0x1e83068 -[YMKMapView addMapViewWithFrame:scaleFactor:vulkanPreferred:lifecycleProvider:]
5  AppName 0x1e82f2c -[YMKMapView initWithFrame:scaleFactor:vulkanPreferred:lifecycleProvider:]
6  AppName 0x1e82d64 -[YMKMapView initWithFrame:scaleFactor:vulkanPreferred:]
7  AppName 0x1e82cb4 -[YMKMapView initWithFrame:vulkanPreferred:]
8  AppName 0x1af89c AdvertDetailMapTableViewCell.configure(with:) + 67 (AdvertDetailMapTableViewCell.swift:67)
9  AppName 0x128a24 AdvertDetailCellFactory.cell(for:indexPath:cellType:) + 67 (AdvertDetailCellFactory.swift:67)
10 AppName 0x226640 @objc AdvertDetailContainerViewController.tableView(_:cellForRowAt:) + 669 (AdvertDetailContainerViewController.swift:669)
11 UIKitCore 0x14c828 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:]
12 UIKitCore 0x1201c4 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:]
13 UIKitCore 0x594ac -[UITableView _updateVisibleCellsNow:]
14 UIKitCore 0x58fa0 -[UITableView layoutSubviews]
15 UIKitCore 0x4cec -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
16 QuartzCore 0xa4e8 CA::Layer::layout_if_needed(CA::Transaction*)
17 QuartzCore 0x1db9c CA::Layer::layout_and_display_if_needed(CA::Transaction*)
18 QuartzCore 0x2f098 CA::Context::commit_transaction(CA::Transaction*, double, double*)
19 QuartzCore 0x663c4 CA::Transaction::commit()
20 QuartzCore 0x4d408 CA::Transaction::flush_as_runloop_observer(bool)
21 CoreFoundation 0x92070 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
22 CoreFoundation 0x1a690 __CFRunLoopDoObservers
23 CoreFoundation 0x7bf8c __CFRunLoopRun
24 CoreFoundation 0x811e4 CFRunLoopRunSpecific
25 GraphicsServices 0x1368 GSEventRunModal
26 UIKitCore 0x3a2d88 -[UIApplication _run]
27 UIKitCore 0x3a29ec UIApplicationMain
28 AppName 0xfe0a8 main + 14 (AppDelegate.swift:14)
29 ??? 0x1e9269948 (Missing)

(AdvertDetailMapTableViewCell.swift:67): mapView = YMKMapView(frame: bounds, vulkanPreferred: GULAppEnvironmentUtil.isSimulator())