Bug 2022732

Summary: [abrt] pronterface: __init__(): gviz.py:196:__init__:TypeError: Pen(): arguments did not match any overloaded call:
Product: [Fedora] Fedora Reporter: John Duchek <johnduchek>
Component: printrunAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: bperkins, mhroncok
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/ca4ee86d775af8338268aaa6b5ba54e9d7687d00
Whiteboard: abrt_hash:468e119799016036290f0eb91efe11da92864373;VARIANT_ID=xfce;
Fixed In Version: printrun-2.0.0-0.20.rc8.fc36 printrun-2.0.0-0.20.rc8.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-27 01:09:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1890881    
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description John Duchek 2021-11-12 13:14:22 UTC
Description of problem:
just ran pronterface; it is working in fed34

Version-Release number of selected component:
pronterface-1:2.0.0-0.19.rc5.fc35

Additional info:
reporter:       libreport-2.15.2
cmdline:        /usr/bin/python3 -s /usr/bin/pronterface
crash_function: __init__
exception_type: TypeError
executable:     /usr/bin/pronterface
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.14.16-301.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
gviz.py:196:__init__: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'

Traceback (most recent call last):
  File "/usr/bin/pronterface", line 62, in <module>
    app = PronterApp(False)
  File "/usr/lib64/python3.10/site-packages/printrun/pronterface.py", line 2388, in __init__
    self.mainwindow = PronterWindow(self)
  File "/usr/lib64/python3.10/site-packages/printrun/pronterface.py", line 218, in __init__
    self.reload_ui()
  File "/usr/lib64/python3.10/site-packages/printrun/pronterface.py", line 294, in reload_ui
    self.createGui(self.settings.uimode == _("Compact"),
  File "/usr/lib64/python3.10/site-packages/printrun/gui/__init__.py", line 255, in createGui
    viz_pane = VizPane(self, vizpanel)
  File "/usr/lib64/python3.10/site-packages/printrun/gui/viz.py", line 103, in __init__
    root.gwindow = gviz.GvizWindow(build_dimensions = root.build_dimensions_list,
  File "/usr/lib64/python3.10/site-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/lib64/python3.10/site-packages/printrun/gviz.py", line 196, 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'

Local variables in innermost frame:
self: <printrun.gviz.Gviz object at 0x7fe6a3a48670>
parent: <wx._core.Panel object at 0x7fe6a3a48430>
size: [600, 600]
build_dimensions: [200.0, 200.0, 100.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
grid: (10.0, 50.0)
extrusion_width: 0.5
bgcolor: '#FFFFFF'
realparent: <printrun.gviz.GvizWindow object at 0x7fe6a3a481f0>
ratio: 1.0
penwidth: 1.4975

Comment 1 John Duchek 2021-11-12 13:14:24 UTC
Created attachment 1841436 [details]
File: backtrace

Comment 2 John Duchek 2021-11-12 13:14:25 UTC
Created attachment 1841437 [details]
File: cgroup

Comment 3 John Duchek 2021-11-12 13:14:26 UTC
Created attachment 1841438 [details]
File: cpuinfo

Comment 4 John Duchek 2021-11-12 13:14:27 UTC
Created attachment 1841439 [details]
File: environ

Comment 5 John Duchek 2021-11-12 13:14:28 UTC
Created attachment 1841440 [details]
File: mountinfo

Comment 6 John Duchek 2021-11-12 13:14:29 UTC
Created attachment 1841441 [details]
File: namespaces

Comment 7 John Duchek 2021-11-12 13:14:30 UTC
Created attachment 1841442 [details]
File: open_fds

Comment 8 Miro Hrončok 2021-11-12 14:04:27 UTC
We need to round penwidth.

Comment 12 Fedora Update System 2021-11-18 10:58:56 UTC
FEDORA-2021-d883f5d3fb has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d883f5d3fb

Comment 13 Fedora Update System 2021-11-18 11:00:43 UTC
FEDORA-2021-d883f5d3fb has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2021-11-18 12:26:53 UTC
FEDORA-2021-e669ae4175 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e669ae4175

Comment 15 Fedora Update System 2021-11-19 19:09:28 UTC
FEDORA-2021-e669ae4175 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e669ae4175`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e669ae4175

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2021-11-27 01:09:23 UTC
FEDORA-2021-e669ae4175 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.