-
Notifications
You must be signed in to change notification settings - Fork 31
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
Coordinator show zb_assert at ??:? after some time ... (TZ-651) #255
Comments
More: with Zb trace enable, we see that the zb_assert is at: Can you share info on what would cause those two asserts? Something wrong with internal ZBOSS buffer pools? |
Hello @Zeboo14, Could you please provide the trace log with complete information that would be more helpful?
From this log, I can only deduce that the stack received a malformed frame, causing it to fail to distinguish the layer header or extract the frame payload.
This log may indicate that an illegal buffer is being freed. Therefore, a complete crashing trace log is necessary. |
@Zeboo14 , Furthmore, if there are other RTOS tasks in your project, please consider using |
Does this method work for you? Do you have any other updates on this issue? |
I see a very similar issue. This happens on both endpoint and router connected to a Philips Hue bridge. There is no apparent activity related to the endpoint, but once so often I get the below, where it looks indeed like some frame was received which ultimately lead to the error
|
Based on the log, the crash seems to be triggered by a malformed frame from the air. Could you please provide the reproduction steps or a Wireshark packet capture to help us verify this issue? |
@Zeboo14 @janjaeger There have been several fixes and enhancements in recent releases, could you pelase test again with the latest esp-zigbee-sdk release. Please share the wireshark capture file if the issue still happens. |
The issue is still occurring (see below). I see this problem only when I have a scene or groups cluster (or both groups + scene) defined. This error does not occur when I have no scene or groups clusters defined my definition of the scene and groups cluster are below. Thanks and best regards, Jan
|
Hi @chshu , Some more info, I am trying to capture the packet that causes the error to occur, which is a bit cumbersome because 1) it does not happen that often, and 2) I and up with megabytes of trace data, which is then difficult to correlate However, I also see the following message:
|
Some more analysis - The version 5 error occurs about 75 times in a 14 hour period- I have a full pcap trace from this entire period, and no v5 frame is recorded, all frames are v2 |
Hi @chshu , The panic consistently occurs after receiving either a 'move to color' or 'move to level' frame. Best regards, |
Hi @janjaeger , I have reviewed the information you provided, and the implementation of the group and scene cluster as well as the |
#255 (comment) , This is a normal log, and I don't think it is the root cause of this issue. |
Answers checklist.
IDF version.
v5,1
esp-zigbee-lib version.
1.1.1
esp-zboss-lib version.
1.1.1
Espressif SoC revision.
ESPC32C6
What is the expected behavior?
We have a coordinator connected to ~25 ZR (router devices). Every 500ms-1s, a small message is sent to custom cluster, both directions, using esp_zb_zcl_custom_cluster_cmd_req(). Can work fine for hours but sometimes, hit a zb_assert (average of 4 times per day). Can you give us indication on the conditions that what would result in this zb_assert()?
What is the actual behavior?
abort() was called at PC 0x4202b5e7 on core 0
0x4202b5e7: zb_assert at ??:?
Core 0 register dump:
MEPC : 0x4080099e RA : 0x408114ec SP : 0x4084e670 GP : 0x408229d0
0x4080099e: panic_abort at D:/software/espressif/esp-idf/components/esp_system/panic.c:452
0x408114ec: __ubsan_include at D:/software/espressif/esp-idf/components/esp_system/ubsan.c:312
TP : 0x40838080 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x4084e6a0 S1 : 0x00000001 A0 : 0x4084e6f8 A1 : 0x4084e6ea
A2 : 0x00000000 A3 : 0x4084e725 A4 : 0x4084e6f8 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x76757473 S2 : 0x00000009 S3 : 0x00000009
S4 : 0x00000000 S5 : 0x40829706 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000007 MTVAL : 0x00000000
0x40800001: _vector_table at ??:?
MHARTID : 0x00000000
Stack memory:
4084e670: 0x6e6d6c6b 0x6a696867 0x66656463 0x4084e6f8 0x00000001 0x00000000 0x33323130 0x9280f6fa
4084e690: 0x62613938 0x66656463 0x6a696867 0x4084e6d0 0x7271706f 0x76757473 0x7a797877 0x4084e6f8
4084e6b0: 0x00000009 0x00000001 0x4084e6e8 0x9280f6fa 0x00000008 0x4084e6f8 0x4084e740 0x4081eed0
0x4081eed0: ra_to_str at D:/software/espressif/esp-idf/components/newlib/assert.c:24
4084e6d0: 0x00000004 0x4084e6f8 0x4082378c 0x4084e6ec 0x408237a8 0x4084e6e8 0x40840030 0x32303234
4084e6f0: 0x37653562 0x00000000 0x726f6261 0x20292874 0x20736177 0x6c6c6163 0x61206465 0x43502074
4084e710: 0x34783020 0x62323032 0x20376535 0x63206e6f 0x2065726f 0x00000030 0x00000000 0x9280f6fa
4084e730: 0x00000000 0x40829706 0x408296a8 0x4202b5ea 0x00000001 0x00000000 0x4084e778 0x4202ae24
0x4202b5ea: zb_globals_init at ??:?
0x4202ae24: zb_bufpool_storage_free at ??:?
4084e750: 0x00000089 0x00000001 0x408296a8 0x4202a1e6 0x00000001 0x00000000 0x408296b4 0x4203d15c
0x4202a1e6: zb_buf_free_func at ??:?
0x4203d15c: zb_mlme_beacon_notify_indication at ??:?
4084e770: 0x00000000 0x00000000 0x4082cd36 0x40816c34 0x00000000 0x00000001 0x00000001 0x00000000
0x40816c34: vPortExitCritical at D:/software/espressif/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:339
4084e790: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000001 0x42030d28
0x42030d28: zb_sched_loop_iteration at ??:?
4084e7b0: 0x4083547c 0x4203ccac 0x40090012 0x9280f6fa 0x00000000 0x00000000 0x00000000 0x00000000
0x4203ccac: zb_mlme_beacon_notify_indication at ??:?
4084e7d0: 0x00000000 0x00000000 0x4084e880 0x42057562 0x00000000 0x00000084 0x5264c0f3 0x4201e6e2
0x42057562: zboss_main_loop_iteration at ??:?
0x4201e6e2: esp_zb_main_loop_iteration at ??:?
4084e7f0: 0x00000000 0x00000000 0x4084e880 0x420135a0 0x420132f6 0x00000000 0x00000000 0x40832f64
0x420135a0: esp_zb_task_zc at C:/d/software/rfin_pro_git/rfin_pro/main/zb_coord.c:866 (discriminator 1)
0x420132f6: esp_zb_task_zc at C:/d/software/rfin_pro_git/rfin_pro/main/zb_coord.c:768
4084e810: 0x40838080 0x00000000 0x00000000 0x00000000 0x4087ce50 0x40835820 0x40835868 0x40835984
4084e830: 0x420c4ca4 0x00000000 0x40832f64 0x420122f4 0x00000001 0x420122a4 0x00000003 0x00000000
0x420122f4: zbProdTableTask at C:/d/software/rfin_pro_git/rfin_pro/main/zb_coord.c:200
0x420122a4: zbZcConnectInfoTask at C:/d/software/rfin_pro_git/rfin_pro/main/zb_coord.c:162
4084e850: 0x00000000 0x000000ff 0x00000000 0x54535251 0x38751755 0x54535251 0x38751755 0x9280f6fa
4084e870: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4084e890: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x00004010
4084e8b0: 0xabba1234 0x408352ac 0x00004000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e8d0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e8f0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e910: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e930: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e950: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e970: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e990: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e9b0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e9d0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084e9f0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084ea10: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084ea30: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4084ea50: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
Steps to reproduce.
See above
More Information.
No response
The text was updated successfully, but these errors were encountered: