https://bugs.kde.org/show_bug.cgi?id=487628

Stefan Brüns <stefan.bru...@rwth-aachen.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stefan.bruens@rwth-aachen.d
                   |                            |e

--- Comment #9 from Stefan Brüns <stefan.bru...@rwth-aachen.de> ---
Apparently the KFileMetaData PNG extractor crashes when trying to extract
metadata from a file.

The problem is the Qt PBF plugin, notable lines from the backtrace:

----
#12 0x00007c88e588ce5b in QMessageLogger::fatal
(this=this@entry=0x7ffe640369b0, msg=msg@entry=0x7c88e4f00890 "QFontDatabase:
Must construct a QGuiApplication before accessing QFontDatabase") at
/usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:889
#13 0x00007c88e48e2220 in QFontDatabasePrivate::ensureFontDatabase () at
/usr/src/debug/qt6-base/qtbase/src/gui/text/qfontdatabase.cpp:1333
#20 0x00007c48cf7b599a in Style::load (this=<optimized out>, fileName=...) at
../QtPBFImagePlugin-3.0/src/style.cpp:598
#21 0x00007c48cf7aaf66 in PBFPlugin::PBFPlugin (this=0x55b64f663120,
this=<optimized out>) at ../QtPBFImagePlugin-3.0/src/pbfplugin.cpp:16
#23 0x00007c88e5b9f6c3 in QLibraryPrivate::pluginInstance (this=0x55b64f6bdb00)
at /usr/src/debug/qt6-base/qtbase/src/corelib/plugin/qlibrary.cpp:516
#27 0x00007c88e493fb58 in QImageReader::canRead
(this=this@entry=0x7ffe64038368) at
/usr/src/debug/qt6-base/qtbase/src/gui/image/qimagereader.cpp:1123
---

IMHO, the Qt PBF plugin is misbehaving here, as it violates the contract from
QImageReader:

https://doc.qt.io/qt-6/qimagereader.html#canRead
> canRead() is a lightweight function that only does a quick test to see if the 
> image data is valid.

This is a known problem of the PBF plugin:
https://github.com/tumic0/QtPBFImagePlugin/issues/7

baloo_file_extractor was changed from QGuiApplication to QCoreApplication
recently:
https://invent.kde.org/frameworks/baloo/-/merge_requests/192

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to