dasbus icon indicating copy to clipboard operation
dasbus copied to clipboard

Probable memory leak in dasbus server handler

Open wdouglass opened this issue 3 years ago • 4 comments

Consider the following script one.py.txt

If this script is run, and the following loop is run in another (bash) window

while busctl --user call com.carnegierobotics.test /com/carnegierobotics/test com.carnegierobotics.dasbus.test One; do echo "DONE"; done

resident memory seems to grow indefinitely. Not sure if this is a dasbus bug or a glib bug.

wdouglass avatar Feb 08 '22 22:02 wdouglass

may be related to https://github.com/rhinstaller/dasbus/discussions/75

tjoslin avatar Feb 08 '22 22:02 tjoslin

investigating glib as a source of this problem https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2478

if that ends up getting merged to glib, i'll close this issue

wdouglass avatar Feb 09 '22 14:02 wdouglass

Thanks for the investigation!

poncovka avatar Feb 09 '22 16:02 poncovka

#81 resolves the leak that is testable in the one.py script included here. The upstream glib investigation ended up being a red herring.

tjoslin avatar Feb 09 '22 19:02 tjoslin