protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Raised STORAGE_ERROR when .proto file is big

Open ghost opened this issue 3 years ago • 4 comments

raised STORAGE_ERROR : stack overflow or erroneous memory access --ada_out: protoc-gen-ada: Plugin failed with status code 1.

I get this error when trying big .proto file. If I reduce the amount of data in the file then the error disappears.

ghost avatar Nov 22 '22 21:11 ghost

Could you provide .proto file or backtrace?

reznikmm avatar Nov 22 '22 21:11 reznikmm

instruments.zip

ghost avatar Nov 22 '22 21:11 ghost

First thing I'd try is to increment the environment task stack size, for example, on Linux that is controlled using:

ulimit -s <new-limit>

or even:

ulimit -s unlimited

mgrojo avatar Nov 22 '22 22:11 mgrojo

@mgrojo is right. With ulimit -s 9216 (or more) it works. The reason is pretty printer fails to format the code. I'll think how to avoid this.

reznikmm avatar Nov 23 '22 11:11 reznikmm