Bug 357541 - akonadi_baloo_indexer crashes on akonadi start
Summary: akonadi_baloo_indexer crashes on akonadi start
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Indexer (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 358314 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-04 19:40 UTC by Luis Silva
Modified: 2018-01-27 01:13 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.07 KB, text/plain)
2016-04-20 21:07 UTC, Amos
Details
New crash information added by DrKonqi (3.06 KB, text/plain)
2016-10-15 23:50 UTC, chooks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Silva 2016-01-04 19:40:32 UTC
Application: akonadi_baloo_indexer (4.14)
KDE Platform Version: 4.14.13
Qt Version: 4.8.6
Operating System: Linux 4.3.0-5-generic x86_64
Distribution: Ubuntu Xenial Xerus (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
I installed the kde4 baloo libraries from the kubuntu repos and manually restarted akonadi.

The crash can be reproduced every time.

-- Backtrace:
Application:  (akonadi_baloo_indexer), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f325be21227 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007f325be22e8a in __GI_abort () at abort.c:89
#8  0x00007f325f9f1ed5 in qt_message_output (msgType=<optimized out>, buf=0xebfe68 "akonadi_baloo_indexer(9452)/libakonadi: Unable to register service \"org.freedesktop.Akonadi.Agent.akonadi_baloo_indexer\" at dbus: \"\" ") at global/qglobal.cpp:2386
#9  0x00007f325e539d47 in QDebug::~QDebug (this=0x7ffcb68cbd20, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qdebug.h:85
#10 Akonadi::AgentBasePrivate::delayedInit (this=0xf07890) at ../../akonadi/agentbase.cpp:411
#11 0x00007f325e53920a in Akonadi::AgentBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_agentbase.cpp:98
#12 0x00007f325fb26d01 in QObject::event (this=0xe9c260, e=<optimized out>) at kernel/qobject.cpp:1222
#13 0x00007f325d079cdc in QApplicationPrivate::notify_helper (this=this@entry=0xd2e020, receiver=receiver@entry=0xe9c260, e=e@entry=0xea8620) at kernel/qapplication.cpp:4570
#14 0x00007f325d080c16 in QApplication::notify (this=this@entry=0x7ffcb68cc490, receiver=receiver@entry=0xe9c260, e=e@entry=0xea8620) at kernel/qapplication.cpp:4356
#15 0x00007f325dddca1a in KApplication::notify (this=0x7ffcb68cc490, receiver=0xe9c260, event=0xea8620) at ../../kdeui/kernel/kapplication.cpp:311
#16 0x00007f325fb0c85d in QCoreApplication::notifyInternal (this=0x7ffcb68cc490, receiver=receiver@entry=0xe9c260, event=event@entry=0xea8620) at kernel/qcoreapplication.cpp:955
#17 0x00007f325fb10316 in QCoreApplication::sendEvent (event=0xea8620, receiver=0xe9c260) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#18 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xcf8740) at kernel/qcoreapplication.cpp:1579
#19 0x00007f325fb105f3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#20 0x00007f325fb3d07e in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#21 postEventSourceDispatch (s=0xd17340) at kernel/qeventdispatcher_glib.cpp:300
#22 0x00007f325b4e9117 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f325b4e9370 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f325b4e941c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f325fb3d1ee in QEventDispatcherGlib::processEvents (this=0xcf9fc0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#26 0x00007f325d124c26 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007f325fb0b0d1 in QEventLoop::processEvents (this=this@entry=0x7ffcb68cc400, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007f325fb0b445 in QEventLoop::exec (this=this@entry=0x7ffcb68cc400, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007f325fb11429 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#30 0x00007f325d077f2c in QApplication::exec () at kernel/qapplication.cpp:3828
#31 0x00007f325e5364bd in Akonadi::AgentBase::init (r=r@entry=0xe9c260) at ../../akonadi/agentbase.cpp:859
#32 0x000000000041111e in Akonadi::AgentBase::init<BalooIndexingAgent> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/agentbase.h:455
#33 0x00007f325be0ca00 in __libc_start_main (main=0x40a090 <main(int, char**)>, argc=3, argv=0x7ffcb68cc5a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcb68cc598) at libc-start.c:289
#34 0x000000000040a129 in _start ()

Possible duplicates by query: bug 333347.

Reported using DrKonqi
Comment 1 Daniel Vrátil 2016-03-31 00:05:51 UTC
*** Bug 358314 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Vrátil 2016-03-31 00:08:21 UTC
Looks like there's either some problem with your DBus, or that somehow something is already occupying the org.freedesktop.Akonadi.Agent.akonadi_baloo_indexer service on the bus - possibly another instance running (which should NOT be possible).

Can you check if this is still happening in KDE PIM 15.12 or 16.04? The agent there is called akonadi_indexing_agent (we removed "Baloo" from the name).
Comment 3 Luis Silva 2016-03-31 09:52:40 UTC
The crash is no longer happening in KDEPIM 15.12. However, I just realised that I still had the two agents installed (akonadi_indexing and akonadi_baloo) and this error message keeps showing up in the console even after I deactivated the akonadi_baloo_indexer and restarted akonadi.

akonadi_baloo_indexer(5300): Could not obtain lock for Xapian Database. This is bad 
akonadi_baloo_indexer(5300): "DatabaseLockError" "DatabaseLockError: Unable to get write lock on /home/lacsilva/.local/share/baloo/notes/: already locked" 
akonadi_baloo_indexer(5300): "DatabaseLockError" "DatabaseLockError: Unable to get write lock on /home/lacsilva/.local/share/baloo/calendars/: already locked"
Comment 4 Amos 2016-04-20 21:07:30 UTC
Created attachment 98484 [details]
New crash information added by DrKonqi

akonadi_baloo_indexer (4.14) on KDE Platform 4.14.16 using Qt 4.8.7

- What I was doing when the application crashed:
Starting akonadi with akonadictl.  Also happens if I run kontact.  Happens essentially every time.

-- Backtrace (Reduced):
#6  0x00007f7554a1a418 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f7554a1c01a in __GI_abort () at abort.c:89
[...]
#11 0x00007f7558722db1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007f7555c70fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007f7555c77f16 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Comment 5 Kevin Funk 2016-08-02 08:23:37 UTC
Work-around from comment #3 solved the problem for me: Start akonadiconsole, observe there are two agents running called "Akonadi Indexing Agent" and "Akonadi Baloo Indexer". Remove the latter.

I no longer get the crash notification on akonadi restart.
Comment 6 chooks 2016-10-15 23:50:09 UTC
Created attachment 101577 [details]
New crash information added by DrKonqi

akonadi_baloo_indexer (4.14) on KDE Platform 4.14.16 using Qt 4.8.7

- What I was doing when the application crashed:

Started my system and logged into kde, crash of application occurred before I did anything.

-- Backtrace (Reduced):
#6  0x00007f54a3009418 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f54a300b01a in __GI_abort () at abort.c:89
[...]
#11 0x00007f54a6d11db1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007f54a425ffdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007f54a4266f16 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Comment 7 Christoph Feck 2018-01-27 01:13:48 UTC
The 'akonadi_baloo_indexer' is part of the KDEPIM 4 packages that is no longer maintained. Please ask in a forum of your distribution how to uninstall all KDEPIM 4 packages and only use KDEPIM 5 packages.