-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CircuitPython writes to serial console over USB stop working after lots of output #2686
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
Code is here (messy and unfinished), both files needed, strip the I was using libraries from a bundle that looks like 22-Feb-2020 but seems unlikely these would have much impact on this type of bug? |
BTW, no implication here that this is guaranateed to be (up)time related, could be volume or flow control or something else... Control-C still functioning must be indicative of something. |
Just had this happen again after about maybe 30 mins. I'd added loads of print style debugging to some code. Stopped after printing the first of five arguments to This time around (on Win8.1) it's a little different. Reconnecting the terminal does not help. Control-C still works from the new session to I plugged a battery in (to keep device powered), then disconnected the USB at CLUE end and reconnected it and then reconnected. |
I've been doing a bit of tweaking to CP code any copying
The |
I just had this happen with very low volume printing. I'm starting to wonder if this is related to using Oh, I might be wrong there on the volume. |
I had a variant of this recently on
On closer inspection:
The
|
Just got this after a mere 15 seconds on a CLUE after a copying |
And a CPB running |
I just had a variant of this on
That double Traceback feels familiar (I was thinking of micropython#2056 but that's different), I think there's a ticket about something similar elsewhere. More interestingly there's some "random" junk in there,
I accessed a file and that triggered a reload and the application worked fine so I had to reset the board to be able to reconnect to the serial console over USB. |
FYI, I put something in the forums mainly to see if anyone else has come across this: Adafruit Forums: Garbled exception on code.py reload and broken serial consol. |
I just experienced this on 5.3.0 on a CLUE with a busy application but the possible trigger was lots of output over an hour or so plus it died during a powershell |
This has occurred a few times today with a Feather nRF52840 Express running CircuitPython 6.0.0 with minimal output across serial. It happens to be plugged into a Pimoroni Enviro+ FeatherWing with a PMS5003. |
I noticed one occasion where leaving an Adafruit CLUE running 5.0.0 beta 5 with some very verbose output to stdout for over an hour caused the terminal output to stop but the application continues merrily. I've just reproduced this with the same application/library code on 5.0.0 but it took approximately 130 minutes to do it.
The application is reading analogue values from P0-P2 and graphing them. It does not have the serial console active on the display. In both cases the application continued to run. PuTTY does not indicate the serial connection has closed. Control-C still works and takes the CLUE to the serial output on the LCD but with no output over USB. It says
KeyboardInterrupt:
as it normally does but does not respond to further typing, e.g. can't interact with REPL. Control-C and Control-D do nothing. In both cases theCIRCUITPY
drive remains accessible. In the first case the writes stopped after the first of two arguments to print which made me more suspicious of CP than the terminal program.I could continue interacting with the CLUE on both occasions. I could restart the code by coping a file onto CIRCUITPY. I could stop it with Control-C but still with no output to serial console, just the LCD when I hit Control-C. I've tried a Reset Terminal in PuTTY - nothing changed. I can disconnect
COM5
then reconnect and everything's then back to normal. The special treatment here for Control-C makes it feel less likely to be a terminal program issue too.Briefly discussed this with @dhalbert in Discord.
The text was updated successfully, but these errors were encountered: