Bug 240981 - Crash of akonadi on login
Summary: Crash of akonadi on login
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Nepomuk Feeder Agents (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
: 240482 241237 241748 241816 242005 242251 242621 243288 245544 246046 246441 246967 247531 252228 256289 264466 268502 272395 274136 275205 277563 280398 295203 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-07 07:57 UTC by Tsvi Mostovicz
Modified: 2013-08-17 11:33 UTC (History)
29 users (show)

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


Attachments
New crash information added by DrKonqi (5.95 KB, text/plain)
2011-01-21 19:40 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tsvi Mostovicz 2010-06-07 07:57:40 UTC
Application: akonadi_nepomuk_contact_feeder (0.1)
KDE Platform Version: 4.4.4 (KDE 4.4.4)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Using Kubuntu 10.04 with ppa enabled (KDE 4.4.4). On reboot akonadi tried starting up and crashed.

 -- Backtrace:
Application: Akonadi Agent (akonadi_nepomuk_contact_feeder), signal: Segmentation fault
[KCrash Handler]
#5  0x00007fe41cbc6f60 in KMimeType::mimeType (_name=..., options=KMimeType::ResolveAliases) at ../../kdecore/services/kmimetype.cpp:159
#6  0x00007fe41c7daa22 in Akonadi::MonitorPrivate::isMimeTypeMonitored (this=0xf22d70, msg=...) at ../../akonadi/monitor_p.h:200
#7  Akonadi::MonitorPrivate::isItemMonitored (this=0xf22d70, msg=...) at ../../akonadi/monitor_p.h:82
#8  Akonadi::MonitorPrivate::acceptNotification (this=0xf22d70, msg=...) at ../../akonadi/monitor_p.cpp:141
#9  0x00007fe41c7db578 in Akonadi::MonitorPrivate::slotNotify (this=0xf22d70, msgs=<value optimized out>) at ../../akonadi/monitor_p.cpp:287
#10 0x00007fe41c754102 in Akonadi::ChangeRecorderPrivate::slotNotify(QList<Akonadi::NotificationMessage> const&) () from /usr/lib/libakonadi-kde.so.4
#11 0x00007fe41c7d6a3a in Akonadi::Monitor::qt_metacall (this=0xf57200, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffffd63f400) at ./monitor.moc:147
#12 0x00007fe41c7512b8 in Akonadi::ChangeRecorder::qt_metacall (this=0x7ffffd63f170, _c=377592560, _id=-43781664, _a=0x1) at ./changerecorder.moc:72
#13 0x00007fe41c3c5e3f in QMetaObject::activate (sender=0xf57220, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3293
#14 0x00007fe41c821602 in OrgFreedesktopAkonadiNotificationManagerInterface::notify (this=0x7ffffd63f170, _t1=<value optimized out>) at notificationmanagerinterface.moc:85
#15 0x00007fe41c82164d in OrgFreedesktopAkonadiNotificationManagerInterface::qt_metacall (this=0xf57220, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffffd63f670)
    at notificationmanagerinterface.moc:73
#16 0x00007fe41bdd3486 in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:904
#17 0x00007fe41bdde05f in QDBusCallDeliveryEvent::placeMetaCall(QObject*) () from /usr/lib/libQtDBus.so.4
#18 0x00007fe41c3c2d49 in QObject::event (this=0xf57220, e=0x131f8f0) at kernel/qobject.cpp:1248
#19 0x00007fe41a0bd22c in QApplicationPrivate::notify_helper (this=0xdf3640, receiver=0xf57220, e=0x131f8f0) at kernel/qapplication.cpp:4300
#20 0x00007fe41a0c36fb in QApplication::notify (this=0x7ffffd640130, receiver=0xf57220, e=0x131f8f0) at kernel/qapplication.cpp:4183
#21 0x00007fe41d15c606 in KApplication::notify (this=0x7ffffd640130, receiver=0xf57220, event=0x131f8f0) at ../../kdeui/kernel/kapplication.cpp:302
#22 0x00007fe41c3b306c in QCoreApplication::notifyInternal (this=0x7ffffd640130, receiver=0xf57220, event=0x131f8f0) at kernel/qcoreapplication.cpp:704
#23 0x00007fe41c3b57e7 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xddcc60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xddcc60) at kernel/qcoreapplication.cpp:1345
#25 0x00007fe41c3dc9d3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#26 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#27 0x00007fe41685a8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#28 0x00007fe41685e748 in ?? () from /lib/libglib-2.0.so.0
#29 0x00007fe41685e8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#30 0x00007fe41c3dc513 in QEventDispatcherGlib::processEvents (this=0xddc3b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#31 0x00007fe41a16d46e in QGuiEventDispatcherGlib::processEvents (this=0x7ffffd63f170, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007fe41c3b1992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#33 0x00007fe41c3b1d6c in QEventLoop::exec (this=0x7ffffd6400b0, flags=) at kernel/qeventloop.cpp:201
#34 0x00007fe41c3b5aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#35 0x00007fe41c7356a6 in Akonadi::AgentBase::init (r=0xf56500) at ../../akonadi/agentbase.cpp:496
#36 0x0000000000408dd8 in _start ()

Possible duplicates by query: bug 236600.

Reported using DrKonqi
Comment 1 Christophe Marin 2010-06-10 13:12:21 UTC
*** Bug 241237 has been marked as a duplicate of this bug. ***
Comment 2 Nicolas L. 2010-06-16 01:16:50 UTC
*** Bug 241748 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas L. 2010-06-16 01:16:59 UTC
*** Bug 241816 has been marked as a duplicate of this bug. ***
Comment 4 Luis Silva 2010-06-20 18:22:40 UTC
I have also noticed something interesting. When you start akonadi at the same time you start nepomuk you get a crash on the nepomukstorage service. This is very consistent and could be the cause for this crash.
Just shut down both akonadi and nepomuk and then, from a console do:
nepomukserver && akonadictl start

That's it, you get an unusable nepomuk as a result.
Comment 5 Volker Krause 2010-06-24 10:20:27 UTC
*** Bug 240482 has been marked as a duplicate of this bug. ***
Comment 6 Volker Krause 2010-06-24 10:20:43 UTC
*** Bug 242621 has been marked as a duplicate of this bug. ***
Comment 7 Tobias Koenig 2010-07-03 22:52:27 UTC
*** Bug 243288 has been marked as a duplicate of this bug. ***
Comment 8 Tobias Koenig 2010-07-03 22:54:56 UTC
Hej,

we have received reports about this bug only from Ubuntu users so far, so
I really guess it's an (K)Ubuntu specific issue...

Ciao,
Tobias
Comment 9 Juergen Spitzmueller 2010-07-08 19:01:22 UTC
Tobias, I'm running openSuse 11.2, and I'm getting the same crash on every login (KDE 4.4.4 and 4.4.5). This is a very annoying bug.
Comment 10 Tobias Koenig 2010-08-02 10:48:25 UTC
*** Bug 245544 has been marked as a duplicate of this bug. ***
Comment 11 Tobias Koenig 2010-08-02 10:49:03 UTC
*** Bug 246046 has been marked as a duplicate of this bug. ***
Comment 12 Tobias Koenig 2010-08-02 10:49:40 UTC
*** Bug 246441 has been marked as a duplicate of this bug. ***
Comment 13 Tobias Koenig 2010-08-03 09:55:00 UTC
Hej again,

can all of you, who can reproduce this crash, please execute
  kbuildsycoca4 --noincremental
and test whether that helps?

Ciao,
Tobias
Comment 14 Chris 2010-08-06 00:04:39 UTC
On Tuesday, August 03, 2010 02:55:01 am Tobias Koenig wrote:
> https://bugs.kde.org/show_bug.cgi?id=240981
> 
> 
> Tobias Koenig <tokoe@kde.org> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
> - Status|UNCONFIRMED                 |NEEDSINFO
>          Resolution|                            |WAITINGFORINFO
> 
> 
> 
> 
> --- Comment #13 from Tobias Koenig <tokoe kde org>  2010-08-03 09:55:00 ---
> Hej again,
> 
> can all of you, who can reproduce this crash, please execute
>   kbuildsycoca4 --noincremental
> and test whether that helps?
> 
> Ciao,
> Tobias
Tobias,

I am new to this and don't know if I am replying in the right place.

I did as you asked and did not notice that it made any difference.  Although 
Akonadi is not crashing as frequently as it was when I reported this bug.

Chris
Comment 15 Juergen Spitzmueller 2010-08-06 14:31:37 UTC
(In reply to comment #13)
> can all of you, who can reproduce this crash, please execute
>   kbuildsycoca4 --noincremental
> and test whether that helps?

Does not seem to help here.
Comment 16 Tobias Koenig 2010-08-06 15:17:19 UTC
*** Bug 242005 has been marked as a duplicate of this bug. ***
Comment 17 Tobias Koenig 2010-08-06 15:20:27 UTC
*** Bug 242251 has been marked as a duplicate of this bug. ***
Comment 18 Tobias Koenig 2010-08-06 15:22:59 UTC
Since kbuildsycoca4 --incremental doesn't fix the bug, I reopen it.
Unfortunately none of the developers here can reproduce this bug, which makes fixing it impossible :/
Comment 19 Ladislav Nesnera 2010-08-06 17:32:53 UTC
And what about distribution specific (Ubuntu), architecture (64bit) or auto login feature?
I have Ubuntu 10.4, 64bit and auto login enable
Comment 20 Nicolas L. 2010-08-07 09:08:05 UTC
*** Bug 246967 has been marked as a duplicate of this bug. ***
Comment 21 Tsvi Mostovicz 2010-08-08 14:17:46 UTC
Since I upgraded to the 4.5 RC packages I was not able to reproduce this bug.
My gut feeling is this has to do with a race condition at startup, as even then I couldn't reproduce it only at logon.
If anyone was able to reproduce the bug by recreating the race condition I'd be happy to help more. Just tell me what commands to run.

Good hunting,

Tsvi
Comment 22 Nicolas L. 2010-08-12 17:42:11 UTC
*** Bug 247531 has been marked as a duplicate of this bug. ***
Comment 23 Juergen Sauer 2010-09-13 17:19:23 UTC
This Bug is reproduceable here,     Ubuntu Lucid 10.04.1 + PPA KDE 4.4.4 as mentioned before.

We found the problem is especially occouring on coperate setups with $HOME ode $USER on NFS Servers.

If an user logs on using an other worstation, which is using $HOME of $USER the mysql embedded backend crashes/destroys the data. Also it is impossible to use the Resources on any other workstaions. 
In other words: critical failure. In support cases we recommend to use thunderbird als running email client within those call ins. KDE PIM is critically broken - unusable.
Comment 24 Tobias Koenig 2010-09-26 10:53:45 UTC
(In reply to comment #23)
Hej Jürgen,

> We found the problem is especially occouring on coperate setups with $HOME ode
> $USER on NFS Servers.
> 
> If an user logs on using an other worstation, which is using $HOME of $USER the
> mysql embedded backend crashes/destroys the data.
You mean if the user has running _two_ sessions in parallel from different workspaces? Well, that will indeed will cause troubles, but this will happen with any other software as well, which assumes that it has exclusive access to its configuration/data files.

Ciao,
Tobias
Comment 25 Juergen Sauer 2010-09-28 17:44:02 UTC
> You mean if the user has running _two_ sessions in parallel from different
> workspaces? Well, that will indeed will cause troubles, but this will happen
> with any other software as well, which assumes that it has exclusive access to
> its configuration/data files.

Yes, this is the Problem.
Akonadi is not protected against this. So this is an critcal "NOGO-AT-ALL ERROR!

It is an very bad, bad idea and short thought concept, that this an problem at all.
KDE is definitely not single an USER GUI! Multiple Logons are definetly an "Must work" feature. Especially in Enterprise environments.

Embedded MySQL Datafiles is an bad idea - IMHO a broken concept - even upon this issue.

"Works here local" points of arguements are definitely not an Option at all.

So this Bug has absolute Priority.

Jürgen Sauer
Comment 26 Juergen Sauer 2010-09-28 17:46:48 UTC
Or on the other hand Akonadi and KDEPIM stays as it is now, an unusable toy with build in data looses.

J. Sauer
Comment 27 Tobias Koenig 2010-09-29 16:48:51 UTC
So any idea how to fix it? Bashing around is easy, but constructive critic is more helpful!
Comment 28 Luis Silva 2010-09-29 17:29:47 UTC
The original crash report seems to be fixed in KDE 4.5.1 At least I don't run into it anymore. Also, there seems to be no more races between akonadi and nepomuk.
Comment 29 Luis Silva 2010-09-30 17:08:23 UTC
(In reply to comment #25)
> > You mean if the user has running _two_ sessions in parallel from different
> > workspaces? Well, that will indeed will cause troubles, but this will happen
> > with any other software as well, which assumes that it has exclusive access to
> > its configuration/data files.
> 

Well, it seems to me that your problem is concurrent access to the database files. From my point of view there are two solutions to your problem:
1) On your side:Configure akonadi to connect to a dedicated mysql server with a database for each user of your system. Then, concurrent accesses will be dealt with by the server with no problems. 
2) On development side: Get akonadi to recognize that the database is already being accessed by another machine and take steps to not colide with it. Ideally, akonadi would make a copy of the database files and operate on those in the case of a concurrent access. Concurrent access to resources seems to already be handled properly.

I hope this helps,
Luis
Comment 30 Christoph Feck 2010-11-13 16:12:07 UTC
*** Bug 256289 has been marked as a duplicate of this bug. ***
Comment 31 Christoph Feck 2010-11-13 16:12:25 UTC
*** Bug 252228 has been marked as a duplicate of this bug. ***
Comment 32 Thomas 2011-01-21 19:40:30 UTC
Created attachment 56302 [details]
New crash information added by DrKonqi

still occures with KDE 4.4.5 directly after boot. At last shutdown the debugging windows where showing directly after logoff (they were kind like in behind my X-Server-Session)
Comment 33 Juergen Sauer 2011-01-24 06:57:13 UTC
Idea for possible best practice:
On first Longon/first use on akonadi an user should be asked for place to store the pim data.

As possible options should be:
- postgres server @ an dedicated server to avoid datalooses on nfs shares, and licence proplems using mysql. (MySQL is not LGPL! thats an huge not-possible-at-all problem!)
- where to store local datafiles - an makes clear information flow -> user for such problems.

On the other hand the akonadi developers should test the code before releasing.
A complete test musst include Multiuser environments, NFS Setups, Multiple logins etc.

The problem was raising due bad and incomplete tests, and short-thinking

Bye
Comment 34 Dario Andres 2011-01-30 23:34:25 UTC
*** Bug 264466 has been marked as a duplicate of this bug. ***
Comment 35 Christophe Marin 2011-05-04 10:53:43 UTC
from bug 272395

I tried to overwrite the std.ics file of KCalendar while the application was
open. Then Akonadi crashed.
I had several other windows opened, but I believe they were mostly inactive. It
is possible that some copying was still in place.
Thanks!
Comment 36 Christophe Marin 2011-05-04 10:53:54 UTC
*** Bug 272395 has been marked as a duplicate of this bug. ***
Comment 37 Christophe Marin 2011-07-13 11:09:35 UTC
*** Bug 277563 has been marked as a duplicate of this bug. ***
Comment 38 Christophe Marin 2011-07-13 11:09:59 UTC
*** Bug 275205 has been marked as a duplicate of this bug. ***
Comment 39 Christophe Marin 2011-07-13 12:11:59 UTC
*** Bug 268502 has been marked as a duplicate of this bug. ***
Comment 40 Christophe Marin 2011-07-13 15:53:04 UTC
*** Bug 274136 has been marked as a duplicate of this bug. ***
Comment 41 Christophe Marin 2011-08-28 16:16:47 UTC
*** Bug 280398 has been marked as a duplicate of this bug. ***
Comment 42 Norbert Lederbauer 2011-10-18 16:54:11 UTC
Since I have installed ONEIRIC OZELOT, Akonadi and his subprocesses Nepomuk, cid, Kmail etc crash on startup. 
So I can't execute some applications (like openbve f.ex.) and the computerspeed goes down. When I use the ksysguard it shoes me that nepomuk and cid and knotify use even 45% of CPU (when they are not crashed) On the system before (natty) all worked great but I think they changed the paths to the logs and so nepomuk etc can't work any more
Comment 43 Yngve Levinsen 2011-11-23 16:53:34 UTC
Unsure if my problem is related, but I post here:

After recent upgrade to the 3.1 kernel (and some other packages, don't remember which), my computer freezes completely about 1 min after login. I installed a different window manager and the problem went away.. Until I started Kontact. Then, it took about 30 sec for the freeze to appear. I am hence GUESSING this is related to Akonadi.

The bug for me appears every time, and the only choice I've found is to force a shutdown of the computer. I have waited several minutes on several occations to see if it awakens again, but no luck.

I have also tried to remove .config/akonadi, removed all config files I could find in .kde4, and .local/share/akonadi*. Then, I see the server self-test appear with some errors before it freezes. Since that didn't work, I renamed the entire .kde4, but it still froze. I will try the "kbuildsycoca4 --incremental" afterwards, right now I am checking one final time if it reacts after a while.

I am using Arch Linux, 64bit, with latest KDE 4.7.3. Interestingly enough I have the exact same setup on my laptop and desktop, but the problems only occur on my laptop. I am inclined to believe I have screwed up some settings. I am also inclined to believe the my bug is unrelated to what is reported here, as I have not had any issues in the past. Suggestions are highly welcome!
Comment 44 Yngve Levinsen 2011-11-23 17:09:36 UTC
Update: kbuildsycoca4 did not help, the computer still freezes.
Comment 45 Yngve Levinsen 2011-11-24 19:07:32 UTC
New information: I am quite lost as to understand where I should report this problem. As I said, my desktop does not have this problem at all, while for my laptop the problem occurs every time. Now, I have discovered however that I can trigger the bug on my desktop by running "git svn rebase" on a git mirror I have of a svn repository. I have tried this twice, once I left it running while I ate dinner just to check. I also noticed that I cannot log into my desktop using ssh, so I guess the entire computer has pretty much locked up.

My best assumption so far is that it is related to the recent upgrade to 3.1, but since I don't seem to find similar bug reports elsewhere, I am unsure what to think. ANY suggestions on what to look for in /var/log, or what I could try to do in order to figure out what is going on is highly welcome!
Comment 46 Volker Krause 2012-03-11 17:54:31 UTC
*** Bug 295203 has been marked as a duplicate of this bug. ***
Comment 47 Vishesh Handa 2013-08-17 11:33:11 UTC
There haven't been any new reported crashes for this bug for over 1.5 years now. Given that the code base of the feeder has changed substantially over the time, I'm marking this bug as FIXED.