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. Why does Valgrind show me over a 1000 errors related to Qt header files?
Forum Updated to NodeBB v4.3 + New Features

Why does Valgrind show me over a 1000 errors related to Qt header files?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 685 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.
  • C Offline
    C Offline
    coldspark29
    wrote on last edited by
    #1

    I have created my first application and the functionality is great so far, apart from that it crashes occasionally. So after settings up Qt Creator for Valgrind, I ran it and it shows me over a 1000 errors.

    Here is a small excerpt of the log

    https://pastebin.com/ytLF80Ph

    What puzzles me is that these errors seem to be related to Qt libraries. I use Qt 5.15.1 because the cross-compilation guide I found the Raspberry Pi was for this version. I know it is a bit old, but could it be that it is buggy?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      It's not that old although you should rather use 5.15.2.

      That said, you should create a suppression file so you can concentrate on your project.

      Note that Qt Creator already has support for Valgrind although I do not know whether it does the suppression automatically.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C Offline
        C Offline
        coldspark29
        wrote on last edited by coldspark29
        #3

        @SGaist Thanks, unfortunately the scripts for parsing the suppression that he mentions, doesn't work.

        EDIT: Well, it doesn't work on the Pi, but on my laptop it does. Will have to look into this further and create some wildcards I guess. Why isn't there an easy way to suppress Qt libararies in Qt Creator?

        Christian EhrlicherC 1 Reply Last reply
        0
        • C coldspark29

          @SGaist Thanks, unfortunately the scripts for parsing the suppression that he mentions, doesn't work.

          EDIT: Well, it doesn't work on the Pi, but on my laptop it does. Will have to look into this further and create some wildcards I guess. Why isn't there an easy way to suppress Qt libararies in Qt Creator?

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @coldspark29 said in Why does Valgrind show me over a 1000 errors related to Qt header files?:

          Why isn't there an easy way to suppress Qt libararies in Qt Creator?

          Because it's valgrind which spills out the errors, not QtCreator.
          Every valgrind version also might complain about different stuff - who should maintain this (and why)?

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • C Offline
            C Offline
            coldspark29
            wrote on last edited by
            #5

            @Christian-Ehrlicher I guess that is a valid point. Pity that the suppression file doesn't work.

            JonBJ 1 Reply Last reply
            0
            • C coldspark29

              @Christian-Ehrlicher I guess that is a valid point. Pity that the suppression file doesn't work.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @coldspark29
              One thing you should ensure you have. (Assuming you are using the Memcheck valgrind.) There is a "filter" icon just above where Creator shows valgrind's output. Make sure you have checked the box to filter out external errors (I think it is unchecked by default). Under Ubuntu at least I get 34 external errors always, this removes them so that I do not get anything spurious. Worth a try at least in your situation.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                coldspark29
                wrote on last edited by
                #7

                @JonB Thanks, I will try that. But at the moment I can't even run the app, because I tried upgrading to 5.15.2.

                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