Android/iOS native SDKs crashes on some PBF files
doubotis opened this issue · 0 comments
Describe the bug
When generating the planet MBTiles, some generated PBF files makes the Maplibre GL Native library to crash with a std::runtime error :
feature referenced out of range key
I attached a sample of a PBF file that triggers the crash : 5512.pbf.zip. Tile coordinate is 8445,5512,14.
If you need the MBTiles that contains this PBF and the styling, I can host it.
The PBF file is reported as a valid Vector Mapbox Tile.
This file is read without any problem by the Javascript library maplibre-gl-js.
Additional tries
We tried the same generation of planet MBTiles, but with a restricted BBOX. Same issue occured.
Additional context
Only thing we have changed from the repos source is the shared memory of the postgres database docker container. We put 1GB of shared memory.
It seems the issue is bound to some duplicated properties on some PBF files, but I can't tell how to solve the issue.
The reported crash message seems to be located here. I have found some evidences on this bug report too. Sadly, i struggle to decide if I have to solve the issue from Maplibre GL Native or if this is the MBTiles's fault.
For reference, I filled the issue in maplibre-gl-native git repos too (as this is where the crash occurs).