[Digikam-devel] [Bug 278320] Crash with "-graphicssystem raster"

Marcel Wiesweg marcel.wiesweg at gmx.de
Sat Aug 6 15:48:55 BST 2011


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





--- Comment #8 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-08-06 14:48:54 ---
This is indeed a digikam bug, but a very subtle one. valgrind helped.
We need to create a pixmap from our custom image class DImg. For this
conversion, we need a temporary QImage: DImg -> QImage -> QPixmap.  As an
optimization, we create a temporary QImage on the DImg data without any memcpy.
This QImage is invalid when the DImg is destroyed. For native systems, the
QPixmap data is copied to graphics memory. But not for raster: Here, QPixmap is
internally based on QImage, and, if possible, will just take the QImage which
we provide => crash when the DImg is destroyed on which the QImage and thus
QPixmap is based

-- 
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