Lots of Serial Monitor content without line break causes IDE to become unresponsive #934
Open
3 tasks done
Labels
topic: code
Related to content of the project itself
topic: serial monitor
Related to the Serial Monitor
type: imperfection
Perceived defect in any part of project
Describe the problem
If the Arduino board prints a large amount of data without a line break to Serial Monitor, the IDE becomes unresponsive.
To reproduce
Equipment
Steps
ⓘ It will likely occur much sooner than that, especially with a board that has native USB capability
🐛 The UI is unresponsive.
Expected behavior
Arduino IDE handles this condition gracefully.
That could even be a limit on the line length that will be displayed, since it is more likely that problematic line lengths would be caused by a missing line break in the sketch than intentionally formatting.
Arduino IDE version
Original report
2.0.0-rc5-snapshot-c9b498f
Last verified with
2.0.0-rc5-snapshot-df8658e (was not fixed by #982)
Operating system
Windows
Operating system version
10
Additional context
There were similar reports of Serial Monitor impact on CPU performance, but those were resolved by #524
Additional reports
Workaround
Adjust your sketch code so that it will produce line breaks as appropriate to avoid the output of excessively long lines.
For the sketch in the demo above, this would be accomplished by changing the
Serial.print
call toSerial.println
:Issue checklist
The text was updated successfully, but these errors were encountered: