[Digikam-devel] [digikam] [Bug 326959] Digikam crash while scanning pictures for thumnails maintenance

Gilles Caulier caulier.gilles at gmail.com
Fri Nov 1 08:54:23 GMT 2013


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

Gilles Caulier <caulier.gilles at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcel.wiesweg at gmx.de
          Component|general                     |Progress Manager

--- Comment #15 from Gilles Caulier <caulier.gilles at gmail.com> ---
Marcel,

I can reproduce this crash here when digikam main window is reduced and
restored quickly while a progress task (thumbnails generator for ex) is
processed.

The trace said :

[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been
called
[xcb] Aborting, sorry about that.
digikam: xcb_io.c :274 : poll_for_event:  l'assertion «
!xcb_xlib_threads_sequence_lost » a échoué.
KCrash: Application 'digikam' crashing...
X Error: BadImplementation (server does not implement operation) 17
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x0
digikam: Fatal IO error: client killed

After investigations, i identified that my patch below is the problem :

https://bugs.kde.org/show_bug.cgi?id=302810#c5

... especially, the QEventLoop that i plugin in ProgressManager class here :

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/progressmanager/progressmanager.cpp#L384

I use it to wait progressitems cancellation when digiKam is closed (see bug
#302810)

Why i cannot use QEventLoop here ?
Or i use it in the wrong way ? 

I suspect that ProgressManager run in a separated thread, and X11 don't like
it... But it's not the case... right ?

Gilles

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list