martin-ger/MQTT_VPN

Crash after several minutes

Opened this issue · 0 comments

Got crash after around 15~60 minutes when it's publishing:

esp_mqtt_client_publish(mqtt_if->mqttcl, mqtt_if->pub_topic, pub_data->data_buf, pub_data->data_len, 0, 0);

I use the following espressif:
Platform espressif32 @ 5.3.0 (required: espressif32)
├── framework-arduinoespressif32 @ 3.20006.221224 (required: platformio/framework-arduinoespressif32 @ ~3.20006.0)
├── framework-espidf @ 3.40403.0 (required: platformio/framework-espidf @ ~3.40403.0)

Here's the crashlog

PC: 0x4011f2fd: tcp_output at /Users/xxx/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp_out.c line 1389
EXCVADDR: 0x0000000c

Decoding stack results
0x4011f2fa: tcp_output at /Users/xxx/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp_out.c line 1389
0x4011bd65: tcp_slowtmr at /Users/xx/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp.c line 1431
0x4011be2f: tcp_tmr at /Users/xx/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp.c line 242
0x4011f6ef: tcpip_tcp_timer at /Users/xxx/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/timeouts.c line 159
0x4011f7b1: sys_check_timeouts at /Users/xx/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/timeouts.c line 409
0x4011657a: tcpip_timeouts_mbox_fetch at /Users/xx/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/tcpip.c line 115
0x4011662f: tcpip_thread at /Users/xx/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/tcpip.c line 148
0x4008d455: vPortTaskWrapper at /Users/xx/.platformio/packages/framework-espidf/components/freertos/port/xtensa/port.c line 131

It also crashed randomly while receiving mqtt:
if (mqtt_if->netif.input(pb, &mqtt_if->netif) != ERR_OK)

Here's another log:

PC: 0x4011f2fd: tcp_output at /Users/chamroeun/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp_out.c line 1389
EXCVADDR: 0x0000000c

Decoding stack results
0x4011f2fa: tcp_output at /Users/chamroeun/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp_out.c line 1389
0x4011c20a: tcp_listen_input at /Users/chamroeun/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp_in.c line 728
0x4011ddd5: tcp_input at /Users/chamroeun/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/tcp_in.c line 380
0x4012355a: ip4_input at /Users/chamroeun/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/ipv4/ip4.c line 800
0x401181e2: ip_input at /Users/chamroeun/.platformio/packages/framework-espidf/components/lwip/lwip/src/core/ip.c line 160
0x400dd8e3: packet_receive_handler at src/mqttif.c line 121
0x401b38a9: handler_execute at /Users/chamroeun/.platformio/packages/framework-espidf/components/esp_event/esp_event.c line 145
0x401b333b: esp_event_loop_run at /Users/chamroeun/.platformio/packages/framework-espidf/components/esp_event/esp_event.c line 598
0x401b33f5: esp_event_loop_run_task at /Users/chamroeun/.platformio/packages/framework-espidf/components/esp_event/esp_event.c line 115
0x4008d455: vPortTaskWrapper at /Users/chamroeun/.platformio/packages/framework-espidf/components/freertos/port/xtensa/port.c line 131