-
Notifications
You must be signed in to change notification settings - Fork 999
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
Unstable behavior if there's no controlling terminal #1389
Comments
Looks like wxPython is at 4.2.0. Pyglet is at 1.5.27, and the system runs Python 3.11 by default.
Wouldn't that only apply if I were running my own build? I'm not - I'm running the package found in the Debian Bookworm repo. The above are what got pulled-in when I installed it. |
Correct and this is why it will not run w/o errors. This is why @rockstorm101, Issue #1390, and I recommend to run Pronterface from actual source files with virtual environment. W/o this workaround it will not run with Debian. More I can't offer for now. |
Which I would be doing if I could. |
I'm using Pronterface 2.0.0rc8 from Debian Bookworm repository, desktop environment is XFCE 4.18.
If Pronterface is started in such a way that there is no controlling terminal to which the program can send its usual output, it....um....gets upset 😛 and throws errors to its own console like crazy. For example, this happens at startup:
Many of the buttons and widgets also emit similar error messages, though they DO work.
If I start a print, that works too, despite the errors.
However, if I send a command to the printer, whether a print is going or not, the entire UI deadlocks. If there's a print going, it keeps on going, at least for a while, so the underlying USB comms and control still works just fine, only the UI dies. See also #1392.
This wasn't a problem under Debian Bullseye, but I'm using Bookworm now, so apparently something has changed in the system such that there's no default system console or other sink for terminal messages to go to, or at least whatever it is now isn't to Pronterface's liking.
All of this goes away if I simply launch the program from an ordinary terminal, so I've tweaked my desktop's launcher to do just that. A terminal is super fast to start and to exit, that terminal is minimized at launch since I don't need to see it, and it goes away on its own when Pronterface exits, so the only downside of this workaround is that I end up with an extra terminal item in my panel/taskbar when Pronterface is running.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: