[Kde-pim] Investigating a bug in KMail Search

Daniel Vrátil dvratil at kde.org
Mon Jan 18 17:28:44 GMT 2016


On pondělí 18. ledna 2016 9:03:14 CET Tom Warnke wrote:
> Hi all,

Hi Tom!

> 
> I've be investigating a bug in the search of KMail that has been the subject
> of the following bug reports:
> https://bugs.kde.org/show_bug.cgi?id=352472
> https://bugs.kde.org/show_bug.cgi?id=353671
> https://bugs.kde.org/show_bug.cgi?id=353318
> https://bugs.kde.org/show_bug.cgi?id=354406
> https://bugs.kde.org/show_bug.cgi?id=353675
> 
> The symptoms are:
> 1) Sometimes, when search folders are deleted, the tree view in the left
> pane of KMail gets messed up. Empty lines, account order is wrong etc. This
> can be fixed by restarting KMail.

This is probably a bug in one of the many many proxy models. It's not related 
to the Search Folder directly, it can be reproduced whenever a top-level entry 
in the collection tree is removed.

> 2) Existing search folders cannot be modified. They will always show the
> results that they showed when they were created, no matter how the query is
> changed.

That sounds like a bug in the Akonadi server.


> 3) New searches and search folders return no results most of the time. If
> they return results, they are sometimes wrong.

:(

> 
> einar77 (don't know if he's on this list) told me on IRC that issue 1) is
> related to the Entity Tree Model that is somehow disconnected from the view
> in KMail.

Could also be the reason. You can use a tool called GammaRay to introspect the 
KMail models (and much more) and see on which level things go wrong.

> 
> To look into the issues, I cloned the source of KMail 5.1.1, set up a build
> environment and stepped through searchwindow.cpp with QT Creator. However, I
> could not find something wrong. I would like to continue looking in
> Akonadi. My question is: What is the best way to debug Akonadi with all its
> subprojects and processes?

The window is really just a window, the actual search functionality is 
implemented in Akonadi server and friends. Basically for the search, you are 
really only interested in three components: 
  * Akonadi Indexing Agent (from akonadi-search.git repository), which takes 
    care of indexing all data in Akonadi and storing them in an index database
  * Akonadi Search Plugin (also from akonadi-search.git), which is loaded by 
	 the Akonadi Server and allows it to search in the index database
  * Akonadi Server (from akonadi.git) - the Akonadi Server itself, which 
	 manages the search collections and the results and keeps them up-to-date

> Sorry for the long mail. I've been a user of the KDE PIM suite for years,
> but have just started looking at the inside. I'm just trying to make sure I
> did not make an obvious mistake :-)

No worries, if you have any questions, feel free to ask here on or IRC.

Thanks for looking into these issues!


Dan

> 
> Best,
> Tom
> _______________________________________________
> 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/


-- 
Daniel Vrátil
www.dvratil.cz | dvratil at kde.org
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)

GPG Key: 0x4D69557AECB13683
Fingerprint: 0ABD FA55 A4E6 BEA9 9A83 EA97 4D69 557A ECB1 3683
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20160118/dd28576d/attachment.sig>
-------------- next part --------------
_______________________________________________
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