Closed agners closed 1 year ago
Crash using ArchLinux with Python 3.9
2022-04-30 10:44:54 allenwind chip.ZCL[256359] INFO Using ZAP configuration...
2022-04-30 10:44:54 allenwind chip.DL[256359] INFO Avahi re-register required
2022-04-30 10:44:54 allenwind chip.IN[256359] INFO CASE Server enabling CASE session setups
2022-04-30 10:44:54 allenwind chip.DIS[256359] INFO Updating services using commissioning mode 0
2022-04-30 10:44:54 allenwind chip.DIS[256359] ERROR Failed to initialize advertiser: ../../src/platform/Linux/DnssdImpl.cpp:333: CHIP Error 0x00000003: Incorrect state
2022-04-30 10:44:54 allenwind chip.DIS[256359] INFO Advertise commission parameter vendorID=65521 productID=32769 discriminator=3840/15
2022-04-30 10:44:54 allenwind chip.DIS[256359] ERROR Failed to advertise commissioner: ../../src/lib/dnssd/Discovery_ImplPlatform.cpp:479: CHIP Error 0x00000003: Incorrect state
2022-04-30 10:44:54 allenwind chip.DIS[256359] INFO Delaying proxy of operational discovery: missing delegate
New FabricAdmin: FabricId: 1(1)
2022-04-30 10:44:54 allenwind root[256359] INFO SetReplKey: fabricAdmins = {'1': {'fabricId': 1}}
name 'path' is not defined
Failed to bringup CHIPDeviceController CLI
Exception ignored in: <function FabricAdmin.__del__ at 0x7ff94681cee0>
Traceback (most recent call last):
File "/home/sag/projects/project-chip/connectedhomeip/out/python_env/lib/python3.9/site-packages/chip/FabricAdmin.py", line 209, in __del__
self.Shutdown(False)
File "/home/sag/projects/project-chip/connectedhomeip/out/python_env/lib/python3.9/site-packages/chip/FabricAdmin.py", line 188, in Shutdown
if (self._isActive):
AttributeError: 'FabricAdmin' object has no attribute '_isActive'
[1] 256358 segmentation fault sudo out/python_env/bin/chip-device-ctrl
It seems that the minimal mDNS implementation works much better, e.g. using
scripts/build_python.sh -m minimal
instead of
scripts/build_python.sh -m platform
Is the platform mDNS implementation (Avahi in Linux' case) not supported anymore?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This stale issue has been automatically closed. Thank you for your contributions.
same problem
Problem
Followed the guide at
docs/guides/python_chip_controller_building.md
(using Debian 11 instead of Debian 10, since at least Python 3.8 seems to be required nowadays) to build the Python CHIP Controller.I am building in a Container. I tried running the container with and without
--privileged
, same result. I also have similar issues on my native host (Arch Linux).However, Python CHIP Controller seems to crash on startup:
It seems that the Discovery Platform/DNSSD/AVAHI initialization is the culprit:
RROR Failed to initialize advertiser: ../../src/platform/Linux/DnssdImpl.cpp:333: CHIP Error 0x00000003: Incorrect state
It seems the system tries to initialize the advertizer twice, the first time from
src/controller/CHIPDeviceControllerFactory.cpp:176
:The second time via
src/controller/CHIPDeviceControllerFactory.cpp:210
.Proposed Solution