connectedhomeip: [BUG] ICD management cluster attributes 0x0000 0x0009 read failure

Reproduction steps

Reproduce step:

  1. Enable the ICD management cluster in endpoint 0 on chip-all-clusters-app based on Linux.
  2. Enable the following variables: chip_enable_icd_server, chip_enable_icd_lit, chip_icd_report_on_active_mode, and chip_enable_icd_dsls as true in icd.gni , which automatically sets chip_enable_icd_checkin as true in icd/server/build.gn.
  3. Modify the main.cpp in chip-all-clusters-app to mimic lit-icd-app main.cpp code.
  4. Compile with ASAN enabled.
  5. After pairing with chip-all-clusters-app (node ID: 0x654324), use chip-tool to send the following messages:
./chip-tool any read-by-id 0x0046 0x0009 0x654324 0
./chip-tool any read-by-id 0x0046 0x0000 0x654324 0

Error Received:

[1741208477.262] [3511766:3511766] [TOO] Run command failure: IM Error 0x00000501: General error: 0x01 (FAILURE)

The logs of chip-all-clusters-app and chip-tool are as attached

chip-all-clusters-app.log

chip-tool.txt

Note: As mentioned by @Chapoly1305, the lit-icd-app does not experience this problem.

Bug prevalence

each time

GitHub hash of the SDK that was being used

ab3d5ae

Platform

core

Platform Version(s)

No response

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@bzbarsky-apple Thanks! Now it works! In step 2, I previously used:

$ scripts/tools/zap_regen_all.py

but it didn’t work.

Following your instructions, I used:

./scripts/tools/zap/generate.py examples/all-clusters-app/all-clusters-common/all-clusters-app.zap

and this one worked!