project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.47k stars 2k forks source link

[BUG] Failed to read attribute: src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp:341: IM Error 0x00000501: General error: 0x01 (FAILURE) #35342

Open lboue opened 2 months ago

lboue commented 2 months ago

Reproduction steps

Hello,

I am facing a crash running Matter Linux Energy Management Example for both types:

Build

cd ~/connectedhomeip
scripts/activate.sh
cd examples/energy-management-app/linux
gn gen out/debug
ninja -C out/debug

Run

Emulate Water Heater

out/debug/chip-energy-management-app --application water-heater
out/debug/chip-energy-management-app --application evse

Error 1: Water Heater

Error reading attribute:

[1725208807.823652][25093:25093] CHIP:DMG: Reading attribute: Cluster=0x0000_0099 Endpoint=0x1 AttributeId=0x0000_0000 (expanded=1)
[1725208807.823736][25093:25093] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0099 e=1 p=v r=r
[1725208807.823821][25093:25093] CHIP:DMG: AccessControl: allowed
[1725208807.823899][25093:25093] CHIP:DMG: Failed to read attribute: src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp:341: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1725208807.823971][25093:25093] CHIP:TST: Different written length: 714 (Ember) vs 693 (DataModel)
[1725208807.824051][25093:25093] CHIP:-: chipDie chipDie chipDie
Aborted (core dumped)

Error 1: EVSE

Error reading attribute:

[1725214927.289519][27981:27981] CHIP:DMG: Reading attribute: Cluster=0x0000_0094 Endpoint=0x1 AttributeId=0x0000_0000 (expanded=1)
[1725214927.289542][27981:27981] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0094 e=1 p=v r=r
[1725214927.289565][27981:27981] CHIP:DMG: AccessControl: allowed
[1725214927.289592][27981:27981] CHIP:DMG: Failed to read attribute: src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp:341: IM Error 0x00000501: General error: 0x01 (FAILURE)
[1725214927.289616][27981:27981] CHIP:TST: Different written length: 132 (Ember) vs 111 (DataModel)
[1725214927.289639][27981:27981] CHIP:-: chipDie chipDie chipDie
Aborted (core dumped)

Bug prevalence

Always

GitHub hash of the SDK that was being used

6c6b11f723692855446744c8bbc36ec1c5404512

Platform

other

Platform Version(s)

No response

Anything else?

Log files

bzbarsky-apple commented 1 month ago

@lboue This should have been fixed by PR #35319. Is this still an issue on tip?

lboue commented 1 month ago

Thanks for the information. I'll do another test.

andy31415 commented 1 week ago

@lboue is this still happening?