pronterface crashes

Bug #2045487 reported by Paul Loewenstein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical SSO provider
New
Undecided
Unassigned

Bug Description

pronterface (part of printrun package) crashes with:

WARNING:root:RPC server bound on non-default port 7981
Traceback (most recent call last):
  File "/usr/bin/pronterface", line 62, in <module>
    app = PronterApp(False)
  File "/usr/lib/python3/dist-packages/printrun/pronterface.py", line 2439, in __init__
    self.mainwindow = PronterWindow(self)
  File "/usr/lib/python3/dist-packages/printrun/pronterface.py", line 207, in __init__
    self.reload_ui()
  File "/usr/lib/python3/dist-packages/printrun/pronterface.py", line 281, in reload_ui
    self.createGui(self.settings.uimode == _("Compact"),
  File "/usr/lib/python3/dist-packages/printrun/gui/__init__.py", line 259, in createGui
    viz_pane = VizPane(self, vizpanel)
  File "/usr/lib/python3/dist-packages/printrun/gui/viz.py", line 115, in __init__
    root.gwindow = gviz.GvizWindow(build_dimensions = root.build_dimensions_list,
  File "/usr/lib/python3/dist-packages/printrun/gviz.py", line 77, in __init__
    self.p = Gviz(panel, size = size, build_dimensions = build_dimensions, grid = grid, extrusion_width = extrusion_width, bgcolor = bgcolor, realparent = self)
  File "/usr/lib/python3/dist-packages/printrun/gviz.py", line 197, in __init__
    self.mainpen = wx.Pen(wx.Colour(0, 0, 0), penwidth)
TypeError: Pen(): arguments did not match any overloaded call:
  overload 1: too many arguments
  overload 2: argument 2 has unexpected type 'float'
  overload 3: argument 1 has unexpected type 'Colour'

This is a bug exposed by using an old version of printrun on python 3.10 (rather than 3.9).
This bug was fixed ages ago (I originally reported the same bug on Fedora, and was involved in testing the fix).

I suspect all you need to do is to update printrun in the Ubuntu repository to the current version from the printrun git. I am currently running their version of pronterface, which works fine.

Revision history for this message
Paul Loewenstein (paullionstone) wrote :

I have just found the issue on github:

https://github.com/kliment/Printrun/issues/1225

I reported it and it was fixed (almost immediately) 2 years ago!

The current issue with Ubuntu is mentioned twice near the bottom of that page.

Revision history for this message
Shane M. Pelletier (shanepelletier) wrote :

Hi there,

This project (canonical-identity-provider) is only for issues with the Ubuntu One Single Sign-On service, and the problem you describe does not seem to be directly with the sign-on service. In the future, it's best to report bugs against the actual package affected (in this case, https://bugs.launchpad.net/ubuntu/+source/printrun/).

I have found an existing bug that matches this description, so I have marked this bug as a duplicate. As some extra info, fixing this bug is perhaps more difficult than it may seem as it needs to go through the Stable Release Update (SRU) process documented here: https://wiki.ubuntu.com/StableReleaseUpdates. Unfortunately I do not have the capacity to help guide this through the SRU process, but the steps outlined there should help you or anyone else affected to do so.

- Shane

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.