Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Heob indicating leak in qt_metacall()
Forum Updated to NodeBB v4.3 + New Features

Heob indicating leak in qt_metacall()

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 142 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leonardoMB
    wrote on last edited by
    #1

    Hi, in the software I'm working we have some "widgets" like a calculator widget, a text widget. These are like tabs we can create and delete. I can create 5 calculator for example, but are different.

    I was noticing some leakage if I create certain amounts, specifically 3 and 9.
    Heob shows me that stack trace are like the following:

    1: malloc in 
      2: operator new(unsigned long long) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/libstdc++-6.dll
      3: QHashData::rehash(int) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll
      4: QPixmapStyle::qt_metacall(QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      5: QProxyStyle::qt_metacall(QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      6: QProxyStyle::qt_metacall(QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      7: QMimeType::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll
      8: QObject::destroyed(QObject*) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll
      9: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      10: QLabel::~QLabel() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      11: QObjectPrivate::deleteChildren() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll
      12: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      13: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      14: QObjectPrivate::deleteChildren() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll
      15: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
      16: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
    

    This is a example, but it can vary in respect to who calls the qt_metacall(). if I use 3 objects the leak arise. if I use 9 the leak becomes half. Any ideas?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved