yandexmobile / yandexmapkit-ios

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

-[YMKMapKit createMapWindowWithPlatformView:] краш на iOS 14 #224

Open pobortsevv opened 2 years ago

pobortsevv commented 2 years ago

После перехода на версию 4.1.0-lite получили очень частый краш только на ios 14.

Fatal Exception: NSInternalInconsistencyException

Stack Trace:

0 CoreFoundation 0x129dc0 exceptionPreprocess 1 libobjc.A.dylib 0x287a8 objc_exception_throw 2 CoreFoundation 0x2ba8c -[CFPrefsSearchListSource addManagedSourceForIdentifier:user:] 3 Foundation 0x7e4c4 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] 4 Darkstore 0x1caff1c -[YMKMapKit createMapWindowWithPlatformView:] 5 Darkstore 0x1d6ba70 -[YMKMapView addMapViewWithFrame:scaleFactor:vulkanPreferred:lifecycleProvider:] 6 Darkstore 0x1d6b934 -[YMKMapView initWithFrame:scaleFactor:vulkanPreferred:lifecycleProvider:] 7 Darkstore 0x1d6b76c -[YMKMapView initWithFrame:scaleFactor:vulkanPreferred:] 8 Darkstore 0x1d6b6bc -[YMKMapView initWithFrame:vulkanPreferred:] 9 Darkstore 0x23538 specialized MapManager.init(mapViewContainer:) + 68 (MapManager.swift:68) 10 Darkstore 0x1ccd6c AddressMapViewController.mapManager.getter + 41 (AddressMapViewController.swift:41) 11 Darkstore 0x1cce24 AddressMapViewController.viewDidLoad() + 50 (AddressMapViewController.swift:50) 12 Darkstore 0x1cda30 @objc AddressMapViewController.viewDidLoad() () 13 UIKitCore 0x49d58c -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] 14 UIKitCore 0x4a1db4 -[UIViewController loadViewIfRequired] 15 UIKitCore 0x4a2178 -[UIViewController view] 16 UIKitCore 0x38fbac -[_UIFullscreenPresentationController _setPresentedViewController:] 17 UIKitCore 0x382ddc -[UIPresentationController initWithPresentedViewController:presentingViewController:] 18 UIKitCore 0x4b450c -[UIViewController _presentViewController:withAnimationController:completion:] 19 UIKitCore 0x4b5824 63-[UIViewController _presentViewController:animated:completion:]_block_invoke 20 UIKitCore 0x4b5b84 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] 21 UIKitCore 0x4b5770 -[UIViewController presentViewController:animated:completion:] 22 UIKitCore 0x4b5c60 -[UIViewController presentViewController:animated:completion:] 23 RIBs 0x6d18 ViewableRouter.present(:animated:completion:) () 24 RIBs 0x6b20 closure #1 in ViewableRouter.trigger(_:completion:) + 127 (ViewableRouter.swift:127) 25 RIBs 0x5f78 thunk for @escaping @callee_guaranteed () -> () () 26 libdispatch.dylib 0x2a84 _dispatch_call_block_and_release 27 libdispatch.dylib 0x481c _dispatch_client_callout 28 libdispatch.dylib 0x12c70 _dispatch_main_queue_callback_4CF 29 CoreFoundation 0xa3a2c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE 30 CoreFoundation 0x9d904 __CFRunLoopRun 31 CoreFoundation 0x9c9f4 CFRunLoopRunSpecific 32 GraphicsServices 0x3734 GSEventRunModal 33 UIKitCore 0xbca75c -[UIApplication _run] 34 UIKitCore 0xbcffcc UIApplicationMain 35 Впрок 0x5ec4 main + 24 (AppDelegate.swift:24) 36 libdyld.dylib 0x1cf8 start

eberkovich commented 1 year ago
pobortsevv commented 1 year ago

1) Из лога можно понять, что ошибка возникает на стадии инита YMKMapView (8) 2) Нет, не может, он вызывается прям перед инитом YMKMapView 3) Это девайс, причём только iOS 14. На симуляторе всё работает

eberkovich commented 1 year ago

Из лога можно понять, что ошибка возникает на стадии инита YMKMapView (8)

Этого недостаточно, нужен текст асерта и желательно содержимое лога.

pobortsevv commented 1 year ago

Эти логи приходят в Crashlytics с устройств пользователей, у нас воспроизвести не получается. По сути, это всё что у нас есть