Summary: | kmail crashes when searching in quick filter | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Simon Hausmann <hausmann> |
Component: | search | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | me, montel |
Priority: | NOR | ||
Version: | 4.13.0 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.13.3 | |
Sentry Crash Report: |
Description
Simon Hausmann
2014-05-21 06:44:40 UTC
BTW, contents of ~/.local/share/baloo/email: total 118068 -rw-r--r-- 1 shausman shausman 0 May 21 08:37 flintlock -rw-r--r-- 1 shausman shausman 28 Apr 22 15:17 iamchert -rw-rw-r-- 1 shausman shausman 0 Apr 23 09:39 postlist.baseA -rw-rw-r-- 1 shausman shausman 0 Apr 23 09:39 postlist.baseB -rw-r--r-- 1 shausman shausman 53772288 Apr 23 09:39 postlist.DB -rw-rw-r-- 1 shausman shausman 0 Apr 23 09:39 record.baseB -rw-r--r-- 1 shausman shausman 8732672 Apr 23 09:39 record.DB -rw-rw-r-- 1 shausman shausman 0 Apr 23 09:39 termlist.baseB -rw-r--r-- 1 shausman shausman 58392576 Apr 23 09:39 termlist.DB Ok I think that I found pb I will send a fix soon. finally we fixed it in 4.13.1 see: const QString dir = KGlobal::dirs()->localxdgdatadir() + "baloo/email/"; Xapian::Database db; try { db = Xapian::Database(QFile::encodeName(dir).constData()); } catch (const Xapian::DatabaseError& e) { kWarning() << "Failed to open Xapian database:" << QString::fromStdString(e.get_error_string()); return ResultIterator(); } => we catch error. It's in baloo. Are you sure it's fixed? It seems commit 4d34a8286295d1eef2be24959fc51249b4322ec1 in baloo introduced this, but git tag --contains=4d34a8286295d1eef2be24959fc51249b4322ec1 suggests that fix is also in 4.13.0, which I'm running. Indeed that exception is caught and I can see the output of it. But we still get a crash later (see the second throw!) This code fixed this type of crash. I will investigate it. I reopen it for the moment I'm sorry, I wish I had a line number for the second throw :( Any idea how to re-create the baloo database, btw? akonadictl stop rm -rf .kde/share/config/baloorc akondictl start :) Ok, I've deleted the existing database files in the baloo/email/ folder, restarted akonadi, waited until it indexed all my huge folders and now kmail doesn't crash anymore neither. Perhaps the database was corrupt or incomplete before that? I understand that this might be difficult to reproduce at your end, so feel free to close this bug again. I caught some other exceptions in baloo when we create database or access to it I hope that it fixes your crash (but I can't reproduce). It's in 4.13.3 I close it. Reopen if necessary in 4.13.3 |