Huh, I thought we did print a message there, but I guess not.
That said, you're the first person I've ever heard of who hit that limit
with (presumably) legitimate data. Consider designing you protocol
differently? The limit exists for security reasons (to avoid stack
overflows), so simply bumping it up isn't the best solution (though you can
probably increase it significantly before running any real risks).
On Sun, Dec 27, 2009 at 7:31 PM, Thomas Johnson
> Thanks for your help - I found that I was exceeding the recursion
> limit in CodedInputStream. I was able to instantiate my own
> CodedInputStream and increase the limit, but it would be nice if some
> sort of error was printed when the limit is exceeded.
> On Mon, Dec 28, 2009 at 9:52 AM, Kenton Varda <ken...@google.com> wrote:
> > ./configure CXXFLAGS='-O0 -ggdb3'
> > Instead of stepping through the protobuf code, though, I'd recommend is
> > you add some code to your own project to read the bytes directly from the
> > istream and then verify that they are the same bytes that were originally
> > produced by the protobuf serializer. You'll probably find that they are
> > different in some way, which will point you towards the problem.
> > On Sat, Dec 26, 2009 at 12:35 PM, Thomas Johnson
> > <thomas.j.john...@gmail.com> wrote:
> >> I've got a protobuf file that for some reason can't be loaded using
> >> ParseFromIStream. The function just returns false, without printing
> >> any error, and seems to deserialize only part of the message. How can
> >> I compile a debug version of protobuf (i.e. -O0 -ggdb3) to step
> >> through the code and find out what's going on?
> >> --
> >> You received this message because you are subscribed to the Google
> >> "Protocol Buffers" group.
> >> To post to this group, send email to proto...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> >> For more options, visit this group at
> >> http://groups.google.com/group/protobuf?hl=en.
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at