Bug 363491

Summary: Crash on system start [assertion in "DocumentUrlDB::del", "This folder still has sub-files in its cache. It cannot be deleted"]
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Milian Wolff <mail>
Component: EngineAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED DUPLICATE    
Severity: crash CC: aspotashev, christoph, cordlandwehr, nate, pinak.ahuja
Priority: NOR Keywords: drkonqi
Version: 5.22.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Milian Wolff 2016-05-25 07:37:01 UTC
Application: baloo_file_extractor (5.22.0)
 (Compiled from sources)
Qt Version: 5.6.0
Frameworks Version: 5.22.0
Operating System: Linux 4.5.4-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Everytime I boot my laptop, baloo asserts on me:

    if (url.isEmpty()) {
        Q_ASSERT_X(idTreeDb.get(docId).isEmpty(), "DocumentUrlDB::del", "This folder still has sub-files in its cache. It cannot be deleted");
        return;
    }

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f019ea21840 (LWP 684))]

Thread 3 (Thread 0x7f018fb19700 (LWP 685)):
#0  0x00007f019af0d68d in poll () from /usr/lib/libc.so.6
#1  0x00007f0197028ae2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f019702a757 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f0191021a79 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f019bb1c1d8 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f0199bf8474 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f019af1669d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f017f331700 (LWP 696)):
#0  0x00007f01992c6044 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
#1  0x00007f0199281fca in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f01992820ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f019bd486eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f019bcf046a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f019bb172f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f019d63da65 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007f019bb1c1d8 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f0199bf8474 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f019af1669d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f019ea21840 (LWP 684)):
[KCrash Handler]
#6  0x00007f019ae62295 in raise () from /usr/lib/libc.so.6
#7  0x00007f019ae636da in abort () from /usr/lib/libc.so.6
#8  0x00007f019bb03c61 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
#9  0x00007f019bafef21 in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib/libQt5Core.so.5
#10 0x00007f019dcfd954 in Baloo::DocumentUrlDB::replace<Baloo::WriteTransaction::removeDocument(unsigned long long)::$_0>(unsigned long long, QByteArray const&, Baloo::WriteTransaction::removeDocument(unsigned long long)::$_0) (this=0x7ffe1ae4c8b0, docId=72065088755861508, url=..., shouldDeleteFolder=...) at /home/milian/projects/kf5/src/frameworks/baloo/src/engine/documenturldb.h:134
#11 0x00007f019dcfc55d in Baloo::DocumentUrlDB::del<Baloo::WriteTransaction::removeDocument(unsigned long long)::$_0>(unsigned long long, Baloo::WriteTransaction::removeDocument(unsigned long long)::$_0) (this=0x7ffe1ae4c8b0, docId=72065088755861508, shouldDeleteFolder=...) at /home/milian/projects/kf5/src/frameworks/baloo/src/engine/documenturldb.h:53
#12 0x00007f019dcfc34c in Baloo::WriteTransaction::removeDocument (this=0x14d0cb0, id=72065088755861508) at /home/milian/projects/kf5/src/frameworks/baloo/src/engine/writetransaction.cpp:130
#13 0x00007f019dcf7485 in Baloo::Transaction::removeDocument (this=0x14c9740, id=72065088755861508) at /home/milian/projects/kf5/src/frameworks/baloo/src/engine/transaction.cpp:235
#14 0x000000000040a222 in Baloo::App::processNextFile (this=0x7ffe1ae4d1d8) at /home/milian/projects/kf5/src/frameworks/baloo/src/file/extractor/app.cpp:87
#15 0x000000000040d0da in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (Baloo::App::*)()>::call(void (Baloo::App::*)(), Baloo::App*, void**) (f=(void (Baloo::App::*)(Baloo::App * const)) 0x40a150 <Baloo::App::processNextFile()>, o=0x7ffe1ae4d1d8, arg=0x7ffe1ae4cbc0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:501
#16 0x000000000040d050 in QtPrivate::FunctionPointer<void (Baloo::App::*)()>::call<QtPrivate::List<>, void>(void (Baloo::App::*)(), Baloo::App*, void**) (f=(void (Baloo::App::*)(Baloo::App * const)) 0x40a150 <Baloo::App::processNextFile()>, o=0x7ffe1ae4d1d8, arg=0x7ffe1ae4cbc0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:520
#17 0x000000000040cf86 in QtPrivate::QSlotObject<void (Baloo::App::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x14c6dd0, r=0x7ffe1ae4d1d8, a=0x7ffe1ae4cbc0, ret=0x0) at /usr/include/qt/QtCore/qobject_impl.h:143
#18 0x00007f019bd2c146 in ?? () from /usr/lib/libQt5Core.so.5
#19 0x00007f019bd20133 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#20 0x00007f019ca1a7bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#21 0x00007f019ca1f95f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#22 0x00007f019bcf2280 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#23 0x00007f019bd475ee in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#24 0x00007f019bd47b11 in ?? () from /usr/lib/libQt5Core.so.5
#25 0x00007f0199281dd7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x00007f0199282040 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x00007f01992820ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0x00007f019bd486cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#29 0x00007f019bcf046a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#30 0x00007f019bcf8a0c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#31 0x00000000004091f1 in main (argc=1, argv=0x7ffe1ae4d458) at /home/milian/projects/kf5/src/frameworks/baloo/src/file/extractor/main.cpp:57

Reported using DrKonqi
Comment 1 Christoph Cullmann 2016-09-11 20:48:16 UTC
*** Bug 355731 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2017-10-27 17:10:08 UTC

*** This bug has been marked as a duplicate of bug 360946 ***