Comments (6)
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.
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.
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.
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.
@leonardo-k can you look at bd08f64 and see if latest master fixes your issue without #30?
from node-dbus-next.
I believe this is resolved by that commit.
from node-dbus-next.
Related Issues (20)
- support TypeScript decorators HOT 2
- Logging errors from event handlers HOT 2
- ProxyObject or Interface went away event missing
- automatic (de)serialization to Variant dicts
- Unable to serialize a{sa{sv}} HOT 2
- no response frpm method
- New release
- Notification example?
- Multiple D-Bus errors occur (application runs fine, however) HOT 1
- Bug: Nodes not added to ProxyObject with root path ("/")
- Vulnerability in `[email protected]` dependency HOT 2
- DBUS_COOKIE_SHA1 auth does not work at all
- Project seems dead HOT 1
- Add access to message in method handler HOT 1
- systemd service HOT 2
- Issue when trying to fetch mpris tracks metadata HOT 1
- Initial signals lost when no previous method call have been made
- Can't bundle it because of `usocket` library HOT 2
- Subscribe to `NameOwnerChanged` by default HOT 3
- Consider using ECMAScript modules? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-dbus-next.