tippecanoe icon indicating copy to clipboard operation
tippecanoe copied to clipboard

tile-join: unknown pbf field type exception

Open geeknik opened this issue 6 years ago • 3 comments

While testing tile-join built from commit 065cc1d I encountered the following SIGABRT which is interfering with our normal testing. Was curious if this is a bug or something else? The only changes we've made to tippecanoe is to link /home/user/tippecanoe/protozero to /home/user/protozero/include/protozero to ensure the protozero code was up to date.

Command line:

$ ./tile-join -pk -o /dev/shm/tmp99.mbtiles -j '{ "hrusgeojson": [ "!=", "value", "Undefined" ] }' test0000 --force

Output:

terminate called after throwing an instance of 'protozero::unknown_pbf_wire_type_exception'
  what():  unknown pbf field type exception
Aborted

test0000.gz

geeknik avatar Nov 19 '19 21:11 geeknik

I also have a couple of files that trigger the following errors if you're interested in receiving those. protozero::end_of_buffer_exception

protozero::invalid_tag_exception

geeknik avatar Nov 19 '19 22:11 geeknik

The test0000 mbtiles file appears to be corrupt in at least a couple of ways, so it does not surprise me that protozero also rejects PBFs within it as being invalid. Maybe I should add a try … catch block around the functions to give a better error message, though.

e-n-f avatar Nov 20 '19 18:11 e-n-f

It happens also when converting multiple geobuf into a pmtile. I have no idea what is happening. Ubuntu 22.04 LTS. tippecanoe installed from pypi. Files generated with ogr2ogr.

frafra avatar May 28 '25 15:05 frafra