conveyal / osm-lib

A library for opening, updating and manipulating OSM files of any size.
BSD 2-Clause "Simplified" License
39 stars 13 forks source link

Corrupted vex format #13

Closed mattwigway closed 9 years ago

mattwigway commented 9 years ago

When I retrieve http://osm.conveyal.com/vex/42.3744,-71.0789,42.3892,-71.0505.vex and then try to read it, I get:

Exception in thread "Thread-1" java.lang.RuntimeException: Block has impossible compressed data size, it is probably corrupted.
    at com.conveyal.osmlib.VEXBlock.readHeader(VEXBlock.java:85)
    at com.conveyal.osmlib.VEXBlock.readDeflated(VEXBlock.java:41)
    at com.conveyal.osmlib.DeflatedBlockReader.run(DeflatedBlockReader.java:56)
    at java.lang.Thread.run(Thread.java:745)
mattwigway commented 9 years ago

The PBF output appears to be corrupted as well. I see a lot of these in the server logs:

15:19:51.672 ERROR (TileOSMSource.java:65) Way 323161778 is not available.

mattwigway commented 9 years ago

This was operator error, reading with the wrong version of the protobuf dependency.