PDA

View Full Version : DrMemory and Qt5



Carlsberg
1st June 2013, 08:07
I was using this DrMemory program to check for memory leaks, and only from starting and closing the application I get about 160 leak reports, all in the same place: QLocalePrivate::decimal. They look like this


Error #3936: LEAK 12 direct bytes 0x0290ad38-0x0290ad44 + 0 indirect bytes
# 0 Qt5Core.dll!QLocalePrivate::decimal +0x24 (0x5b1f3e45 <Qt5Core.dll+0x23e45>)
# 1 Qt5Gui.dll!QCss::ValueExtractor::extractBox +0xf3 (0x5aecced4 <Qt5Gui.dll+0xfced4>)
# 2 Qt5Widgets.dll!QStyleSheetStyle::renderRule +0x235 (0x5aa16186 <Qt5Widgets.dll+0x86186>)
# 3 Qt5Widgets.dll!QStyleSheetStyle::setGeometry +0x31 (0x5aa16d02 <Qt5Widgets.dll+0x86d02>)
# 4 Qt5Widgets.dll!QStyleSheetStyle::polish +0xe2 (0x5aa14623 <Qt5Widgets.dll+0x84623>)
# 5 Qt5Widgets.dll!QStyleSheetStyle::unsetPalette +0x421 (0x5aa1dfd2 <Qt5Widgets.dll+0x8dfd2>)
# 6 Qt5Widgets.dll!QStyleSheetStyle::repolish +0x8b (0x5aa16b6c <Qt5Widgets.dll+0x86b6c>)
# 7 Qt5Widgets.dll!QWidget::setStyleSheet


ERRORS FOUND:
3 unique, 8 total unaddressable access(es)
3821 unique, 59963 total uninitialized access(es)
0 unique, 0 total invalid heap argument(s)
0 unique, 0 total GDI usage error(s)
0 unique, 0 total warning(s)
165 unique, 993 total, 50180 byte(s) of leak(s)
4 unique, 4 total, 9356 byte(s) of possible leak(s)
ERRORS IGNORED:
905 still-reachable allocation(s)
(re-run with "-show_reachable" for details)

The stacks are various, but they all end up in QLocalePrivate::decimal.

Is this a real problem?

Thank you

Lykurg
1st June 2013, 08:45
Hm,


QChar decimal() const { return QChar(m_data->m_decimal); }

don't looks like that could be a memory leak.

Carlsberg
1st June 2013, 09:07
Yeah, I end up there too, but I'm not familiar with the Qt code too much, that's why I was wondering.