Skip to content

Serial Monitor stops printing output #2618

Open
@galinawind

Description

@galinawind

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

  1. Connect Adafruit Feather RP2040 and NeoKey 1x4 with a StemmaQT cable.
  2. Plug the lot into the USB port.
  3. Upload the basic_callback sketch to the Adafruit Feather RP2040 board.
  4. Push the buttons on the NeoKey 1x4 a couple of times so that you see the printouts.
  5. Navigate away from the IDE to a web browser, or any other window.
  6. Come back to the IDE
    🐛 Nothing is being printed anymore.
  7. Change the baud rate from the drop-down menu on the serial monitor.
    You will see that the printouts are appearing again.
  8. 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

Metadata

Metadata

Assignees

Labels

status: waiting for informationMore information must be provided before work can proceedtopic: codeRelated to content of the project itselftopic: serial monitorRelated to the Serial Monitortype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions