Closed zackwag closed 2 years ago
I was just about to open an issue about this and came here and found this one. Interesting timing. I've been having a memory leak as well and working to find the root. I test individual plugins and narrowed it down to this one. I didn't catch the error in the logs though.
Interesting. If you could enable debug logging, that would help, so I can see what’s being constructed.
Sure. I've attached my log. Please ignore all the Homebridge Somneo
and Homebridge Connected Device Occupancy
. In debug mode, I log a lot of data
homebridge.log
.
Thanks for the report. Each device subscribes to receive unsolicited messages from the hub, and that has a default limit of 10. There's not actually a leak there (not related to that warning, anyway). @rcoletti116 how are you observing the memory leak?
@thenewwazoo I noticed my memory usage growing over time, eventually crashing my instance. I began monitoring and testing each plugin. Using htop and other tools on my pi I watched as the %mem grew for my child bridge for this plugin from 4% to 8% over a couple of hours. Then I disabled the plugin to test.
Hm. Can you open a new issue with the data you've collected, version info, and a listing of the devices you have (just a count is fine)?
Describe The Bug: Homebridge is returning an error during startup saying a memory leak has been encountered.
To Reproduce: Startup Homebridge.
Expected behavior: No error emitted
Logs:
Plugin Config:
Environment: