Bug 463641 - Dolphin crashes while navigating filesystem (Other programs running in background)
Summary: Dolphin crashes while navigating filesystem (Other programs running in backgr...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.12.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-12-30 21:13 UTC by wouter.schamp
Modified: 2023-06-02 21:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wouter.schamp 2022-12-30 21:13:47 UTC
Application: dolphin (22.12.0)

Qt Version: 5.15.7
Frameworks Version: 5.101.0
Operating System: Linux 6.0.15-300.fc37.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 37 (Workstation Edition)
DrKonqi: 5.26.4 [KCrashBackend]

-- Information about the crash:
I had several programs running in the background (Joplin, Strawberry music player, puddletag, fre:ac),
While i renamed several audio files.
After renaming these files i navigated to the folder above it in the filsystem tree.
Then Dolphin unexpectedly crashed

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Dolphin (dolphin), signal: Bus error

[KCrash Handler]
#4  0x00007f7d4acc6e14 in mdb_node_search () from /lib64/liblmdb.so.0.0.0
#5  0x00007f7d4acca130 in mdb_page_search_root () from /lib64/liblmdb.so.0.0.0
#6  0x00007f7d4acca9e5 in mdb_cursor_set () from /lib64/liblmdb.so.0.0.0
#7  0x00007f7d4accb953 in mdb_get () from /lib64/liblmdb.so.0.0.0
#8  0x00007f7d4dbde482 in Baloo::DocumentDataDB::get(unsigned long long) () from /lib64/libKF5BalooEngine.so.5
#9  0x00007f7d4dbeec05 in Baloo::Transaction::documentData(unsigned long long) const () from /lib64/libKF5BalooEngine.so.5
#10 0x00007f7d4f37c1df in Baloo::File::load() () from /lib64/libKF5Baloo.so.5
#11 0x00007f7d4f9fea93 in KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(KFileItem const&) () from /lib64/libdolphinprivate.so.5
#12 0x00007f7d4f9ff473 in KFileItemModelRolesUpdater::rolesData(KFileItem const&) () from /lib64/libdolphinprivate.so.5
#13 0x00007f7d4fa00a1b in KFileItemModelRolesUpdater::slotGotPreview(KFileItem const&, QPixmap const&) () from /lib64/libdolphinprivate.so.5
#14 0x00007f7d4d8dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#15 0x00007f7d4f6a596b in KIO::PreviewJob::gotPreview(KFileItem const&, QPixmap const&) () from /lib64/libKF5KIOWidgets.so.5
#16 0x00007f7d4f6a9c9b in KIO::PreviewJobPrivate::emitPreview(QImage const&) () from /lib64/libKF5KIOWidgets.so.5
#17 0x00007f7d4f6aae4d in KIO::PreviewJobPrivate::slotThumbData(KIO::Job*, QByteArray const&) () from /lib64/libKF5KIOWidgets.so.5
#18 0x00007f7d4d8dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#19 0x00007f7d4f45fe28 in KIO::TransferJob::data(KIO::Job*, QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#20 0x00007f7d4d8dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#21 0x00007f7d4f441b36 in KIO::SlaveInterface::data(QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#22 0x00007f7d4f449ddb in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#23 0x00007f7d4f4419ea in KIO::SlaveInterface::dispatch() () from /lib64/libKF5KIOCore.so.5
#24 0x00007f7d4f4441c1 in KIO::Slave::gotInput() () from /lib64/libKF5KIOCore.so.5
#25 0x00007f7d4d8dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#26 0x00007f7d4d8d2ec4 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#27 0x00007f7d4e5aed12 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#28 0x00007f7d4d8a8278 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#29 0x00007f7d4d8ab5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#30 0x00007f7d4d8f9897 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#31 0x00007f7d4b5d8cbf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#32 0x00007f7d4b62e598 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#33 0x00007f7d4b5d5f40 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#34 0x00007f7d4d8f938a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#35 0x00007f7d4d8a6cca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#36 0x00007f7d4d8aed92 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#37 0x000055d95fd7a095 in main ()
[Inferior 1 (process 3087) detached]

The reporter indicates this bug may be a duplicate of or related to bug 417051.

Reported using DrKonqi
Comment 1 wouter.schamp 2023-01-01 22:04:11 UTC
Extra information regarding the crash/bug (added on the 1st of january 2023)

Dolphin crashes the moment i enter a specific folder in the filesystem that contains 136,4 GiB of data.
 The folder contains a total of 7322 files and 464 subfolders.
Most of the files are .flac the others are .jpg and .png files and 1 pdf file.
 
This crash happened multiple times, so it should be reproducible
Comment 2 wouter.schamp 2023-01-07 15:40:21 UTC
Extra Information, added on 7th January 2023
Dolphin also crashes in a folder containing 1082 files.

I'll paste the info from the crash report application (KCrash Handler) under this sentence, with the hope it could help resolve the issue.

Application: Dolphin (dolphin), signal: Bus error

[KCrash Handler]
#4  0x00007f4734238e14 in mdb_node_search () from /lib64/liblmdb.so.0.0.0
#5  0x00007f473423c130 in mdb_page_search_root () from /lib64/liblmdb.so.0.0.0
#6  0x00007f473423c9e5 in mdb_cursor_set () from /lib64/liblmdb.so.0.0.0
#7  0x00007f473423d953 in mdb_get () from /lib64/liblmdb.so.0.0.0
#8  0x00007f473699a482 in Baloo::DocumentDataDB::get(unsigned long long) () from /lib64/libKF5BalooEngine.so.5
#9  0x00007f47369aac05 in Baloo::Transaction::documentData(unsigned long long) const () from /lib64/libKF5BalooEngine.so.5
#10 0x00007f47381cb1df in Baloo::File::load() () from /lib64/libKF5Baloo.so.5
#11 0x00007f473884da93 in KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(KFileItem const&) () from /lib64/libdolphinprivate.so.5
#12 0x00007f473884e473 in KFileItemModelRolesUpdater::rolesData(KFileItem const&) () from /lib64/libdolphinprivate.so.5
#13 0x00007f473884fa1b in KFileItemModelRolesUpdater::slotGotPreview(KFileItem const&, QPixmap const&) () from /lib64/libdolphinprivate.so.5
#14 0x00007f47366dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#15 0x00007f47384f496b in KIO::PreviewJob::gotPreview(KFileItem const&, QPixmap const&) () from /lib64/libKF5KIOWidgets.so.5
#16 0x00007f47384f8c9b in KIO::PreviewJobPrivate::emitPreview(QImage const&) () from /lib64/libKF5KIOWidgets.so.5
#17 0x00007f47384f9e4d in KIO::PreviewJobPrivate::slotThumbData(KIO::Job*, QByteArray const&) () from /lib64/libKF5KIOWidgets.so.5
#18 0x00007f47366dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#19 0x00007f47382aee28 in KIO::TransferJob::data(KIO::Job*, QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#20 0x00007f47366dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#21 0x00007f4738290b36 in KIO::SlaveInterface::data(QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#22 0x00007f4738298ddb in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#23 0x00007f47382909ea in KIO::SlaveInterface::dispatch() () from /lib64/libKF5KIOCore.so.5
#24 0x00007f47382931c1 in KIO::Slave::gotInput() () from /lib64/libKF5KIOCore.so.5
#25 0x00007f47366dbc26 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#26 0x00007f47366d2ec4 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#27 0x00007f47373aed12 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#28 0x00007f47366a8278 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#29 0x00007f47366ab5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#30 0x00007f47366f9897 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#31 0x00007f4734466cbf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#32 0x00007f47344bc598 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#33 0x00007f4734463f40 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#34 0x00007f47366f938a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#35 0x00007f47366a6cca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#36 0x00007f47366aed92 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#37 0x0000564b3f013095 in main ()
[Inferior 1 (process 8802) detached]
Comment 3 classabbyamp 2023-01-26 02:50:18 UTC
I believe I am experiencing this bug as well, but it happens when hovering over one of a few directories. None of the directories involved have many entries.

The backtrace seems to indicate that baloo is to blame, like the linked bug (#402064) in the original reporter's message says.

dolphin: 22.12.1
baloo: 5.101.0
baloo-widgets: 22.12.1
lmdb: 0.9.29
qt5: 5.15.7

Operating system: Linux 6.1.7 x86_64
Windowing system: X11 (bspwm)
Distribution: Void Linux

here's the backtrace from gdb:

#0  0x00007ffff414e85a in mdb_node_search (mc=mc@entry=0x7fffffffac50, key=key@entry=0x7fffffffb020, exactp=exactp@entry=0x7fffffffac4c) at mdb.c:5341
#1  0x00007ffff415265e in mdb_cursor_set (mc=mc@entry=0x7fffffffac50, key=key@entry=0x7fffffffb020, data=data@entry=0x7fffffffb030, op=op@entry=MDB_SET, exactp=exactp@entry=0x7fffffffac4c) at mdb.c:6157
#2  0x00007ffff4152c40 in mdb_get (txn=<optimized out>, dbi=<optimized out>, key=0x7fffffffb020, data=0x7fffffffb030) at mdb.c:5812
#3  0x00007ffff5fd30e0 in Baloo::DocumentDataDB::get(unsigned long long) () from /usr/lib/libKF5BalooEngine.so.5
#4  0x00007ffff5fe9631 in Baloo::Transaction::documentData(unsigned long long) const () from /usr/lib/libKF5BalooEngine.so.5
#5  0x00007ffff77fd6c2 in Baloo::File::load() () from /usr/lib/libKF5Baloo.so.5
#6  0x00007ffff79e5418 in Baloo::FileFetchJob::doStart (this=0x5555559437f0) at ../src/filefetchjob.cpp:43
#7  0x00007ffff5cdbe61 in QObject::event (this=0x5555559437f0, e=0x555555b12db0) at kernel/qobject.cpp:1347
#8  0x00007ffff696320f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff5caf99a in QCoreApplication::notifyInternal2 (receiver=0x5555559437f0, event=0x555555b12db0) at kernel/qcoreapplication.cpp:1064
#10 0x00007ffff5cb23d1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0x0, data=0x555555687af0) at kernel/qcoreapplication.cpp:1821
#11 0x00007ffff5d07f43 in postEventSourceDispatch (s=0x555555698450) at kernel/qeventdispatcher_glib.cpp:277
#12 0x00007ffff3a66b2b in g_main_dispatch (context=0x7fffe8005010) at ../glib/gmain.c:3444
#13 g_main_context_dispatch (context=0x7fffe8005010) at ../glib/gmain.c:4162
#14 0x00007ffff3a66dd8 in g_main_context_iterate (context=context@entry=0x7fffe8005010, block=block@entry=0x1, dispatch=dispatch@entry=0x1, self=<optimized out>) at ../glib/gmain.c:4238
#15 0x00007ffff3a66e8f in g_main_context_iteration (context=0x7fffe8005010, may_block=may_block@entry=0x1) at ../glib/gmain.c:4303
#16 0x00007ffff5d075cf in QEventDispatcherGlib::processEvents (this=0x55555584b8f0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#17 0x00007ffff5cae33b in QEventLoop::exec (this=this@entry=0x7fffffffb690, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#18 0x00007ffff5cb65d0 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#19 0x000055555559fecd in ?? ()
#20 0x00007ffff544120c in __libc_start_call_main (main=main@entry=0x55555559ec60, argc=argc@entry=0x2, argv=argv@entry=0x7fffffffb948) at ../sysdeps/nptl/libc_start_call_main.h:58
#21 0x00007ffff54412bc in __libc_start_main_impl (main=0x55555559ec60, argc=0x2, argv=0x7fffffffb948, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffb938) at ../csu/libc-start.c:381
#22 0x00005555555a0321 in ?? ()
Comment 4 wouter.schamp 2023-01-26 16:06:52 UTC
Extra information added on 26/01/2023

A very good thing to point out.
At first it did not occur to me this could be related.
But:
Baloo file extractor crashes every time on my system, when i login to either a Plasma desktop or GNOME session.
Comment 5 wouter.schamp 2023-06-02 21:49:27 UTC
Update on 02 june 2023:

Reinstalled my system and switched to Fedora 38 KDE Spin.
Most likely something got patched. Or the plasma desktop is installed completely and correctly this time.
 
If it could help anyone, i will leave the version numbers of baloo file extractor related packages in this comment.

- baloo-widgets version 23.04.1 release 1.fc38
- kf5-baloo version 5.106.0 release 1.fc38
- kf5-baloo-file version 5.106.0 release 1.fc38
- kf5-baloo-libs version 5.106.0 release 1.fc38
-