[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 263272] Face Detection crashes on folders containing videos
From:       Andrew Coles <andrew_coles () yahoo ! co ! uk>
Date:       2011-01-18 18:36:50
Message-ID: 20110118183650.5BD397AB99 () immanuel ! kde ! org
[Download RAW message or body]

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 watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic