Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device dbus "match" leak #36

Closed
tuxedoxt opened this issue May 18, 2022 · 2 comments · Fixed by #37
Closed

Device dbus "match" leak #36

tuxedoxt opened this issue May 18, 2022 · 2 comments · Fixed by #37
Assignees

Comments

@tuxedoxt
Copy link
Contributor

Hello,

using Device.getDevice repeatedly causes registered dbus "matches" to accumulate. I traced it until that _removeMatch (dbus-next) triggers on event listener removal but doesn't really send the RemoveMatch message. Now not sure if this is a bug of this library or of dbus-next or if there's a version solving it.

This is one of two issues I noticed while repeatedly trying to enumerate a devices and read some properties from them (in a heavy BLE traffic area).

@ChocolateLoverRaj
Copy link

I got an error because of this leak. I started discovery and called getDevices() every second. After a few seconds I got this error:

DBusError: Connection ":1.45" is not allowed to add more match rules (increase limits in configuration file if required; max_match_rules_per_connection=512)

@ChocolateLoverRaj
Copy link

Device.getDevice

Do you mean Adapter.getDevice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants