Bug 332201 - baloo_file error Qt has caught an exception thrown from an event handle
Summary: baloo_file error Qt has caught an exception thrown from an event handle
Status: RESOLVED FIXED
Alias: None
Product: Baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords:
: 332379 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-16 08:21 UTC by Bruno Friedmann
Modified: 2014-03-21 16:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Full session of baloo_file run in console (290.19 KB, text/plain)
2014-03-16 14:41 UTC, Bruno Friedmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Friedmann 2014-03-16 08:21:30 UTC
Baloo has indexed a number of files but not all
console log indicate a crash

Reproducible: Didn't try

Steps to Reproduce:
1. Cleanup baloo DB files and baloorc
2. run baloo_file 
3. check message on console
Actual Results:  
baloo_file(27120): Indexer crashed while indexing 32477
baloo_file(27120): Blacklisting this file
QProcess: Destroyed while process is still running.
QCoreApplication::postEvent: Unexpected null receiver
baloo_file(27120): Indexer crashed while indexing 32477
baloo_file(27120): Blacklisting this file
QProcess: Destroyed while process is still running.
QProcess: Destroyed while process is still running.
QProcess: Destroyed while process is still running.
QProcess: Destroyed while process is still running.
QProcess: Destroyed while process is still running.
QProcess: Destroyed while process is still running.
baloo_file(27120): Indexer crashed while indexing 32476
baloo_file(27120): Blacklisting this file
QProcess: Destroyed while process is still running.
baloo_file(27120): Indexer crashed while indexing 32477
baloo_file(27120): Blacklisting this file
QProcess: Destroyed while process is still running.
QCoreApplication::postEvent: Unexpected null receiver
baloo_file(27120): Indexer crashed while indexing 32477
baloo_file(27120): Blacklisting this file
baloo_file(27120): Indexer crashed while indexing 39396
baloo_file(27120): Blacklisting this file
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::DatabaseModifiedError'
Aborted

Expected Results:  
Indexation done for xxxx files.
Comment 1 Bruno Friedmann 2014-03-16 14:40:49 UTC
Reproductible : I've run manually baloo_file in konsole

baloo_file 

end of the log ....
(full log see attachement)

baloo_file(4344) Baloo::CommitQueue::commit: SQL Committed
baloo_file(4344): Unable to get write lock on /home/bruno/.kde4/share/apps/baloo/file/: already locked 
baloo_file(4344) Baloo::FileIndexingJob::start: ("51828", "51818", "51815", "51808", "51804", "51802", "51801", "51800", "51799", "51789", "51752", "51577", "51575", "51573", "51572", "51563", "51560", "51548", "51547", "51544", "51539", "51538", "51522", "51511", "51506", "51490", "51488", "51487", "51480", "51478", "51477", "51469", "42945", "9552", "51851", "51830", "51808", "51789", "51752", "51488")
baloo_file(4344) Baloo::CommitQueue::commit: SQL Committed
baloo_file(4344): Unable to get write lock on /home/bruno/.kde4/share/apps/baloo/file/: already locked 
baloo_file(4344) Baloo::CommitQueue::commit: SQL Committed
baloo_file(4344): Unable to get write lock on /home/bruno/.kde4/share/apps/baloo/file/: already locked 
baloo_file(4344) Baloo::CommitQueue::commit: SQL Committed
baloo_file(4344): Unable to get write lock on /home/bruno/.kde4/share/apps/baloo/file/: already locked 
baloo_file(4344) Baloo::CommitQueue::commit: SQL Committed
baloo_file(4344) Baloo::CommitQueue::commit: Adding: 3 docs
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::DatabaseModifiedError'
Aborted
Comment 2 Bruno Friedmann 2014-03-16 14:41:37 UTC
Created attachment 85602 [details]
Full session of baloo_file run in console
Comment 3 Hrvoje Senjan 2014-03-21 14:16:26 UTC
(beta3, not resolved)
Comment 4 Vishesh Handa 2014-03-21 16:48:48 UTC
*** Bug 332379 has been marked as a duplicate of this bug. ***
Comment 5 Vishesh Handa 2014-03-21 16:56:32 UTC
Git commit 5d20b752fb449134d2e9d95be94718a83146e7bd by Vishesh Handa.
Committed on 21/03/2014 at 16:57.
Pushed by vhanda into branch 'KDE/4.13'.

Catch a Xapian::DatabaseModifiedException just in case

The Xapian::WritableDatabase should not be emitting this exception but
bug reports seem to indicate otherwise.

M  +7    -2    src/file/commitqueue.cpp

http://commits.kde.org/baloo/5d20b752fb449134d2e9d95be94718a83146e7bd