DEMO_MSG_SOCKET_CREATE
local ip : 192. 168. 8. 249
local port : 4090 udp_socket_num: 1
step1: init mqtt lib.
step2: establishing TCP connection.
step3: establishing mqtt connection.
step4: subscribe mqtt
step5: start the Heart-beat preservation timer ok
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 6
Wi: 75
==" heart timer 0
send heart ping
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 6
payload_id: 123
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 6
Assertion "malloc () must return aligned memory" failed at line 214 in mem. c
Assertion "malloc () must return aligned memory" failed at line 214 in mem. c
Assertion "memp_malloc: memp properly aligned" failed at line 281 in memp. c
Assertion "memp_free: mem properly aligned" failed at line 365 in memp. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c
发现无法释放 cjson 空间
int raw_resp_ok (mqtt_broker_handle_t *mqtt_broker, int timestamp)
{
}
错误提示:
==" heart timer 0
send heart ping
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 9
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 9
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 9
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 9
mem_free_debug ptr error! ! ! ! !
mem_free_debug ptr error! ! ! ! !
mem_free_debug ptr error! ! ! ! !
mem_free_debug ptr error! ! ! ! !
能帮忙解决么, json 创建也释放了, 就打开这个函数出现的问题, 我也注释过 mqtt 回复和 udp 回复数据, 也是会出现卡死程序
@Alwp 这个代码里有两个问题, 1, result 没有释放; 2, 内存释放用的是 tls_mem_free, 不是 free;