-
Notifications
You must be signed in to change notification settings - Fork 815
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
Textual app silently crashes without printing exception to stdout #2027
Comments
I get a crash every time here too, both running directly, and with Textual DiagnosticsVersions
Python
Operating System
Terminal
Rich Console options
|
Dave gets the error every time, as expected. My |
Ah yeah I misread that, sorry |
Does not appear to be env variable related as Nice heisenbug, not sure how to deal with it if no one else can reproduce it though. Setting |
Here's my exact requirements if that helps
Really not sure that there's anything more that can be done. |
So it turns out that what's making this consistently print out errors is having the dev console attached. That's why I thought it was a feature of running with |
Well this looks like a pretty nasty race conditions, let me know if you need any help but I think that's about all I can provide. I'm doing this on a Dell G15 with an If you do anything to try and reduce race conditions let me know and I'll try running it on my laptop to see if it's gotten fixed, but I'm sure at some point one of you will start being able to reproduce it :p |
MacBook Pros with M1. |
Huh, I was confused by Maybe try using It's not exactly a big deal of a bug, there's a work around (attach dev console) and it doesn't really effect program functionality, but I have a feeling it's going to come back to bite you in a really annoying way sometimes down the line. |
I have two MacBook Pros. One an older Intel, one an M1. |
@traverseda What terminal are you running, and have you tried running it on anything else? |
Konsole (KDE built in terminal). I can also reproduce this in alacritty. |
To update: #2033 is in v0.15 and might be worth trying out. |
Fixed in v0.19.0 |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
what was the fix? |
Flushing stdout before writing the traceback. |
Workaround
I can't reproduce this when the dev console is attached. You can open the dev console in one terminal using
textual console
and launch your app withtextual run --dev <yourprogram.py>
in order to (probably) work around this issue.Open app, press A, no output on stdout. Weirdly I did get stdout errors once or twice, so apologies for the heisenbug. If you can't reproduce this I'll try posting my frozen dependencies and all that.
The text was updated successfully, but these errors were encountered: