Bug 488759

Summary: Baloo File Extractor Random Crashes...
Product: [Frameworks and Libraries] frameworks-baloo Reporter: vbhunt
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: tagwerk19
Priority: NOR Keywords: drkonqi
Version: 6.3.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description vbhunt 2024-06-19 20:34:51 UTC
Application: baloo_file_extractor (6.3.0)

Qt Version: 6.7.1
Frameworks Version: 6.3.0
Operating System: Linux 6.9.5-arch1-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 6.0.5 [CoredumpBackend]

-- Information about the crash:
Happened once just after rebooting, happened once randomly while surfing the web. Basically, I get a popup saying that the Baloo File Extractor has crashed. Since it's happened twice in the same day, I figured I would generate a backtrace and report it. No other unusual desktop behavior noticed. No other error popped up on the desktop when telling it to restart the app, either.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[New LWP 2520]
[New LWP 2521]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/kf6/baloo_file_extractor'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44	      return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7486920e3980 (LWP 2520))]

Cannot QML trace cores :(
[Current thread is 1 (Thread 0x7486920e3980 (LWP 2520))]

Thread 2 (Thread 0x74468f4006c0 (LWP 2521)):
#0  0x0000748693b1c39d in __GI___poll (fds=0x60d2f414f490, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007486929768fd in g_main_context_poll_unlocked (priority=2147483647, context=0x744688000c60, timeout=<optimized out>, fds=0x60d2f414f490, n_fds=2) at ../glib/glib/gmain.c:4521
#2  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x744688000c60, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4212
#3  0x0000748692913f95 in g_main_context_iteration (context=0x744688000c60, may_block=1) at ../glib/glib/gmain.c:4282
#4  0x00007486943a28dd in QEventDispatcherGlib::processEvents (this=0x744688000b70, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#5  0x000074869414f10e in QEventLoop::processEvents (this=0x74468f3ffb60, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#6  QEventLoop::exec (this=0x74468f3ffb60, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#7  0x000074869423a4e0 in QThread::exec (this=this@entry=0x7486946d1b20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#8  0x0000748694648dfe in QDBusConnectionManager::run (this=0x7486946d1b20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/dbus/qdbusconnectionmanager.cpp:144
#9  0x00007486942c96e7 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:326
#10 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:262
#11 QThreadPrivate::start (arg=0x7486946d1b20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:285
#12 0x0000748693aa6ded in start_thread (arg=<optimized out>) at pthread_create.c:447
#13 0x0000748693b2a0dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x7486920e3980 (LWP 2520)):
[KCrash Handler]
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x0000748693aa8eb3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#7  0x0000748693a50a30 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x0000748693a384c3 in __GI_abort () at abort.c:79
#9  0x000074869408c6b7 in qAbort () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qglobal.cpp:136
#10 qt_message_fatal<QString&> (context=..., message=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:2052
#11 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=..., msg=msg@entry=0x748693700890 "QFontDatabase: Must construct a QGuiApplication before accessing QFontDatabase", ap=ap@entry=0x7ffca2aec530) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:374
#12 0x000074869408ce5b in QMessageLogger::fatal (this=this@entry=0x7ffca2aec620, msg=msg@entry=0x748693700890 "QFontDatabase: Must construct a QGuiApplication before accessing QFontDatabase") at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:889
#13 0x00007486930e2220 in QFontDatabasePrivate::ensureFontDatabase () at /usr/src/debug/qt6-base/qtbase/src/gui/text/qfontdatabase.cpp:1333
#14 0x00007486933b5aaf in QFontDatabase::families (writingSystem=writingSystem@entry=QFontDatabase::Any) at /usr/src/debug/qt6-base/qtbase/src/gui/text/qfontdatabase.cpp:1434
#15 0x000074468c14f596 in fonts () at ../QtPBFImagePlugin-3.0/src/font.cpp:62
#16 0x000074468c158835 in matchFamily (family=...) at ../QtPBFImagePlugin-3.0/src/font.cpp:101
#17 Font::fromJsonArray (json=...) at ../QtPBFImagePlugin-3.0/src/font.cpp:123
#18 0x000074468c143ba7 in Style::Layer::Layout::Layout (this=<optimized out>, json=..., this=<optimized out>, json=...) at ../QtPBFImagePlugin-3.0/src/style.cpp:369
#19 0x000074468c145d97 in Style::Layer::Layer (this=<optimized out>, json=..., this=<optimized out>, json=...) at ../QtPBFImagePlugin-3.0/src/style.cpp:500
#20 0x000074468c14b99a in Style::load (this=<optimized out>, fileName=...) at ../QtPBFImagePlugin-3.0/src/style.cpp:598
#21 0x000074468c140f66 in PBFPlugin::PBFPlugin (this=<optimized out>, this=<optimized out>) at ../QtPBFImagePlugin-3.0/src/pbfplugin.cpp:16
#22 0x000074468c159a57 in qt_plugin_instance () at /usr/src/debug/qtpbfimageplugin/build6/moc_pbfplugin.cpp:127
#23 0x000074869439f6e3 in QLibraryPrivate::pluginInstance (this=0x60d2f429d920) at /usr/src/debug/qt6-base/qtbase/src/corelib/plugin/qlibrary.cpp:516
#24 0x00007486941bf05a in QFactoryLoader::instance (this=this@entry=0x748693846da0 <QGlobalStatic<QtGlobalStatic::Holder<QImageReaderWriterHelpers::(anonymous namespace)::Q_QGS_irhLoader> >::instance()::holder>, index=index@entry=18) at /usr/src/debug/qt6-base/qtbase/src/corelib/plugin/qfactoryloader.cpp:555
#25 0x000074869313b5b5 in createReadHandlerHelper (device=device@entry=0x60d2f42a3820, format=..., autoDetectImageFormat=true, ignoresFormatAndExtension=false) at /usr/src/debug/qt6-base/qtbase/src/gui/image/qimagereader.cpp:230
#26 0x000074869313e1f0 in QImageReaderPrivate::initHandler (this=0x60d2f41eb150) at /usr/src/debug/qt6-base/qtbase/src/gui/image/qimagereader.cpp:548
#27 0x000074869313fb58 in QImageReader::canRead (this=this@entry=0x7ffca2aedfd8) at /usr/src/debug/qt6-base/qtbase/src/gui/image/qimagereader.cpp:1123
#28 0x0000748694afa3ce in KFileMetaData::PngExtractor::extract (this=<optimized out>, result=0x7ffca2aee340) at /usr/src/debug/kfilemetadata/kfilemetadata-6.3.0/src/extractors/pngextractor.cpp:57
#29 0x000060d2e5e6f451 in Baloo::App::index (this=this@entry=0x7ffca2aeec40, tr=0x60d2f4139a10, url=..., id=id@entry=5788357627092177) at /usr/src/debug/baloo/baloo-6.3.0/src/file/extractor/app.cpp:180
#30 0x000060d2e5e707ad in Baloo::App::processNextFile (this=0x7ffca2aeec40) at /usr/include/c++/14.1.1/bits/unique_ptr.h:193
#31 0x00007486941a17e7 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:469
#32 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4086
#33 0x00007486940cf534 in QSingleShotTimer::timeout (this=0x60d2f411af60) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/7GB2EGQPHR/moc_qsingleshottimer_p.cpp:139
#34 QSingleShotTimer::timerEvent (this=0x60d2f411af60) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/7GB2EGQPHR/../../../../../qtbase/src/corelib/kernel/qsingleshottimer_p.h:116
#35 0x000074869418c0b9 in QObject::event (this=0x60d2f411af60, e=0x7ffca2aee870) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1427
#36 0x0000748694144e13 in doNotify (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1243
#37 QCoreApplication::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1226
#38 QCoreApplication::notifyInternal2 (receiver=0x60d2f411af60, event=0x7ffca2aee870) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#39 0x00007486942c3c38 in QCoreApplication::sendEvent (receiver=<optimized out>, event=0x7ffca2aee870) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1583
#40 QTimerInfoList::activateTimers (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qtimerinfo_unix.cpp:434
#41 0x00007486943a4599 in timerSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:150
#42 0x0000748692914a89 in g_main_dispatch (context=0x60d2f410c750) at ../glib/glib/gmain.c:3344
#43 0x00007486929769b7 in g_main_context_dispatch_unlocked (context=0x60d2f410c750) at ../glib/glib/gmain.c:4152
#44 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x60d2f410c750, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#45 0x0000748692913f95 in g_main_context_iteration (context=0x60d2f410c750, may_block=1) at ../glib/glib/gmain.c:4282
#46 0x00007486943a2902 in QEventDispatcherGlib::processEvents (this=0x60d2f410c6f0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:396
#47 0x000074869414f10e in QEventLoop::processEvents (this=0x7ffca2aeeb50, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#48 QEventLoop::exec (this=0x7ffca2aeeb50, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#49 0x000074869414945d in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#50 0x000060d2e5e65374 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/baloo/baloo-6.3.0/src/file/extractor/main.cpp:33

Reported using DrKonqi
Comment 1 tagwerk19 2024-06-19 20:59:22 UTC
(In reply to vbhunt from comment #0)
> ...
> Frameworks Version: 6.3.0
> ...
> #12 0x000074869408ce5b in QMessageLogger::fatal
> (this=this@entry=0x7ffca2aec620, msg=msg@entry=0x748693700890
> "QFontDatabase: Must construct a QGuiApplication before accessing
> QFontDatabase") at
> /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:889
> ...
> #28 0x0000748694afa3ce in KFileMetaData::PngExtractor::extract
> (this=<optimized out>, result=0x7ffca2aee340) at
> /usr/src/debug/kfilemetadata/kfilemetadata-6.3.0/src/extractors/pngextractor.
> cpp:57
> ...
This looks very much like Bug 487628, the change that caused this has just recently been reverted:
    https://invent.kde.org/frameworks/baloo/-/merge_requests/200
How long it will take to get to you on Arch, I don't know....

*** This bug has been marked as a duplicate of bug 487628 ***
Comment 2 vbhunt 2024-06-19 23:16:32 UTC
No worries. It will likely be in the Arch repositories within a week or two of the newest release version of the source code, if that long.