maplibre / maplibre-native

MapLibre Native - Interactive vector tile maps for iOS, Android and other platforms.
https://maplibre.org
BSD 2-Clause "Simplified" License
898 stars 274 forks source link

Crash in LineBucket::addGeometry() #2513

Open clinthidinger opened 2 weeks ago

clinthidinger commented 2 weeks ago

LineBucket::addGeometry() will crash in the lambda that sets "first" when "coordinates" is empty in line_bucket.cpp.

There are no consistent repro steps. I'm loading a vector mbtiles file and zooming to make it happen. The crash is intermittent.

I have not researched a proper solution. I have hacked in a check for empty that returns 0 from the lambda to keep moving.

louwers commented 2 weeks ago

It would be useful to know if you are using the legacy renderer or the drawable renderer.

clinthidinger commented 2 weeks ago

It looks like I have the legacy renderer enabled as I didn't change any of the cmake default options.