Help! Why QSGDefaultPainterNode causes memoryleak instance unsigned char[]
-
my code
void QmlCustomPlot::paint( QPainter* painter ) { if (m_plot) { QPixmap picture( boundingRect().size().toSize() ); picture.fill(Qt::transparent); QCPPainter qcpPainter( &picture ); m_plot->toPainter( &qcpPainter); painter->drawPixmap( QPoint(), picture ); } }
leak stack
kernel32.dll!0x7ff87072e8d7()
Qt6Guid.dll!QImageData::create() - 行 147
Qt6Guid.dll!QImage::QImage() - 行 822
Qt6Guid.dll!QImage::QImage() - 行 807
Qt6Guid.dll!QImage::copy() - 行 1226
Qt6Guid.dll!QImage::detach() - 行 1131
Qt6Guid.dll!QPainter::begin() - 行 1714
Qt6Quickd.dll!QSGDefaultPainterNode::paint() - 行 79
Qt6Quickd.dll!QSGDefaultPainterNode::update() - 行 136
Qt6Quickd.dll!QQuickPaintedItem::updatePaintNode() - 行 554
Qt6Quickd.dll!QQuickWindowPrivate::updateDirtyNode() - 行 2271
Qt6Quickd.dll!QQuickWindowPrivate::updateDirtyNodes() - 行 2014
Qt6Quickd.dll!QQuickWindowPrivate::syncSceneGraph() - 行 568
Qt6Quickd.dll!QSGRenderThread::sync() - 行 554
Qt6Quickd.dll!QSGRenderThread::syncAndRender() - 行 719
Qt6Quickd.dll!QSGRenderThread::run() - 行 979
Qt6Cored.dll!QThreadPrivate::start() - 行 273{C++}(unsigned char*)0X27A0730C070,1115808 = 0x0000027a0730c070 "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0...
-
How did you find this? Please use a proper tool for this and provide a minimal, compilable example to reproduce the problem. The stack does not match to your code at all.
-
How did you find this? Please use a proper tool for this and provide a minimal, compilable example to reproduce the problem. The stack does not match to your code at all.
-
This tells me nothing - we need a minimal, compilable example to reproduce the problem and you have to use a proper memory checking tool.