Description
Describe the problem
The serial monitor output works for anything in the setup() subroutine. The serial monitor stops working for anything in loop().
This problem started after I upgraded from Ubuntu 18.04 to Ubuntu 20.04 LTS.
I am doing a complicated operation set using a NeoKey 1x4 and I need to see that the buttons are registering callbacks correctly. I would start the program. If I immediately hit one of the keys, it would output for some time. If I pause for even a tiny bit, the serial monitor freezes. If I navigate to a web browser or something, the serial monitor freezes. I can un-freeze it temporarily by randomly changing the baud rate from the drop-down menu. Any change at all, to anything at all, unfreezes the monitor, but again, only temporarily.
To reproduce
- Connect Adafruit Feather RP2040 and NeoKey 1x4 with a StemmaQT cable.
- Plug the lot into the USB port.
- Upload the basic_callback sketch to the Adafruit Feather RP2040 board.
- Push the buttons on the NeoKey 1x4 a couple of times so that you see the printouts.
- Navigate away from the IDE to a web browser, or any other window.
- Come back to the IDE
🐛 Nothing is being printed anymore. - Change the baud rate from the drop-down menu on the serial monitor.
You will see that the printouts are appearing again. - Stop interacting for like a count of 5.
🐛 The serial monitor will freeze again.
Expected behavior
Serial Monitor does not freeze.
Arduino IDE version
2.3.2 and 2.3.4
Operating system
Linux
Operating system version
Ubuntu 20.04 LTS
Additional context
Discussion: https://forum.arduino.cc/t/arduino-ide-and-ubuntu-20-04-serial-monitor-problems/1345265
The fault does not occur when I use Serial Monitor on my Intel MacBook Pro.
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