-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Crash] CHIP crashes sometimes when receiving a response from a CHIP accessory #6390
Comments
Accessory Logs(timestamps are not corelatable):
|
I can reproduce this with the command-line chip-tool running against all-clusters-app on an m5stack in bypass mode. In one terminal run:
In another terminal run:
|
The actual problem is in frame 4, in
because |
OK, so we are getting an "Operation Event Notification" command from the door lock cluster on the server. That lands on the client, the client is not set up to handle that command (in the sense that the generated It looks like we have two |
And that's because in
which is picking up the "wrong" exchange manager.... But we shouldn't have two of them to start with. It looks like at least for the command-line chip-tool @vivien-apple should |
It looks wrong. If you remove this line and do a few changes to some
|
I would say that we need to carry the |
We need to carry through the exchange, not the exchange manager. As in, we should be sending the response on the same exchange as the request. That's been the plan for months, it's not that hard to do, and I don't know why people put in these hacks instead. |
This looks like a stack overflow since PeerAddress is not a pointer and
IsInitialized
should have just returnedfalse
if it wasn't init.Note - this only happens when writing to the DoorLock Cluster. OnOff Cluster was working ok. Reports are enabled for that Cluster.
Last bit of Controller Logs:
Stack Trace:
The text was updated successfully, but these errors were encountered: