cc.arduino.cli.commands.v1.ArduinoCoreService.Compile
gRPC method call hangs when there is a large quantity of stderr output
#2169
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
topic: gRPC
Related to the gRPC interface
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
The compilation operation never returns under the following conditions:
errStream
field of thecc.arduino.cli.commands.v1.ArduinoCoreService.Compile
response)To reproduce
Setup
Demo
run the following
grpcurl
commands in another terminal:🐛 The command never returns.
Expected behavior
cc.arduino.cli.commands.v1.ArduinoCoreService.Compile
method call always returns.Arduino CLI version
2a5c83a
Operating system
Windows
Operating system version
11
Additional context
I bisected the regression to eece582
I'm not able to reproduce the fault when I add the
--debug
flag to thearduino-cli daemon
invocation.I can also reproduce the fault using Arduino IDE, so it is not specific to grpcurl.
I am not able to reproduce the fault using the Arduino CLI command line interface (with either
text
output orjson
output).I am not able to reproduce the fault when compiling sketches the produce a large quantity of stdout compilation output.
Originally reported by @KurtE at https://forum.arduino.cc/t/build-with-lots-of-errors-hangs-arduino-process/1116008
Additional reports
Issue checklist
The text was updated successfully, but these errors were encountered: