Bug 337150 - nepomukbaloomigrator crashed every time
Summary: nepomukbaloomigrator crashed every time
Status: RESOLVED DUPLICATE of bug 333571
Alias: None
Product: Baloo
Classification: Unmaintained
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-07-06 19:41 UTC by Alex Savin
Modified: 2014-08-18 20:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Savin 2014-07-06 19:41:44 UTC
Application: nepomukbaloomigrator (1.0)
KDE Platform Version: 4.13.1
Qt Version: 4.8.5
Operating System: Linux 3.11.10-11-desktop x86_64
Distribution: "openSUSE 13.1 (Bottle) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

my nepomuk metadata didn't migrate automatically, 
i tried to do it manually, by:
# editing ~/.kde4/share/config/nepomukserverrc to activate nepomuk
# and set 
[Baloo]
migrated=False 
[Basic Settings]
Start Nepomuk=true
[Service-nepomukfileindexer]
autostart=true
# I delete baloo files and restart  baloo service
rm -rf /home/alex/.local/share/baloo/
balooctl restart
#start nepomuk:
nepomukctl start
# then, run 
nepomukbaloomigrator

# it output a lot of messages like:
"/some/file" "user.xdg.comment" "" Error: "files.value may not be NULL Unable to fetch row" 
# then:
nepomukbaloomigrator(27439): Bananana Error 
nepomukbaloomigrator(27439): Serious Error:   
Couldn't open /home/alex/.local/share/baloo/file/position.baseA: СлиÑком много оÑкÑÑÑÑÑ Ñайлов
Couldn't open /home/alex/.local/share/baloo/file/position.baseB: СлиÑком много оÑкÑÑÑÑÑ Ñайлов
  DatabaseOpeningError: Error opening table `/home/alex/.local/share/baloo/file/position.':
Couldn't open /home/alex/.local/share/baloo/file/position.baseA: СлиÑком много оÑкÑÑÑÑÑ Ñайлов
Couldn't open /home/alex/.local/share/baloo/file/position.baseB: СлиÑком много оÑкÑÑÑÑÑ Ñайлов

and then it crashed, happened every time

The crash can be reproduced every time.

-- Backtrace:
Application: NepomukBalooMigrator (nepomukbaloomigrator), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f59e17a4880 (LWP 31503))]

Thread 2 (Thread 0x7f59cd3af700 (LWP 31513)):
#0  0x00007f59dc8e23e9 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f59db3b3291 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f59db372cb9 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f59db373523 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f59db37370c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f59df005d76 in QEventDispatcherGlib::processEvents (this=0x7f59c00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007f59defd7d0f in QEventLoop::processEvents (this=this@entry=0x7f59cd3aed20, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f59defd8005 in QEventLoop::exec (this=this@entry=0x7f59cd3aed20, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f59deed6fef in QThread::exec (this=this@entry=0xdcc3b0) at thread/qthread.cpp:536
#9  0x00007f59defb9513 in QInotifyFileSystemWatcherEngine::run (this=0xdcc3b0) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f59deed968f in QThreadPrivate::start (arg=0xdcc3b0) at thread/qthread_unix.cpp:338
#11 0x00007f59dc8e00db in start_thread () from /lib64/libpthread.so.0
#12 0x00007f59de88790d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f59e17a4880 (LWP 31503)):
[KCrash Handler]
#6  size (this=<optimized out>, this=<optimized out>) at /usr/include/c++/4.8/bits/stl_vector.h:646
#7  Xapian::Database::get_document (this=0x0, did=24278) at api/omdatabase.cc:439
#8  0x00007f59db63ca94 in Baloo::XapianDatabase::document(unsigned int) () from /usr/lib64/libbalooxapian.so.4
#9  0x00007f59e0a6618d in Baloo::FileModifyJob::doStart() () from /usr/lib64/libbaloofiles.so.4
#10 0x00007f59deff111e in QObject::event (this=0x2591f70, e=<optimized out>) at kernel/qobject.cpp:1203
#11 0x00007f59dfc6d8ac in QApplicationPrivate::notify_helper (this=this@entry=0xa6ec20, receiver=receiver@entry=0x2591f70, e=e@entry=0x2b93740) at kernel/qapplication.cpp:4562
#12 0x00007f59dfc73e70 in QApplication::notify (this=this@entry=0x7fff2c71c130, receiver=receiver@entry=0x2591f70, e=e@entry=0x2b93740) at kernel/qapplication.cpp:4348
#13 0x00007f59e11d55ea in KApplication::notify (this=0x7fff2c71c130, receiver=0x2591f70, event=0x2b93740) at /usr/src/debug/kdelibs-4.13.1/kdeui/kernel/kapplication.cpp:311
#14 0x00007f59defd90ad in QCoreApplication::notifyInternal (this=0x7fff2c71c130, receiver=receiver@entry=0x2591f70, event=event@entry=0x2b93740) at kernel/qcoreapplication.cpp:949
#15 0x00007f59defdc0ff in sendEvent (event=0x2b93740, receiver=0x2591f70) at kernel/qcoreapplication.h:231
#16 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xa242d0) at kernel/qcoreapplication.cpp:1573
#17 0x00007f59defdc5a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1466
#18 0x00007f59df006493 in sendPostedEvents () at kernel/qcoreapplication.h:236
#19 postEventSourceDispatch (s=0xa5c790) at kernel/qeventdispatcher_glib.cpp:280
#20 0x00007f59db373316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f59db373668 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f59db37370c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f59df005d55 in QEventDispatcherGlib::processEvents (this=0xa29a90, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#24 0x00007f59dfd0a936 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#25 0x00007f59defd7d0f in QEventLoop::processEvents (this=this@entry=0x7fff2c71b850, flags=...) at kernel/qeventloop.cpp:149
#26 0x00007f59defd8005 in QEventLoop::exec (this=0x7fff2c71b850, flags=...) at kernel/qeventloop.cpp:204
#27 0x00007f59df6ed963 in KJob::exec (this=0x2591f70) at /usr/src/debug/kdelibs-4.13.1/kdecore/jobs/kjob.cpp:210
#28 0x0000000000404e08 in _start ()

Reported using DrKonqi
Comment 1 Alex Savin 2014-07-06 19:44:58 UTC
ls /home/alex/.local/share/baloo/file/ -1
fileMap.sqlite3
fileMetaData.sqlite3
flintlock
iamchert
position.baseA
position.baseB
position.DB
postlist.baseA
postlist.baseB
postlist.DB
record.baseA
record.baseB
record.DB
termlist.baseA
termlist.baseB
termlist.DB
Comment 2 Vishesh Handa 2014-07-29 16:25:21 UTC

*** This bug has been marked as a duplicate of bug 333571 ***
Comment 3 Alex Savin 2014-08-18 20:35:14 UTC
I set:
ulimit -n 900000
and tried again - it is imported some metadata, but then import is seems to be stopped with the messages like that:

nepomukbaloomigrator(6610) Nepomuk2::SysTray::startMigration: "/home/pictures/screenshots/umplayer/shot0133.png" 0 "" ("HunterD")
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610) Baloo::XapianDatabase::commit: Adding: 1 docs
nepomukbaloomigrator(6610) Baloo::XapianDatabase::commit: Removing: 0 docs
nepomukbaloomigrator(6610) Baloo::XapianDatabase::commit: Xapian Committed
nepomukbaloomigrator(6610) Nepomuk2::SysTray::startMigration: "/home/pictures/screenshots/umplayer/shot0119.png" 0 "" ("HunterxHunter")
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610): "database is locked Unable to fetch row" 
nepomukbaloomigrator(6610) Baloo::XapianDatabase::commit: Adding: 1 docs
nepomukbaloomigrator(6610) Baloo::XapianDatabase::commit: Removing: 0 docs
nepomukbaloomigrator(6610) Baloo::XapianDatabase::commit: Xapian Committed