-
Notifications
You must be signed in to change notification settings - Fork 1.3k
displayio REPL output on LCD can stop updating after a control-c on long output #2689
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 just experienced a variant of this or perhaps a different issue on CircuitPython 5.2.0. I tried to copy over The serial console was being written to by the application and that continued for a while but then did stop and go into the "no output, only accepting control-c" mode. After that I could copy files onto CIRCUITPY ok and it would trigger a restart of the application. The application froze and I'm guessing that's because it's blocked writing to the serial console. Reconnecting to the serial console over USB connects up but no output and oddly control-c doesn't even work. The reset button the boad saved the day. Actually re-reading this ticket, this is more like #2686. |
In relatively unusual circumstances, such as entering `l = 17 ** 17777` at the REPL, you could hit ctrl-c, but not get KeyboardInterrupt. This can lead to a condition where the display would stop updating (adafruit#2689).
In adafruit#2689, hitting ctrl-c during the printing of an object with a lot of sub-objects could cause the screen to stop updating (without showing a KeyboardInterrupt). This makes the printing of such objects acutally interruptable, and also correctly handles the KeyboardInterrupt: ``` >>> l = ["a" * 100] * 200 >>> l ['aaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaa', Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyboardInterrupt: >>> ```
I can't remember if control-c would actually interrupt the serial output on 5.0.0. I just tried this with lists and ulab arrays on 5.3.1 and control-c cannot interrupt a variable inspection from REPL over USB serial console. I suppose the memory constraints of these devices mean that the output will tend to complete in a reasonable amout of time for straightforward data structures. |
Uh oh!
There was an error while loading. Please reload this page.
If I inspect a huge array in CircuitPython
5.0.0
's REPL with the serial console output active on the LCD (on Adafruit CLUE) and interrupt the output with control-C "half" way through then the serial console over USB continues to work fine as expected but the LCD screen freezes and no longer updates.The text was updated successfully, but these errors were encountered: