Severe SDK Issue.
This is extremely frustrating. Can we please get a stable version of this SDK that actually works as expected?
These issues are affecting many developers, and it’s hard to rely on this package in production environments. Either the SDK needs proper maintenance, or it should not be listed as Flutter-compatible until stable.
We’re consistently running into critical errors like:
❌ 1. When calling loadStyleURI [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.mapbox_maps_flutter._MapInterface.loadStyleURI.0", null, null)
#0 _MapInterface.loadStyleURI (package:mapbox_maps_flutter/src/pigeons/map_interfaces.dart:4514:7) ❌ 2. When calling map.flyTo Similar PlatformException(channel-error) is thrown, preventing camera movement and breaking core functionality.
Our clients are losing trust, and this is causing serious delays in our projects. These issues seem to be widespread — please prioritize resolving them.
If this SDK is not ready for stable use, that should be clearly communicated.
Absolutely! There are numerous app crashing bugs in the current version as of June 25, and the documentation is insufficient. Specifically, PointAnnotationManager and related features give me a hell of a time.
Hi @iSaqibShafique and @alkndoom -
Thanks for sharing these reports. Can you confirm which version you are seeing these issues with? The latest version is 2.8.0.
We consider the Mapbox Flutter SDK stable and any crashes, especially in production, are not acceptable.
To investigate these reports of issues with loadStyleURI, flyTo, and PointAnnotationManager please provide reproduction steps and additional information so that we can investigate them on our side. In particular, for these issues it would be helpful to know:
- Whether these issues affect iOS and Android, or just one platform
- Which StyleURI you are loading
- How you are using
flyTo(which coordinates are you flying to) - How you are using the point annotation manager
- Which specific versions of the SDK you are using when you see these issues
The more information you can provide the better.
@pjleonard37
A new bug - I navigate to safari in my physical iPhone - App crashed. Why? Because I trusted & used MapBox. Bro that was my worst mistake. Will never use nor recommend.
Error.
[mapbox-maps-flutter] [Info, events_service]: Queue is empty, nothing to flush [mapbox-maps-flutter] [Error, maps-ios/Location]: MapboxMaps.AppleLocationProvider did fail with error: Error Domain=kCLErrorDomain Code=1 "(null)" [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: The operation couldn’t be completed. (kCLErrorDomain error 1.)
Hi @iSaqibShafique --
There is not enough detail in your report for us to investigate further. If you provide the information requested here we can take a deeper look.
More generally, I recommend you explore our documentation and examples, which demonstrate best practices for working with the Mapbox Maps Flutter SDK. If you need additional assistance I recommend you take advantage of Mapbox's support resources. You can learn more about them here: https://www.mapbox.com/support.
I have experienced the same issue on 2.8.0, intermittently on one project, consistently on another, can't really pinpoint the difference in how I'm handling the map lifecycle in both projects. I also experience this in production builds on iOS (have not checked Android yet) on a released project that previously worked, getting a black map, no crash luckily, on any style including built-in ones.
Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.32.4, on macOS 14.6.1 23G93 darwin-arm64, locale en-BE) [✓] 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 [✓] Android Studio (version 2021.1) [✓] IntelliJ IDEA Community Edition (version 2021.2.3) [✓] VS Code (version 1.101.0) [✓] Connected device (6 available) [✓] Network resources