-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 door lock example crashing (CON-977) #809
Comments
@bilalmalik76 It would help debug and resolve issues faster if you fill the other details in the template. Environment
Any additional details |
@shubhamdp ESP-Matter Commit Id: 01bebca |
@bilalmalik76 If you are trying out the connectedhomeip lock-app example, then can you confirm if you have this commit: project-chip/connectedhomeip#31500 . If not, can you cherry-pick the commit and try? The connectedhomeip submodule in esp-matter repo is not updated to use this commit yet |
@dhrishi I think you didn't get the reason for the application creash and assumed that it is related to another issue. This issue is not related to Factory Reset Triggered. The commit you shared fixes Factory Reset Triggered. project-chip/connectedhomeip#31500 My issue is different whenever this UpdateClusterState function executes it crashes application and reason for crashing is: and if you see this ChipLogError is being used in the following function. I think, in your sample application, UpdateClusterState function is not being called correctly. |
@bilalmalik76 Yes, my bad. Similar fix was done some time back project-chip/connectedhomeip#31171. Can you please try with project-chip/connectedhomeip latest master branch directly instead of esp-matter connectedhomeip submodule (not updated to the latest yet) so that we are sure that you have all the required fixes. |
@bilalmalik76 Is there any update you can share |
Same issue with project-chip/connectedhomeip latest master. @dhrishi can you please try on your side? |
@bilalmalik76 I just tested the lock example on an ESP32 devkit with the latest project-chip/connectedhomeip master branch - head commit https://github.com/project-chip/connectedhomeip/commits/f5ca5ad8492b498cd946af87efead0fd8cefd7f6 The device boots up fine, and no crash is seen. I was also able to commission the device successfully and then successfully execute the Can you please share the head commit id? |
@dhrishi This error occurs only when I try to lock and unlock from esp32 button, not from app. Can you share how did you send unlock-door and lock-door commands? |
@bilalmalik76 The screenshot you've added in this comment shows that it failed while you were controlling it from an ecosystem Matter app or chip-tool. See the prints of Invoke command response. These should not be seen if you are controlling it through the button. Please let me know if I am missing anything. Edit: Looks like you first controlled it through the app and then through the button. Ideally, that should work fine now I also tried changing the state with button. Note that I had to change the lock/unlock GPIO to 0 (
|
@bilalmalik76 Any update to share? Please close the issue if it works fine |
@dhrishi Yes I changed the lock/unlock GPIO according to my dev kit but it is still crashing even after using latest commit of connect home ip. |
This should not happen. Please share the connectedhomeip latest commit id you are using |
Please provide the exact commit id used and re-open the issue. |
Describe the bug
ESP32 door lock example available in connected home IP example causes ESP32 to crash and reboot when I press the door lock button:
The text was updated successfully, but these errors were encountered: