Unact / yandex_mapkit

Flutter implementation of YandexMapkit
MIT License
132 stars 151 forks source link

App crashes if built with Xcode v15.2 #347

Closed justjew closed 4 months ago

justjew commented 4 months ago

If an app is built using with Xcode v15.2 (15C500b), it crashes on YandexMap widget trying to build. With older Xcode versions it worked well.

flutter: 3.13.7 (also not working on v3.16.7) yandex_mapkit: ^3.4.0 (also not working on v3.3.3)

NSInternalInconsistencyException
Map should have size > 0
Exception stack trace (top 20 entries):
  # 0: 15674872  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_14kqueue_reactorENS_17execution_contextEEEPNS4_7serviceEPv
  # 1: 15701260  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_14kqueue_reactorENS_17execution_contextEEEPNS4_7serviceEPv
  # 2: 15695840  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_14kqueue_reactorENS_17execution_contextEEEPNS4_7serviceEPv
  # 3: 15695700  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_14kqueue_reactorENS_17execution_contextEEEPNS4_7serviceEPv
  # 4: 15698640  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_14kqueue_reactorENS_17execution_contextEEEPNS4_7serviceEPv
  # 5: 23927548  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_27reactive_descriptor_serviceENS_10io_contextEEEPNS_17execution_context7serviceEPv
  # 6: 23927032  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_27reactive_descriptor_serviceENS_10io_contextEEEPNS_17execution_context7serviceEPv
  # 7: 23038820  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner _yandex_impl___ZN4asio6detail16service_registry6createINS0_27reactive_descriptor_serviceENS_10io_contextEEEPNS_17execution_context7serviceEPv
  # 8: 34130560  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner __cxa_throw
  # 9: 34128984  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner __cxa_throw
  #10: 34125912  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner __cxa_throw
  #11: 34116600  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner __cxa_throw
  #12: 34097296  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Runner __cxa_throw
  #13: 6119880  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Frameworks/Flutter.framework/Flutter 
  #14: 275856  /private/var/containers/Bundle/Application/0F32EACF-C9D5-4611-AB87-089D202A73FF/Runner.app/Frameworks/Flutter.framework/Flutter 
  #15: 9896  /usr/lib/system/libdispatch.dylib <redacted>
  #16: 17152  /usr/lib/system/libdispatch.dylib <redacted>
  #17: 76184  /usr/lib/system/libdispatch.dylib <redacted>
  #18: 75184  /usr/lib/system/libdispatch.dylib _dispatch_main_queue_callback_4CF
  #19: 225308  /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation <redacted>
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.7, on macOS 14.2.1 23C71 darwin-arm64, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (4 available)
    ! Error: Browsing on the local area network for iPhone (Дмитрий). Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

• No issues found!
DCrow commented 4 months ago

Duplicate #338

feronetick commented 3 months ago

"Map should have size > 0" у меня возникала при попытке подвинуть карту, когда я неправильно рассчитал boundingBox.

Edit: Я немного поспешил с выводами. Настоящей причиной была попытка подвинуть карту сразу после инициализации. Пока баг не исправили решить конкретно эту проблему можно не двигая карту сразу при получении контроллера.