2009/1/6 Henk Jan Priester <[email protected]>: > 2009/1/6 Gunnar Sletta <[email protected]>: >> Henk Jan Priester wrote: >>> >>> valgrind reports quite a lot of memory leaks when using the 'fantastic >>> new graphicssystem raster' >>> feature. >> >> Hi, >> >> I cannot reproduce this in the current snapshots when running a few >> examples. It does look like a bug I fixed in december, but it would be ncie >> to verify. Could you check against current snapshots? >> >> If its still reproducable, could you give me the code to reproduce? > > I will compile today's snapshot and verify this problem and the other > valgrind problem I had reported.
Have compiled qt-all-commercial-src-4.5.0-snapshot-20090106 and still get memory leaks when zooming in: ==1797== 67,276 (1,260 direct, 66,016 indirect) bytes in 21 blocks are definitely lost in loss record 94 of 102 ==1797== at 0x4024015: operator new(unsigned) (vg_replace_malloc.c:224) ==1797== by 0x82D0824: QRasterPaintEngine::clip(QVectorPath const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x8692B66: QPaintEngineEx::clip(QRegion const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x82BF5F3: QRasterPaintEngine::clip(QRegion const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x8285904: QPainter::setClipRegion(QRegion const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x84E3406: QMenu::paintEvent(QPaintEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x81F070C: QWidget::event(QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x84DE43C: QMenu::event(QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== ==1797== 5,600 bytes in 1 blocks are possibly lost in loss record 96 of 102 ==1797== at 0x40237E9: malloc (vg_replace_malloc.c:207) ==1797== by 0x82BE86C: QClipData::QClipData(int) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x82C4A80: QRasterPaintEngine::clip(QRect const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x8285D5C: QPainter::setClipRect(QRect const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x84EB160: QMenuBar::paintEvent(QPaintEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x81F070C: QWidget::event(QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x84EA14F: QMenuBar::event(QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x81AC749: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== ==1797== ==1797== 813,256 (8,940 direct, 804,316 indirect) bytes in 149 blocks are definitely lost in loss record 100 of 102 ==1797== at 0x4024015: operator new(unsigned) (vg_replace_malloc.c:224) ==1797== by 0x82C4A74: QRasterPaintEngine::clip(QRect const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x8285D5C: QPainter::setClipRect(QRect const&, Qt::ClipOperation) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x84EB160: QMenuBar::paintEvent(QPaintEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x81F070C: QWidget::event(QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x84EA14F: QMenuBar::event(QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x81AC749: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== by 0x81B16F9: QApplication::notify(QObject*, QEvent*) (in /home/jcsrctree/mtjcgmu42/montage2/justedit/justedit) ==1797== I have some time I will try to create a test program. Henk Jan > > Henk Jan > > >> >> best regards, >> Gunnar >> >>> ==615== 1,012,520 (9,660 direct, 1,002,860 indirect) bytes in 161 >>> blocks are definitely lost in loss record 81 of 112 >>> ==615== at 0x4004790: operator new(unsigned) (vg_replace_malloc.c:164) >>> ==615== by 0x82DED75: QRasterPaintEngine::clip(QRect const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x82D4A54: QRasterPaintEngine::clip(QVectorPath const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x86E4F92: QPaintEngineEx::clip(QRegion const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x82D1E70: QRasterPaintEngine::clip(QRegion const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x828D389: QPainter::setClipRegion(QRegion const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x8518EEE: QMenu::paintEvent(QPaintEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x81F05A9: QWidget::event(QEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x851D8D3: QMenu::event(QEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x81AB119: QApplicationPrivate::notify_helper(QObject*, >>> QEvent*) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x81AC1F3: QApplication::notify(QObject*, QEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x80C9EB8: EditApp::notify(QObject*, QEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> >>> ==615== 34,976 bytes in 9 blocks are possibly lost in loss record 109 of >>> 112 >>> ==615== at 0x40056BF: calloc (vg_replace_malloc.c:279) >>> ==615== by 0x82D4512: QClipData::QClipData(int) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x82DED81: QRasterPaintEngine::clip(QRect const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x82D4A54: QRasterPaintEngine::clip(QVectorPath const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x86E4F92: QPaintEngineEx::clip(QRegion const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x82D1E70: QRasterPaintEngine::clip(QRegion const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x828D389: QPainter::setClipRegion(QRegion const&, >>> Qt::ClipOperation) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x8518EEE: QMenu::paintEvent(QPaintEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x81F05A9: QWidget::event(QEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x851D8D3: QMenu::event(QEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x81AB119: QApplicationPrivate::notify_helper(QObject*, >>> QEvent*) (in /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> ==615== by 0x81AC1F3: QApplication::notify(QObject*, QEvent*) (in >>> /home/hj/mtjcgmu42/montage2/justedit/justedit) >>> >>> Henk Jan >>> _______________________________________________ >>> Qt4-preview-feedback mailing list >>> [email protected] >>> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback >> >> > _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
