-
-
Notifications
You must be signed in to change notification settings - Fork 431
Fast Serial Port reading makes the IDE cpu usage really high and crashes after some time #397
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
Comments
I had the same issue. If I leave the serial monitor running in the background, it sometimes crashes my computer. This issue could be solved by adding an adjustable line limit to the serial monitor. |
Hi @alessandromrc and @SuperBGLazer. Thanks for your report! There was some recent work to improve the performance and efficiency of the Serial Monitor. That work is in the Arduino IDE 2.0.0-beta.12 release. I find a significant reduction of CPU load when comparing Arduino IDE 2.0.0-beta.12 against the 2.0.0-beta.7 version @alessandromrc was using. Please give the latest version of Arduino IDE 2.x a try and let us know whether the issue is resolved for you. |
Hi @per1234, I can see that the efficiency of the serial monitor is really better but sometimes it loses messages and also it sometimes shows wrong data. I'm using the latest IDE version. |
I'm very glad to hear this!
Thanks for reporting that. Please open dedicated issues for these. There are some known issues with the Serial Monitor, listed here: I didn't spot one that matched with your "loses messages". There are a couple that might match to your "sometimes shows wrong data" though, so give that list a quick look in case the issue was already reported. |
Describe the bug
The bug is really annoying because it makes the IDE crash while you're reading a lot of data.
To Reproduce
Upload a sketch that prints a lot of data,
Open the serial monitor,
Check the CPU usage of the IDE and after some time it will crash
Expected behavior
I expect that the CPU usage won't be really high and that there's something like a garbage collector.
Screenshots
Desktop
The text was updated successfully, but these errors were encountered: