kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.36k stars 995 forks source link

RuntimeError: wrapped C/C++ object of type GcodeViewPanel has been deleted #1304

Open rockstorm101 opened 1 year ago

rockstorm101 commented 1 year ago

Steps to reproduce

Error

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/wx/core.py", line 3427, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rock/Projects/printrun/rockintrun/printrun/gl/panel.py", line 139, in Refresh
    return super().Refresh(eraseback)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type GcodeViewPanel has been deleted

System Info

hroncok commented 1 year ago

I can reproduce this with Fedora's pronterface (2.0.0rc8 with some commits on top).

Funnily enough only without ~/.pronsolerc. When I try to get a new one, no matter what I do in the app, the file is not created.

rockstorm101 commented 1 year ago

Funnily enough only without ~/.pronsolerc. When I try to get a new one, no matter what I do in the app, the file is not created.

Isn't that expected? When there is no ~/.pronsolerc the new configuration file is created at ~/.config/Printrun/pronsolerc instead.

hroncok commented 1 year ago

Aha!