Skip to content

Memory leak in server #83

@sattlma

Description

@sattlma

Hi,

when I start the a simple pair of client and server application, the used memory of the server application is rising quickly. The example is derived from the supplied "clientserver" example.

The test() method on the com.test service is called by the client via D-Bus repeatedly.

class TestObject(object):
    """
        <node>
            <interface name='com.test'>
                <method name='test'>
                    <arg type='u' name='response' direction='out'/>
                </method>                
            </interface>
        </node>
    """
    def __init__(self, loop):
        self.loop = loop
    
    def test(self):
        #print("test")
        return 42;

if (__name__ == '__main__'):
    loop = GLib.MainLoop()
    bus = SessionBus()
    bus.publish("com.test", TestObject(loop)
    )
    loop.run()

memtest.zip

Greetings,
Matthias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions