com.google.protobuf.InvalidProtocolBufferException

CodedInputStream encountered a malformed varint.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Unknown by Glensimar Garcia,
  • via Stack Overflow by DarkAnthey
    ,
  • Stack trace

    • com.google.protobuf.InvalidProtocolBufferException: CodedInputStream encountered a malformed varint. at com.google.protobuf.InvalidProtocolBufferException.malformedVarint(InvalidProtocolBufferException.java:84) at com.google.protobuf.CodedInputStream.readRawVarint64SlowPath(CodedInputStream.java:784) at com.google.protobuf.CodedInputStream.readRawVarint64(CodedInputStream.java:770) at com.google.protobuf.CodedInputStream.readSInt64(CodedInputStream.java:590) at org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes.<init>(Osmformat.java:9269) at org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes.<init>(Osmformat.java:9172) at org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes$1.parsePartialFrom(Osmformat.java:9352) at org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes$1.parsePartialFrom(Osmformat.java:9347) at com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:495) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup.<init>(Osmformat.java:3428) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup.<init>(Osmformat.java:3368) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup$1.parsePartialFrom(Osmformat.java:3496) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup$1.parsePartialFrom(Osmformat.java:3491) at com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:495) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.<init>(Osmformat.java:2421) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.<init>(Osmformat.java:2356) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock$1.parsePartialFrom(Osmformat.java:2471) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock$1.parsePartialFrom(Osmformat.java:2466) at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:104) at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:124) at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:129) at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49) at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.parseFrom(Osmformat.java:2712) at org.openstreetmap.osmosis.osmbinary.BinaryParser.handleBlock(BinaryParser.java:66) at org.openstreetmap.osmosis.osmbinary.file.FileBlock.process(FileBlock.java:135) at org.openstreetmap.osmosis.osmbinary.file.BlockInputStream.process(BlockInputStream.java:34) at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:45) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,