[Kde-pim] "Hanging" Jobs keeping Kontact process alive

Andre Heinecke aheinecke at intevation.de
Sun Jul 17 12:04:44 BST 2011


Hi,
it was reported to by some Users that under some circumstances
(which are still a bit unclear) that the Kontact process does not terminate
and needs to be killed in order to restart Kontact.
( https://bugs.kde.org/show_bug.cgi?id=222878 )

I could reliably reproduce this when i did not have kdepim-runtime installed
Kontact would then stay alive forever when you close it.

Most of you will know this but let me explain here how I understand this 
happens: most KDE applications maintain a ref count in KGlobal and each time 
a job is started or some window is created that should keep the process alive 
this ref count is increased and when it is destroyed or finished this ref 
count is decreased. When it reaches 0 the process is closed.

Now I've added debug output there and it showed that when Kontact is closed
6 refs are still active. With adding kbacktrace output i could see that
those 6 were all "Akonadi::SpecialMailCollectionsRequestJob".
As i understand it they can not find a Collection but do not fail and
stay alive indefinetly thus causing Kontact to stay alive.

Akonadiconsole's job tracker shows the same story after closing Kontact the 6 
jobs remain in initial state.

This might be a special case when there are no mail ressources but might
be related to other reports of "Zombie Kontact's". Sadly I know little
about the Akonadi jobs and do not see why it does not fail or how to fix this 
properly, so i hope that with this information someone else here could pick
up the task of fixing that problem. Or offer some information on how this can 
happen.

I would happily test some patches or add more debug output if necessary.

The debug output created from backtracing the ref / deref calls can be seen 
here: http://paste.kde.org/97813/

Regards,
Andre

-- 
Andre Heinecke |  ++49-541-335083-262 |  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-- 
Andre Heinecke |  ++49-541-335083-262 |  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list