Open tx46 opened 2 years ago
Hi @philiparvidsson, thanks for the report. I'd just like to confirm a few things:
Thanks!
After you import the module, does anything happen at all?
No.
Did the "live display" not appear?
It did not appear, correct.
Did you press any additional keys after the import to get the terminal into that state?
No.
Does the same behaviour happen if you run the module directly rather than importing it into the Python REPL?
Yes.
If you have access to Windows Terminal and could check if you can reproduce it on that instead of command prompt, that would be appreciated.
I don't have access to it. It seems the cause is crlf (\r) causing incorrect behavior in splitlines (or whatever it's called, line 1088 in text.py or something). So I don't think terminal matters. This doesn't crash on n*x because os.linesep has no \r in it.
I have tried it with Windows Terminal (both cmd and Powershell) and, for all practical purpose, it disable the Python interpreter when importing the file. Anything typed in is ignored except that exit()
is recognized.
Running python script.py
simply returns to the console prompt.
How to h4x?
After approx. 12 hours of debugging why my app is silently crashing, I have finally figured out the cause. Here's a minimal (non-)working example file for you to work on, lol. It only crashes on Windoze, and it does so in a really nasty way which seems to entirely screw up the Python runtime. Line 1088 in one of the rich source files may be related.
Screenshot
Platform
Windows 10 Command Prompt in a VM, but also tested on live Windows 10 system. Does not crash on Linux.