-
Notifications
You must be signed in to change notification settings - Fork 29
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
pbuf_free exception after a few MQTT request/response #12
Comments
Sometimes, I got this exception. Thus, I am not sure if they are the same problem as I don't understand this C much.
|
I face the same issue and fix it in the description below: mqtt_vpn_esp32/main/mqttif.c struct mqtt_if_data *mqtt_if_add(esp_mqtt_client_handle_t cl, char *topic_prefix) tcpip_input() throw packets to lwip tcp/ip thread by xQueueSend(), so it's safe in ESP32 freertos envirement. |
This error happen after a few MQTT request/response. However, if I remove MQTT the code program work fine.
"ERROR Message"
assertion "pbuf_free: p->ref > 0" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/pbuf.c", line 766, function: pbuf_free
abort() was called at PC 0x4010df83 on core 0
The error decoder point it to: 0x400da8e1: packet_receive_handler at /Users/***/-Firmware-master/mqttif.c:350
After several days failure to find out the real issue, it look like the problem is here
The hard part for me is that it happen randomly after several MQTT message received.
The text was updated successfully, but these errors were encountered: