Bug 311064 - Virtuoso-t using 100% CPU when displaying some e-mail
Summary: Virtuoso-t using 100% CPU when displaying some e-mail
Status: RESOLVED FIXED
Alias: None
Product: nepomuk
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: git master
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Nepomuk Bugs Coordination
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-03 09:02 UTC by Jure Repinc
Modified: 2014-05-17 17:22 UTC (History)
5 users (show)

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


Attachments
mail.mbox (164.94 KB, application/mbox)
2012-12-03 09:05 UTC, Jure Repinc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2012-12-03 09:02:57 UTC
I have e-mail indexing disabled yet it still happens sometimes that when I click on a mail in KMail virtuoso-t starts to consume 100% of CPU . When this is the case all work in KMail is blocked in a sense that when I click on another mail  all I get instead of contents is the message "Retrievig Folder Contents, Please Wait". Sometimes all is fine after a couple of minutes, but other times it never stops

As it currently is happening this are all active query strings:
jlp@stargazer ~ $ qdbus org.kde.nepomuk.services.nepomukqueryservice /nepomukqueryservice/query1 queryString
select distinct ?r where { ?r a <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag> . }
jlp@stargazer ~ $ qdbus org.kde.nepomuk.services.nepomukqueryservice /nepomukqueryservice/query2 queryString
select distinct ?r where { ?r a <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag> . }
jlp@stargazer ~ $ qdbus org.kde.nepomuk.services.nepomukqueryservice /nepomukqueryservice/query316 queryString
prefix nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT ?person ?reqProp1 WHERE {        ?person <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 .     ?person nco:hasEmailAddress ?email .     ?email nco:emailAddress "jlp@holodeck1.com"^^<http://www.w3.org/2001/XMLSchema#string> .    }

It looks like the problematic emails are those from mailing lists and those contaning links


Reproducible: Sometimes

Steps to Reproduce:
1. Open KMail
2. Click around on e-mails to show them in message viewer
Actual Results:  
Sometimes virtuoso-t starts using 100% of CPU and blocks displaying other email

Expected Results:  
virtuoso-t shouls not use 100% of CPU for so long and it should not block displaying othrt emails even if it used !00% of CPU
Comment 1 Jure Repinc 2012-12-03 09:05:40 UTC
Created attachment 75602 [details]
mail.mbox

Example e-mail that causes 100% CPU use for a long time
Comment 2 Vishesh Handa 2012-12-03 09:12:18 UTC
Are you sure this is relevant to Nepomuk? The emails aren't fetched from Nepomuk. Neither is the email metadata. It's only used when searching for emails.

Arguably, we don't do a very good job of that, but still, that shouldn't cause the delay you're experiencing.

Marking this bug as "UNCONFIRMED" for now.
Comment 3 Jure Repinc 2012-12-03 12:43:09 UTC
Well I'm almost sure, becase it does happen that when I click on one of those (LinkedIn mails with many links in them are especially good for trigering this) e-mails virtuoso-t starts to burn CPU.
Comment 4 Fabio Coatti 2013-02-12 07:25:52 UTC
Same behaviour here, kde-4.10/qt 4.8.4 - gentoo packages.
basically, whenever I open an email with links in kmail, jumping to next email becomes a pain :)
Comment 5 Fabio Coatti 2013-03-08 07:30:09 UTC
The issue is still present in kde 4.10.1: bsically this makes kmail unusable.
Comment 6 Erasmo Caponio 2013-04-08 17:19:34 UTC
A workaround could be to clean nepomuk database by using the nepomuk cleaner app.
Give it a try!
Comment 7 Vishesh Handa 2013-08-11 07:26:19 UTC
Ping?

dfaure and I fixed some of the issues related to this during Akademy, however he was still getting the "Retrievig Folder Contents, Please Wait" message, but when he tried to show it to me it started working. I too tried to reproduce the problem, and the moment I did my wifi driver segfaulted. Since then none of us has been able to reproduce it.

Can any of you check if you still encounter this problem with 4.11?
Comment 8 Andrius Štikonas 2014-05-16 13:10:47 UTC
I haven't seen this issue for some time. I think it is fixed.
Comment 9 Vishesh Handa 2014-05-17 17:22:41 UTC
Fixed. Nepomuk is no longer used in Akonadi.