Skip to content

Device dbus "match" leak #36

Closed
Closed

Description

@tuxedoxt

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).

Activity

  1. ChocolateLoverRaj commented on Sep 3, 2022

    @ChocolateLoverRaj

    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)
    
  2. ChocolateLoverRaj commented on Sep 3, 2022

    @ChocolateLoverRaj

    Device.getDevice

    Do you mean Adapter.getDevice?

  3. linked a pull request that will close this issueExtend listener removal in BusHelper #37on Oct 28, 2022
  4. self-assigned this
    on Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions