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. Memory leaks concerning DBus reported by valgrind
Forum Updated to NodeBB v4.3 + New Features

Memory leaks concerning DBus reported by valgrind

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 557 Views 2 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.
  • R Offline
    R Offline
    Robert Hairgrove
    wrote on last edited by
    #1

    I get 33 issues from valgrind when I merely open my desktop GUI app and then close it again. However, none of them seem to have anything to do with my own code, but mostly from libdbus.

    I've seen a lot of Google topics concerning DBus and memory leaks. But can I compile and run my application without it on Linux Ubuntu 18.04 with GNOME and Qt 5.11.1?

    How about Windows? Is DBus even needed?

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

      Hi,

      libdbus is not maintained by Qt, you should contact its authors.

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

      R 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        libdbus is not maintained by Qt, you should contact its authors.

        R Offline
        R Offline
        Robert Hairgrove
        wrote on last edited by Robert Hairgrove
        #3

        @SGaist I suppose I didn't word my question plainly enough:

        I would like to get rid of DBus entirely, but I have the feeling that it is not possible because somehow Qt depends on it.

        Is this true? And if so, does it apply to Windows as well?

        (EDIT: I can live with it if it is just Linux/Ubuntu that needs it; but I would rather not have it in the Windows version if possible).

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by Christian Ehrlicher
          #4

          @Robert-Hairgrove said in Memory leaks concerning DBus reported by valgrind:

          but I would rather not have it in the Windows version if possible).

          Then don't use anything which requires QtDBus - neither Core, Gui, Networks, SQL, XML or Widgets needs it.
          And as I said in another thread - you have to classify the 'memleaks'. There are one-time leaks which don't hurt at all and others which are filling up space since the memory is allocated again and again - and those are the ones you have to take care for. For the others simply create a suppression file and you're fine.

          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
          2

          • Login

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