-
Notifications
You must be signed in to change notification settings - Fork 25
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 when receiving empty "binding table response" (TZ-734) #307
Comments
Does the crashing also occur in other versions of the esp-zigbee-sdk? |
@xieqinan The callback function looks like this: static void bind_table_req_cb(const esp_zb_zdo_binding_table_info_t *table_info, void *user_ctx) {
if (table_info != nullptr) {
ESP_LOGI(TAG, "bind_table_req_cb status: %d, count: %d, total: %d",
table_info->status, table_info->count, table_info->total);
}
}
Logs after crash:
|
In any case, I will address the issue in the next release. Before that, could you please try using the esp-zigbee-sdk v1.2.0 to test again and let us know the results? |
@xieqinan
|
Thank you for your test, I will fixed it in next version. |
The issue has been fixed in esp-zigbee-sdk v1.2.3, please update version and test again. |
@xieqinan |
Answers checklist.
IDF version.
ESP-IDF v5.1.3
esp-zigbee-lib version.
1.2.2
esp-zboss-lib version.
1.2.2
Espressif SoC revision.
ESP32-C6
What is the expected behavior?
Be able to receive a binding table with zero entries without crashing.
What is the actual behavior?
When a device responds to a
esp_zb_zdo_binding_table_req
with an empty table, the software crashes. When a non-empty binding table is returned theesp_zb_zdo_binding_table_callback_t
callback is called and I can print the entries successfully.Steps to reproduce.
esp_zb_zdo_binding_table_req
.More Information.
The received empty table:
The crash logs can be seen below:
The text was updated successfully, but these errors were encountered: