Re: [Nepomuk] KMail completion spams nepomuk, which isn't parallelized

2012-07-09 Thread Ignacio Serantes
Hi, You don't see my last query I put in IRC before I leave because you are not connected. Please try this one:. SELECT DISTINCT ?email ?fullname WHERE { ?r a nco:Contact . { ?r nco:hasEmailAddress ?v0 . ?v0 nco:emailAddress ?v1 . FILTER(REGEX(STR(?v1), "^vau", "i")) . } union { ?r nco:

Re: [Nepomuk] Can virtuoso requests be cancelled?

2012-07-09 Thread Sebastian Trüg
On 07/09/2012 04:56 PM, David Faure wrote: So, I have these completion queries running for 27 minutes, even after I type another string to complete. Can virtuoso queries be cancelled while they're running? Looking at nepomukqueryservice I see that it's doing a blocking "wait for ready read" for

[Nepomuk] Can virtuoso requests be cancelled?

2012-07-09 Thread David Faure
So, I have these completion queries running for 27 minutes, even after I type another string to complete. Can virtuoso queries be cancelled while they're running? Looking at nepomukqueryservice I see that it's doing a blocking "wait for ready read" for 10 minutes on the soprano socket: #0 0x000

Re: [Nepomuk] [Kde-pim] nepomukqueryservice crash

2012-07-09 Thread David Faure
On Sunday 08 July 2012 13:00:55 Volker Krause wrote: > On Sunday 08 July 2012 09:40:32 David Faure wrote: > > On Saturday 07 July 2012 11:13:08 Volker Krause wrote: > > > On Friday 06 July 2012 14:44:30 David Faure wrote: > > > > I found the reason for the kmail composer window being disabled > > >

Re: [Nepomuk] [Kde-pim] nepomukqueryservice crash

2012-07-09 Thread David Faure
On Monday 09 July 2012 16:53:31 Vishesh Handa wrote: > I don't think it's a threading problem cause m_initMutex is locked before > deleting it, and before accessing it. That doesn't help. MainModel::executeQuery gets a pointer to a ClientModel inside the lock, and then return an iterator which ke

Re: [Nepomuk] [Kde-pim] nepomukqueryservice crash

2012-07-09 Thread David Faure
On Friday 06 July 2012 14:44:30 David Faure wrote: > 1) queryserviceclient should kill blocking queries when > _k_serviceUnregistered tells us the service crashed. > The attached patch works for me, OK if I commit it to all appropriate > branches? (kdelibs 4.8, kdelibs 4.9, nepomuk-core, akonadi ma

Re: [Nepomuk] nepomukqueryservice crash

2012-07-09 Thread David Faure
On Friday 06 July 2012 14:44:30 David Faure wrote: > Obviously the "delete localSocketModel" in nepomukmainmodel.cpp:82 is the > problem, I assume because it's used in another thread at the same time. OK after another look at the code, it's clearly because nepomukmainmodel.cpp:82 can delete the m

Re: [Nepomuk] [Kde-pim] nepomukqueryservice crash

2012-07-09 Thread David Faure
On Saturday 07 July 2012 11:13:08 Volker Krause wrote: > On Friday 06 July 2012 14:44:30 David Faure wrote: > > I found the reason for the kmail composer window being disabled forever, > > in > > some cases. > > > > A blocking nepomuk query from an akonadiserver thread never terminates, > > becaus

[Nepomuk] KMail completion spams nepomuk, which isn't parallelized

2012-07-09 Thread David Faure
Typing 10 letters in the kmail composer "To" field, leads to 10 autocompletion nepomuk queries, all of which create a different thread in the nepomukqueryservice, and they pile up, each waiting for the previous one to finish, because they use the same mutex-protected socket for the connection t

Re: [Nepomuk] kdelibs/nepomuk to nepomuk-core

2012-07-09 Thread laurent Montel
Le samedi 7 juillet 2012 03:17:34 Vishesh Handa a écrit : > On Fri, Jul 6, 2012 at 6:06 PM, laurent Montel wrote: > > Hi Vishesh > > > > I want to port kdepim trunk to nepomuk-core and "Nepomuk::Tag::allTags()" > > What function I must use now ? > > Well, I can provide an allTags function if you

[Nepomuk] nepomukqueryservice crash

2012-07-09 Thread David Faure
I found the reason for the kmail composer window being disabled forever, in some cases. A blocking nepomuk query from an akonadiserver thread never terminates, because nepomukqueryservice crashes meanwhile. This leads to two bugs: 1) queryserviceclient should kill blocking queries when _k_serv

Re: [Nepomuk] [Kde-pim] nepomukqueryservice crash

2012-07-09 Thread Volker Krause
On Monday 09 July 2012 16:44:43 Vishesh Handa wrote: > On Sun, Jul 8, 2012 at 4:30 PM, Volker Krause wrote: > > On Sunday 08 July 2012 09:40:32 David Faure wrote: > > > On Saturday 07 July 2012 11:13:08 Volker Krause wrote: > > > > On Friday 06 July 2012 14:44:30 David Faure wrote: > > > > > I fou

Re: [Nepomuk] [Kde-pim] nepomukqueryservice crash

2012-07-09 Thread Vishesh Handa
> -- Forwarded message -- > From: David Faure > To: nepomuk@kde.org > Cc: kde-...@kde.org > Date: Fri, 6 Jul 2012 12:44:30 + > Subject: [Kde-pim] nepomukqueryservice crash > I found the reason for the kmail composer window being disabled forever, in > some cases. > > 2) the cra

Re: [Nepomuk] [Kde-pim] nepomukqueryservice crash

2012-07-09 Thread Vishesh Handa
On Sun, Jul 8, 2012 at 4:30 PM, Volker Krause wrote: > On Sunday 08 July 2012 09:40:32 David Faure wrote: > > On Saturday 07 July 2012 11:13:08 Volker Krause wrote: > > > On Friday 06 July 2012 14:44:30 David Faure wrote: > > > > I found the reason for the kmail composer window being disabled > f