kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pronterface GUI becomes unresponsive while printing, need to kill the app

hroncok opened this issue · comments

Hey folks. I've finally dusted off my Lulzbot Mini and decided to use the Fedora-packaged Pronterface on Fedora 37 (2.0.0rc8 with #1224 and #1262, Python 3.11.1, wxpython 4.2.0, pyserial 3.5, Xfce and hence X11 and not Wayland).

Pronterface allows me to connect to the printer, manually control it and start the print.
After several minutes of printing, while working on other stuff when the Pronterface window is not visible on my desktop when I switch back, the GUI is unresponsive -- in fact, the window is "empty" (it keeps the content of whatever was on the screen before I switched to it). The print however goes on. When the print is finished, the app remains unresponsive.

The terminal I used to start the Pronterface is riddled with Attempted to write invalid text to console, which could be due to an invalid baudrate (but my baudrate is OK).

Considering this is printed on any exception, I suspect something is happening there:

except:
self.log(_("Attempted to write invalid text to console, which could be due to an invalid baudrate"))

I will log the actual exception and see if I debug this further. I have a strong suspicion this will turn out to be yet another float/int issue.

My cat looking at the ongoing print (not really relevant)

_

As expected:

Traceback (most recent call last):
  File "/usr/lib64/python3.11/site-packages/printrun/pronterface.py", line 763, in addtexttolog
    self.logbox.Remove(0, current_length / 10)
TypeError: TextEntry.Remove(): argument 2 has unexpected type 'float'

Interesting, I don't see it for Python 3.10 on windows. I plan to switch to Python 3.11, so I should better look for it too.

The console needs to be visible and the number of lines (?) already printed must be > 20000.

My Luzbot Mini spams the console with messages like:

ok N16224 P0 B3

...a lot.

I don't think this happens often.