michaelh added a comment.
@mgallien: Here is way to come close to reproducing this without corrupting
you db:
$balooctl stop
- Take 2 pendrives A and B
- Plug them in in this order: A > B
Assuming they are mounted inside `/run/media/mgallien/`
$ stat -c "%D %n" /run/media/mgallien/*
Unmount and unplug the drive
Plug them in again in this order: B > A
$ stat -c "%D %n" /run/media/mgallien/*
On my system Drive A now has a different device id.
- Read `baloo/src/engine/idutils.h:48'
- Plug out the drives, restart baloo
On my system the result is weird behaviour like this:
No drives plugged in!
baloosearch -d "/run/media/mgallien/" type:Video | xargs -d'\n' balooshow
-x "{}"
Elapsed: 5.45662 msecs
ASSERT: "id > 0" in file
/home/super/devel/kde/src/frameworks/baloo/src/engine/transaction.cpp, line 101
xargs: balooshow: terminated by signal 6
REPOSITORY
R293 Baloo
REVISION DETAIL
https://phabricator.kde.org/D10203
To: michaelh, dfaure, vhanda, #frameworks, #baloo, mgallien
Cc: ashaposhnikov, michaelh, spoorun, ngraham, alexeymin