This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Native crash when calling setGeoJson() from background thread after device rotation #11414
Labels
Android
Mapbox Maps SDK for Android
Core
The cross-platform C++ core, aka mbgl
performance
Speed, stability, CPU usage, memory usage, or power usage
Platform: Android
Mapbox SDK version: 5.5.0
I'm calling
source.setGeoJson(String json)
with a large Json string (~4Mb json file) from a background thread to prevent unresponsive UI:When device is rotated before the
geoJsonSource.setGeoJson(largeGeoJsonString)
finishes executing, so the code above starts executing again (new thread started), the following native crash happens:This does not happen if
setGeoJson()
is called synchronously from the main thread.Hopefully this provides enough context. If not I'm happy provide more info. Thanks.
The text was updated successfully, but these errors were encountered: