Crash in MKPuckAccuracyLayer _updateColors due to CFStringGetLength (iOS)
評価
この issue はまだ評価されていません。
説明
Describe the bug
I am experiencing a crash on iOS when using apple_maps_flutter. The crash occurs on the main thread and seems related to the internal MKPuckAccuracyLayer updating its colors. The stack trace shows a failure in CFStringGetLength downstream of [_MKPuckAccuracyLayer _updateColors]. This appears to be a conflict or race condition when the plugin manually starts location updates while myLocationEnabled is also set to true.
To Reproduce
Steps to reproduce the behavior:
- Initialize
AppleMapwithmyLocationEnabled: true. - Run the application on a physical iOS device.
- Ensure location permissions are granted and the user location puck is visible.
- Stress test the UI by toggling system appearance (Dark/Light mode) or repeatedly backgrounding/foregrounding the app while moving.
- See error: App crashes with
EXC_BAD_ACCESSinCFStringGetLength.
Crashed: com.apple.main-thread
0 CoreFoundation 0x5650 CFStringGetLength + 8
...
6 MapKit 0x55e0c +[UIColor(MKAdditions) _mapkit_colorNamed:compatibleWithTraitCollection:] + 88
7 MapKit 0xf5fc -[_MKPuckAccuracyLayer _updateColors] + 628
Expected behavior
The application should not crash when displaying the user location, regardless of theme changes or location updates.
Screenshots
N/A
Smartphone (please complete the following information):
- Device: e.g. iPhone 14
- Version e.g. iOS 18.6.2
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.38.3, on macOS 15.7.3 24G419 darwin-arm64, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Connected device (5 available)
[✓] Network resources
• No issues found!
- 主要言語
- Dart
- スター
- 84
- フォーク
- 120
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fluttercommunity/apple_maps_flutter のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
fluttercommunity/apple_maps_flutter#85 · コメント 8 件 · リアクション 5 件 ·
-
incorrect zoom when turning the camera programmatically on the map再び着手できるかも @LuisThein が 343 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
fluttercommunity/apple_maps_flutter#79 · 担当者 1 名 ·
-
Apple maps consumes more CPU and memory than google maps再び着手できるかも @LuisThein が 446 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
fluttercommunity/apple_maps_flutter#78 · 担当者 1 名 ·
-
Add option to manually set light/dark appearance (overrideUserInterfaceStyle)対応中かも @LuisThein が 505 日前に担当しました。 オープンenhancement
fluttercommunity/apple_maps_flutter#77 · コメント 2 件 · リアクション 1 件 · 担当者 1 名 ·
fluttercommunity/apple_maps_flutter の issue をすべて見る
似ている issue
-
area/ci-build bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
DarkFlippers/qUnleashed#423 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
google/skills_lint.dart#152 ·
メンテナーはふだん 1 日以内に返信
-
Docs: correct the unbuilt "full re-verify" claim and three untrue sync comments対応中かも @ibanner56 が今日担当しました。 オープンarea: sync priority: low severity: trivial type: docs
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ibanner56/CallersCompendium#1942 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: 编辑器替换栏关闭按钮错位オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
appshubcc/Bettbox#584 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信