[Digikam-devel] [Bug 263272] Face Detection crashes on folders containing videos

Andrew Coles andrew_coles at yahoo.co.uk
Tue Jan 18 18:36:50 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=263272





--- Comment #8 from Andrew Coles <andrew_coles yahoo co uk>  2011-01-18 19:36:48 ---
Some more detective with: the problem is caused by two threads, running at the
same time, calling LoadSaveThread::run() on the same LoadSaveThread object -
and hence sharing the same memory location for m_currentTask.  Thus:

  i) Thread A sets m_currentTask to a PreviewLoadingTask foo, and calls execute

 ii) Thread B starts, deleting m_currentTask (i.e. foo), sets m_currentTask to
a different PreviewLoadingTask, calls execute

iii) As part of PreviewLoadingTask::execute(), thread B calls
notifyNewLoadingProcess, which tries to call notifyNewLoadingProcess on foo -
which has since been deleted.

Its step (iii) which leads to the error 'pure virtual method called', but the
problem is somewhere in the code the same LoadSaveThread object is being used
as the basis of two executing threads.

I'll carry on working backwards, see if I can work out where that is.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list