Hi Marco, thanks for looking at this!

Attached is a smaller test case. Compile it with:

g++ -fPIC -I /usr/include/x86_64-linux-gnu/qt5 -lQt5Core -lQt5Gui
-lQt5Widgets ./test.cpp

To me, the chain of objects looks like this:

unity-panel-service top-level menubar (created in panel-service.c:2540)
-> menu item for every indicator entry, including dead ones
   (created in panel-service.c:2566, added in panel-service.c:2589)
-> item submenu (created in indicator-application.c:555, added in 
panel-service.c:2590)
-> dbusmenu client (created in libdbusmenu-gtk/menu.c:402)
-> finally, each dbusmenu client maintains its own menu structure
   (and all clients are alive and massively send D-Bus requests)

The upstream commit is
https://github.com/owncloud/client/commit/98efb075357fa64f — it
contained other changes, so I did not cherry-pick all of it. The first
item in the commit message is relevant to us.

A question from me: is it possible to inspect unity-panel-service with
GTK+ Inspector somehow? I tried running it with GTK_DEBUG=interactive,
but the only object it shows to me is GtkSettings.

** Attachment added: "test.cpp"
   
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1635577/+attachment/4785986/+files/test.cpp

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1635577

Title:
  memory leak in unity-panel-service

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/owncloud-client/+bug/1635577/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to