Bug 332304

Summary: KMail terminates after an exception thrown by Xapian
Product: [Frameworks and Libraries] Akonadi Reporter: Martin Flöser <mgraesslin>
Component: IndexerAssignee: Vishesh Handa <me>
Status: RESOLVED FIXED    
Severity: crash CC: chrigi_1, dvratil, me, montel
Priority: NOR    
Version: 4.13   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Martin Flöser 2014-03-19 07:49:39 UTC
KMail crashes whenever I try to search anything either in the search bar or in the email composer.

Reproducible: Always

Steps to Reproduce:
1. Start KMail
2. Try to search
Actual Results:  
Crash

Expected Results:  
search results

Terminal output from running KMail:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Xapian::DatabaseOpeningError'
*** KMail got signal 6 (Exiting)
*** Dead letters dumped.

Backtrace is useless (rethrown exception) and I didn't succeed yet in catching the exception with gdb.

Currently used git snapshots:
* kdepimlibs: a830b6c36510a3df55326c211c8b0813af4d2863
* kdepim: 16b142f5265851a4c22ced7427122933bce07134
* kdepim-runtime: c370d5e054e718b393f095393dc1d9ca545c2a73
Comment 1 Martin Flöser 2014-03-19 07:50:46 UTC
Obviously: I can apply patches and are very happy to try them or do anything to help investigate this problem.
Comment 2 Laurent Montel 2014-03-19 16:26:51 UTC
It's
Comment 3 Laurent Montel 2014-03-19 16:27:25 UTC
it's a bug in baloo. Vishesh works on.
Comment 4 Laurent Montel 2014-03-19 18:14:09 UTC
I have the same problem in knotes too
Comment 5 Vishesh Handa 2014-03-20 09:32:07 UTC
I think I have fixed the problem yesterday. Please re-open if it still happens.

I'm working on a mini Qt wrapper on top of xapian which is exception safe, so these kind of issues should become less prevalent.
Comment 6 Martin Flöser 2014-03-20 09:41:53 UTC
> I think I have fixed the problem yesterday. Please re-open if it still
> happens.

what does one need to re-compile?
Comment 7 Vishesh Handa 2014-03-20 09:56:15 UTC
Baloo