Hi,
I found out that my Matter device does not commission to Alexa because as part of adding the device Alexa will try to read FeatureMap attributes from all clusters and many of these reads are failing for my device. I do have that attribute enabled in all clusters but for some reason I canät read it at all. When trying chip-tool I can see that the reads fail. It seems that reads fail for attributes that have the Storage Option set to External. What does External mean there?
Also when I try to set the Storage Option to RAM (which would likely work and what I want to do) the ZAP tool crashes. I'm pasting the terminal output here from when this happens.
(v3.0.1) tiit@tiidu-pc:~/ncs/v3.0.1/nrf/samples/matter/window_covering$ west zap-gui
Using ZAP file: /home/tiit/ncs/v3.0.1/nrf/samples/matter/window_covering/src/default_zap/window-app.zap
Using ZCL file: /home/tiit/ncs/v3.0.1/modules/lib/matter/src/app/zap-templates/zcl/zcl.json
Using app templates: /home/tiit/ncs/v3.0.1/modules/lib/matter/src/app/zap-templates/app-templates.json
ZAP installation directory: /home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install
Found ZAP 2024.8.14 (up to date)
🔧 Using temporary state directory: /tmp/zap.N9kkx9
[585898:0930/135849.683511:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.683724:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.683825:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.683933:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684037:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684147:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684257:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684360:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684433:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684505:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684572:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684630:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684688:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684746:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684811:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684888:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.684947:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685006:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685063:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685130:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685266:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685339:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685426:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685647:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685759:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.685920:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686032:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686229:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686388:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686454:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686514:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686583:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686653:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686729:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686791:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686860:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686930:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.686991:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.687055:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[585898:0930/135849.687120:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
Application is failing the Device Type Specification as follows:
- ⚠ Check Device Type Compliance on endpoint: 2, device type: MA-air-quality-sensor, cluster: Identify server needs to be enabled
- ⚠ Check Device Type Compliance on endpoint: 2, device type: MA-air-quality-sensor, cluster: Identify, attribute: IdentifyTime needs to be enabled
- ⚠ Check Device Type Compliance on endpoint: 2, device type: MA-air-quality-sensor, cluster: Identify, attribute: IdentifyType needs to be enabled
- ⚠ Check Device Type Compliance on endpoint: 2, device type: MA-air-quality-sensor, cluster: Identify server, command: Identify incoming needs to be enabled
Application is failing the Cluster Specification as follows:
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
[585898:0930/135858.368429:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[585898:0930/135910.591641:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[585898:0930/135910.603139:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
(node:585865) UnhandledPromiseRejectionWarning: TypeError: Cannot convert null to a BigInt
at BigInt (<anonymous>)
at extractBigIntegerValue (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:173:16)
at getIntegerFromAttribute (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:215:11)
at checkAttributeBoundsInteger (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:258:30)
at validateSpecificAttribute (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:92:24)
at /home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/rest/user-data.js:273:30
(Use `zap --trace-warnings ...` to show where the warning was created)
(node:585865) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
Warning: terminator_CreateInstance: Failed to CreateInstance in ICD 3. Skipping ICD.
Error: ../src/amd/vulkan/radv_physical_device.c:1877: Device '/dev/dri/renderD128' is not using the AMDGPU kernel driver: Invalid argument (VK_ERROR_INCOMPATIBLE_DRIVER)
(node:585865) UnhandledPromiseRejectionWarning: TypeError: Cannot convert null to a BigInt
at BigInt (<anonymous>)
at extractBigIntegerValue (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:173:16)
at getIntegerFromAttribute (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:215:11)
at checkAttributeBoundsInteger (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:258:30)
at validateSpecificAttribute (/home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/validation/validation.js:92:24)
at /home/tiit/ncs/v3.0.1/modules/lib/matter/.zap-install/resources/app.asar/dist/src-electron/rest/user-data.js:273:30
(node:585865) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
This is not my only problem with ZAP tool though so maybe my issue is with some configuration somewhere. I have gotten so far that I can somehow change the clusters for my Matter device but it is extremely clumsy at the moment and if I could I would just manually do all this in the conf files at this point. ZAP tool can only edit the zap file in the samples directory for me - I can not run it in my out of tree project at all. when I save/generate code from the tool I can only do so in the root of the sample project - I can not navigate to a different folder using the file selection window. And for the CO2 measurement cluster ZAP tool just refuses to remember my settings and I have to set all values again (Storage Option for MeasuredValue for example) every time.
All the other issues aside I really need to fix the read error for the FeatureMap attributes as soon as possible as we are already late for sending the device out to the lab to get certified.
Tiit