Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error "BlobHeader size invalid" when input filename contains dots #74

Open
mtmail opened this issue Jul 15, 2013 · 0 comments
Open

error "BlobHeader size invalid" when input filename contains dots #74

mtmail opened this issue Jul 15, 2013 · 0 comments

Comments

@mtmail
Copy link

mtmail commented Jul 15, 2013

There is special logic for handling filenames containing dots in order to identify .osm.bz2 and other compression formats.
https://github.com/joto/osmium/blob/master/include/osmium/osmfile.hpp#L457

This fails when the input filename is for example 'some.body.osm'. The error message is "what(): BlobHeader size invalid:1010792557 Aborted (core dumped)"

Test case:
~/osm-tools/osmium/osmjs/osmjs -j ~/osm-tools/osmium/osmjs/js/testgeom.js /tmp/palermo.streets.osm

I don't know if it worth adding more logic or simply let it fail with a more descriptive error message. The work-around for me (renaming the input file) was trivial :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant