Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of Serial Monitor content without line break causes IDE to become unresponsive #934

Open
3 tasks done
per1234 opened this issue Apr 1, 2022 · 2 comments
Open
3 tasks done
Assignees
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

Comments

@per1234
Copy link
Contributor

per1234 commented Apr 1, 2022

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

  • Any Arduino board

Steps

  1. Upload the following sketch to the Arduino board:
    void setup() {
      Serial.begin(115200);
    }
    void loop() {
      Serial.print("hello");
    }
  2. Open the "Serial Monitor" view.
  3. Select "115200 baud" from the dropdown baud rate menu at the top right corner of the "Serial Monitor" view.
  4. Wait a couple minutes.
    It will likely occur much sooner than that, especially with a board that has native USB capability
  5. Try to use the Arduino IDE UI.

🐛 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

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: serial monitor Related to the Serial Monitor labels Apr 1, 2022
@ubidefeo
Copy link

@per1234
how does RC7 behave on this?

@per1234
Copy link
Contributor Author

per1234 commented Jun 13, 2022

@ubidefeo still same problem with 2.0.0-rc7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants