[Bug] print() while the hub is disconnected can briefly hang the hub. #738
Labels
bug
Something isn't working
hub: primehub/inventorhub
Issues related to the LEGO SPIKE Prime hub and LEGO MINDSTORMS Robot Invetor hub
software: pybricks-micropython
Issues with Pybricks MicroPython firmware (or EV3 runtime)
Describe the bug
Doing a lot of
print
statements while the hub is disconnected can briefly hang the hub.The data is supposed to be ignored when the buffer is full but apparently that is not quite happening as intended.
To reproduce, run this on a SPIKE "drivebase", or just attach two motors and let them spin freely. Run it without Pybricks Code connected. When it starts printing at the end, you can consistently see the 3x3 matrix animation get stuck briefly.
Occasionally (not often), it also pushes the motors out of sync (#679), which is how I first noticed this.
The text was updated successfully, but these errors were encountered: