Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pobortsevv opened this issue Aug 22, 2022 · 4 comments
Open

Comments

@pobortsevv
Copy link

После перехода на версию 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
Copy link

  • А какой текст асерта, он наверное есть в логе, и вообще, что в логе?
  • Не может быть такого, что иногда в момент создания YMKMapView не вызван Mapkit.setApiKey()?
  • Это девайс или эмулятор?

@pobortsevv
Copy link
Author

pobortsevv commented Sep 13, 2022

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

@eberkovich
Copy link

eberkovich commented Sep 13, 2022

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

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

@pobortsevv
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants