Results 1 to 3 of 3

Thread: DrMemory and Qt5

  1. #1
    Join Date
    May 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default DrMemory and Qt5

    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

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

    Qt Code:
    1. ERRORS FOUND:
    2. 3 unique, 8 total unaddressable access(es)
    3. 3821 unique, 59963 total uninitialized access(es)
    4. 0 unique, 0 total invalid heap argument(s)
    5. 0 unique, 0 total GDI usage error(s)
    6. 0 unique, 0 total warning(s)
    7. 165 unique, 993 total, 50180 byte(s) of leak(s)
    8. 4 unique, 4 total, 9356 byte(s) of possible leak(s)
    9. ERRORS IGNORED:
    10. 905 still-reachable allocation(s)
    11. (re-run with "-show_reachable" for details)
    To copy to clipboard, switch view to plain text mode 

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

    Is this a real problem?

    Thank you

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: DrMemory and Qt5

    Hm,

    Qt Code:
    1. QChar decimal() const { return QChar(m_data->m_decimal); }
    To copy to clipboard, switch view to plain text mode 

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

  3. #3
    Join Date
    May 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default Re: DrMemory and Qt5

    Yeah, I end up there too, but I'm not familiar with the Qt code too much, that's why I was wondering.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.