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. Common framework leaks on 5.0.1
Qt 6.11 is out! See what's new in the release blog

Common framework leaks on 5.0.1

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 762 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    stream13
    wrote on last edited by
    #1

    Hi everyone!

    I am a total novice in Qt, please don't be strict.
    I have written simple app using Qt, and found some leaks. Those leak's traces go inside of a framework.
    Then I made an empty GUI project, and launched valgrind.

    valgrind --leak-check=yes --track-origins=yes --show-reachable=yes -v ./sample_app

    [...]
    ==5000== LEAK SUMMARY:
    ==5000== definitely lost: 16,060 bytes in 66 blocks
    ==5000== indirectly lost: 96,134 bytes in 1,644 blocks
    ==5000== possibly lost: 13,540 bytes in 105 blocks
    ==5000== still reachable: 80,759 bytes in 514 blocks
    ==5000== suppressed: 0 bytes in 0 blocks
    ==5000==
    ==5000== ERROR SUMMARY: 108 errors from 108 contexts (suppressed: 3 from 3)

    And of course system configs:
    root@main:~# cat /etc/lsb-release | grep "DESC" ; uname -i ; aptitude show libqt5core5 | grep Vers
    DISTRIB_DESCRIPTION="Ubuntu 13.04"
    x86_64
    Version: 5.0.1+dfsg-0ubuntu4

    What should I do reduce leaks? Build Qt from sources? Use another version?
    Any ideas?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Valgrind is know for producing false positives for Qt libraries. You - probably - don't need to worry about those.

      (Z(:^

      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