Bug 2225531

Summary: qt5-qtpbfimageformat causes some qt-applications to crash
Product: [Fedora] Fedora Reporter: tk20
Component: qt5-qtpbfimageformatAssignee: Nikola Forró <nforro>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: nforro, tumic
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-28 13:35:17 UTC Type: Bug
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
gdb /usr/bin/ghostwriter 2>&1 | tee ~/ghostwriter.log none

Description tk20 2023-07-25 13:36:01 UTC
Created attachment 1977475 [details]
gdb /usr/bin/ghostwriter 2>&1 | tee ~/ghostwriter.log

Description of problem:
Having qt5-qtpbfimageformat installed can cause some Qt-applications to abort during startup.

Version-Release number of selected component (if applicable):
qt5-qtpbfimageformat-2.3-9.fc38.x86_64  

How reproducible:
Reliably

Steps to Reproduce:
1. Install qt5-qtpbfimageformat
2. Install ghostwriter
3. Start ghostwriter

Actual results:
QFontDatabase: Must construct a QGuiApplication before accessing QFontDatabase
Aborted (core dumped)

Expected results:
Ghostwriter starts as intended.

Additional info:
Uninstalling qt5-qtpbfimageformat fixes the issue
This issue has been discussed before upstream: https://github.com/tumic0/QtPBFImagePlugin/issues/7
Attached is the output of gdb /usr/bin/ghostwriter 2>&1 | tee ~/ghostwriter.log

Comment 1 Martin Tůma 2023-11-23 09:15:43 UTC
This is not a bug in qt5-qtpbfimageformat but a bug in ghostwriter which is broken in the exact way as the Qt assert it triggers says:

> Must construct a QGuiApplication before accessing QFontDatabase

In markdowneditor.cpp:179 ghostwriter calls the QImage API (through the static function buildImageReaderFormats() ) before QGuiApplication is created.

Comment 2 Aoife Moloney 2024-05-28 13:35:17 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.