Skip to content

Cannot add Matter over thread device due to "mdns: Cannot allocate memory" (TZ-1433) #115

@mrazekfilip

Description

@mrazekfilip

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

often

Expected behavior

successfuly connected Matter over thread device to HomeAssistant via the esp thread border router example app (flashed on esp thread border router board)

Actual behavior (suspected bug)

The device seems to be connected (the pairing led doesnt blink), but the device is not connected.

Error logs or terminal output

�[0;32mI (9208664) OPENTHREAD: Multicast listener add: FF05::2�[0m
�[0;32mI (9211844) OPENTHREAD: Received RIO�[0m
�[0;32mI (9211844) OPENTHREAD: prefix FDEE:80F3:66D:1:: lifetime 1800
�[0m
�[0;32mI (9211854) OPENTHREAD: Multicast listener add: FF05::2�[0m
�[0;32mI (9212044) OPENTHREAD: Multicast listener add: FF05::2�[0m
�[0;32mI (9215424) OPENTHREAD: Received RIO�[0m
�[0;32mI (9215424) OPENTHREAD: prefix FDEE:80F3:66D:1:: lifetime 1800
�[0m
�[0;32mI (9215434) OPENTHREAD: Multicast listener add: FF05::2�[0m
�[0;32mI (9218494) OPENTHREAD: Received RIO�[0m
�[0;32mI (9218494) OPENTHREAD: prefix FDEE:80F3:66D:1:: lifetime 1800
�[0m
�[0;32mI (9218504) OPENTHREAD: Multicast listener add: FF05::2�[0m
�[0;32mI (9305854) OPENTHREAD: Host delete�[0m
�[0;32mI (9305854) OPENTHREAD: delete host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9306684) OPENTHREAD: Host update�[0m
�[0;32mI (9306684) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9306684) OPENTHREAD: Add a new host, addr FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9306694) OPENTHREAD: Service 503C485E229E3C3F-8F387B87986EB146._matter._tcp�[0m
�[0;32mI (9306694) OPENTHREAD: Add new service�[0m
�[0;32mI (9306694) OPENTHREAD: Service subtype _I503C485E229E3C3F�[0m
�[0;32mI (9320724) OPENTHREAD: Host update�[0m
�[0;32mI (9320724) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9320724) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9320724) OPENTHREAD: Service D4FCF7A32090F51C._matterc._udp�[0m
�[0;32mI (9320724) OPENTHREAD: Add new service�[0m
�[0;31mE (9320724) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9320724) mdns: Cannot allocate memory (line: 5919, free heap: 167084 bytes)�[0m
�[0;31mE (9320724) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9320734) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9322544) OPENTHREAD: Host update�[0m
�[0;32mI (9322544) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9322544) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9322544) OPENTHREAD: Service D4FCF7A32090F51C._matterc._udp�[0m
�[0;32mI (9322544) OPENTHREAD: Add new service�[0m
�[0;31mE (9322544) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9322544) mdns: Cannot allocate memory (line: 5919, free heap: 167072 bytes)�[0m
�[0;31mE (9322554) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9322554) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9325674) OPENTHREAD: Host update�[0m
�[0;32mI (9325674) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9325674) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9325674) OPENTHREAD: Service D4FCF7A32090F51C._matterc._udp�[0m
�[0;32mI (9325674) OPENTHREAD: Add new service�[0m
�[0;31mE (9325674) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9325674) mdns: Cannot allocate memory (line: 5919, free heap: 167060 bytes)�[0m
�[0;31mE (9325674) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9325674) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9329214) OPENTHREAD: Host update�[0m
�[0;32mI (9329214) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9329214) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9329214) OPENTHREAD: Service D4FCF7A32090F51C._matterc._udp�[0m
�[0;31mE (9329214) mdns: mdns_service_remove_for_host(6380): Service doesn’t exist�[0m
�[0;33mW (9329214) OPENTHREAD: Failed to find service: 5E3EECCCE3B4EBD1.D4FCF7A32090F51C._udp._matterc�[0m
�[0;32mI (9334394) OPENTHREAD: Host update�[0m
�[0;32mI (9334394) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9334394) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9334394) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9334394) OPENTHREAD: Add new service�[0m
�[0;31mE (9334394) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9334394) mdns: Cannot allocate memory (line: 5919, free heap: 168168 bytes)�[0m
�[0;31mE (9334394) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9334394) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9336244) OPENTHREAD: Host update�[0m
�[0;32mI (9336244) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9336244) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9336244) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9336244) OPENTHREAD: Add new service�[0m
�[0;31mE (9336244) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9336244) mdns: Cannot allocate memory (line: 5919, free heap: 168168 bytes)�[0m
�[0;31mE (9336244) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9336254) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9339364) OPENTHREAD: Host update�[0m
�[0;32mI (9339364) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9339364) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9339364) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9339364) OPENTHREAD: Add new service�[0m
�[0;31mE (9339364) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9339364) mdns: Cannot allocate memory (line: 5919, free heap: 168208 bytes)�[0m
�[0;31mE (9339364) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9339364) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9344614) OPENTHREAD: Host update�[0m
�[0;32mI (9344614) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9344614) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9344614) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9344614) OPENTHREAD: Add new service�[0m
�[0;31mE (9344624) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9344624) mdns: Cannot allocate memory (line: 5919, free heap: 168200 bytes)�[0m
�[0;31mE (9344624) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9344624) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9353524) OPENTHREAD: Host update�[0m
�[0;32mI (9353524) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9353524) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9353524) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9353524) OPENTHREAD: Add new service�[0m
�[0;31mE (9353524) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9353524) mdns: Cannot allocate memory (line: 5919, free heap: 168128 bytes)�[0m
�[0;31mE (9353524) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9353524) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9368604) OPENTHREAD: Host update�[0m
�[0;32mI (9368604) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9368604) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9368604) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9368604) OPENTHREAD: Add new service�[0m
�[0;31mE (9368604) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9368604) mdns: Cannot allocate memory (line: 5919, free heap: 168192 bytes)�[0m
�[0;31mE (9368604) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9368604) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9379164) OPENTHREAD: Multicast listener add: FF05::2�[0m
�[0;32mI (9394184) OPENTHREAD: Host update�[0m
�[0;32mI (9394184) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9394184) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9394184) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9394194) OPENTHREAD: Add new service�[0m
�[0;31mE (9394194) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9394194) mdns: Cannot allocate memory (line: 5919, free heap: 168196 bytes)�[0m
�[0;31mE (9394194) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9394194) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9406504) OPENTHREAD: Multicast listener add: FF05::2�[0m
�[0;32mI (9437644) OPENTHREAD: Host update�[0m
�[0;32mI (9437644) OPENTHREAD: update host 5E3EECCCE3B4EBD1�[0m
�[0;32mI (9437644) OPENTHREAD: Set addr of host to FD23:4D87:79DD:1:9F1F:6C0E:825F:2351�[0m
�[0;32mI (9437644) OPENTHREAD: Service 5A345EFB214223D0-0000000000000023._matter._tcp�[0m
�[0;32mI (9437644) OPENTHREAD: Add new service�[0m
�[0;31mE (9437644) mdns: mdns_service_add_for_host(5895): Cannot add more services�[0m
�[0;31mE (9437644) mdns: Cannot allocate memory (line: 5919, free heap: 168192 bytes)�[0m
�[0;31mE (9437644) OPENTHREAD: Failed to add service�[0m
�[0;33mW(9437644) OPENTHREAD:[W] SrpServer——: Send fail response: 2�[0m
�[0;32mI (9458524) OPENTHREAD: Multicast listener add: FF05::2�[0m

Steps to reproduce the behavior

  1. pair few devices (it occures when 2 and more devices connected (sometimes it connects), cannot add more than 4)
  2. initiate device pairing in HomeAssistant companion app
  3. wait until pairing failes

Project release version

ESP-THREAD-BR Release v1.1

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

MacOS

Operating system version

15.1.1

Shell

ZSH

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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