Bug 2027811

Summary: [abrt] frescobaldi: readSettings(): browser.py:102:readSettings:TypeError: setFontSize(self, QWebEngineSettings.FontSize, int): argument 2 has unexpected type 'float'
Product: [Fedora] Fedora Reporter: Trond Aasan <trond.aasan>
Component: frescobaldiAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: fede, gwync, oget.fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/683f80e64b7b7ad8799ced685de80aa73d134b9d
Whiteboard: abrt_hash:4d1464c9928061d9f95afbeb8e9caefc35a9dfb4;VARIANT_ID=kde;
Fixed In Version: frescobaldi-3.1.3-7.fc35 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-12 01:23:28 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:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
frescobaldi configuration none

Description Trond Aasan 2021-11-30 18:28:27 UTC
Description of problem:
Launch program. Crashes immediately

Version-Release number of selected component:
frescobaldi-3.1.3-6.fc35

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.frescobaldi.Frescobaldi-103559.scope
cmdline:        /usr/bin/python3 /usr/bin/frescobaldi
crash_function: readSettings
exception_type: TypeError
executable:     /usr/bin/frescobaldi
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.15.4-201.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
browser.py:102:readSettings:TypeError: setFontSize(self, QWebEngineSettings.FontSize, int): argument 2 has unexpected type 'float'

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/panel.py", line 64, in sizeHint
    self.widget()
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/panel.py", line 71, in widget
    w = self.createWidget()
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/docbrowser/__init__.py", line 56, in createWidget
    return browser.Browser(self)
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/docbrowser/browser.py", line 86, in __init__
    self.readSettings()
  File "/usr/lib/python3.10/site-packages/frescobaldi_app/docbrowser/browser.py", line 102, in readSettings
    ws.setFontSize(QWebEngineSettings.DefaultFixedFontSize, fixed.pointSizeF() * 96 / 72)
TypeError: setFontSize(self, QWebEngineSettings.FontSize, int): argument 2 has unexpected type 'float'

Local variables in innermost frame:
self: <docbrowser.browser.Browser object at 0x7f115763f760>
s: <PyQt5.QtCore.QSettings object at 0x7f1157585d80>
ws: <PyQt5.QtWebEngineWidgets.QWebEngineSettings object at 0x7f115755d230>
family: 'Sans Serif'
size: 16
fixed: <PyQt5.QtGui.QFont object at 0x7f1157683ed0>

Comment 1 Trond Aasan 2021-11-30 18:28:30 UTC
Created attachment 1844230 [details]
File: backtrace

Comment 2 Trond Aasan 2021-11-30 18:28:31 UTC
Created attachment 1844231 [details]
File: cpuinfo

Comment 3 Trond Aasan 2021-11-30 18:28:32 UTC
Created attachment 1844232 [details]
File: environ

Comment 4 Trond Aasan 2021-11-30 18:28:34 UTC
Created attachment 1844233 [details]
File: mountinfo

Comment 5 Trond Aasan 2021-11-30 18:28:35 UTC
Created attachment 1844234 [details]
File: namespaces

Comment 6 Trond Aasan 2021-11-30 18:28:36 UTC
Created attachment 1844235 [details]
File: open_fds

Comment 7 Trond Aasan 2021-11-30 18:38:33 UTC
Created attachment 1844237 [details]
frescobaldi configuration

This is the config file from an older version. If I delete this file, frescobaldi will start normally.

Comment 8 Fedora Update System 2022-01-05 20:29:54 UTC
FEDORA-2022-3cc3d2d29f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3cc3d2d29f

Comment 9 Fedora Update System 2022-01-06 01:53:59 UTC
FEDORA-2022-3cc3d2d29f 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-2022-3cc3d2d29f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-3cc3d2d29f

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

Comment 10 Fedora Update System 2022-01-12 01:23:28 UTC
FEDORA-2022-3cc3d2d29f has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.