com.google.protobuf.InvalidProtocolBufferException: CodedInputStream encountered a malformed varint.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Glensimar Garcia, 1 year ago
CodedInputStream encountered a malformed varint.
via Stack Overflow by DarkAnthey
, 1 year ago
CodedInputStream encountered a malformed varint.
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.(Osmformat.java:9269)
at org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes.(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 org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup.(Osmformat.java:3428)
at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup.(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 org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.(Osmformat.java:2421)
at org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.(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 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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.