Giter Club home page Giter Club logo

Comments (6)

leonardo-k avatar leonardo-k commented on June 26, 2024 1

thanks for the quick answer :)
the warning i get is

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 {"path":"/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/player0","interface":"org.freedesktop.DBus.Properties","member":"PropertiesChanged"} listeners added. Use emitter.setMaxListeners() to increase limit

i think that this warn is thrown because of the listeners added to get the "properties-changed" events inside _initXml inside proxy-object.js file , is that possible?
at now i haven't a test case, ill try to make one and post it when i can
thanks again!

from node-dbus-next.

acrisci avatar acrisci commented on June 26, 2024

There's probably a memory leak somewhere in the library. I've gotten this warning as well. I never tested the case where objects come and go in a loop because that's not what I was doing with it.

I would like to see this fixed. It would help if you could post the warnings you are getting and a minimal test case to show the bug.

If you want to look into the library and see what's going on that would be helpful as well.

from node-dbus-next.

leonardo-k avatar leonardo-k commented on June 26, 2024

hello , i've modified the proxy-object file and add a new method to it , give it a try when you can

call this method when you don't need anymore a proxy object (it free the internal listeners).
using this method before destroy the proxy-object made the memory leak gone in my app

from node-dbus-next.

leonardo-k avatar leonardo-k commented on June 26, 2024

i've modified the function removeAllEventListeners , we can call this function when we are destroyng a proxy obj in order to release ALL the listeners for _signals , you are rigth, that's a better behaviour

from node-dbus-next.

acrisci avatar acrisci commented on June 26, 2024

@leonardo-k can you look at bd08f64 and see if latest master fixes your issue without #30?

from node-dbus-next.

acrisci avatar acrisci commented on June 26, 2024

I believe this is resolved by that commit.

from node-dbus-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.