Memory leaks concerning DBus reported by valgrind
-
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?
-
Hi,
libdbus is not maintained by Qt, you should contact its authors.
-
@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).
-
@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.