I am writing an application using MQTT and WIFI. Unfortunately I have stability issues. Works for a while then crashes.
I have been able to trace the execution to the point where something goes wrong but I need some help to understand the console output.
Code: Select all
I (1109) NETWORK_TEST: NETWORK TEST CREATED
W (3179) wifi:<ba-add>idx:0 (ifx:0, 70:4f:57:29:75:4c), tid:6, ssn:2, winSize:64
1: Interface: STA, Type: V4
PTR : PSMB
SRV : PSMB.local:0
TXT : [1] info=MPS Service Host;
A : 192.168.68.200
AAAA: fe80:0000:0000:0000:288c:6bf9:f1f5:2c9d
I (7249) MQTT_WRAPPER: Successfully connected to mqtt broker
W (7269) wifi:<ba-add>idx:1 (ifx:0, 70:4f:57:29:75:4c), tid:0, ssn:0, winSize:64
W (209559) wifi:<ba-del>idx
W (209559) wifi:<ba-del>idx
E (209559) TRANSPORT_BASE: tcp_write error, errno=Software caused connection abort
E (209559) MQTT_CLIENT: Writing failed: errno=113
W (209569) MQTT_WRAPPER: MQTT_EVENT_ERROR
E (209569) TRANSPORT_BASE: poll_write select error 113, errno = Software caused connection abort, fd = 54
W (209579) TRANSPORT_BASE: Poll timeout or error, errno=Software caused connection abort, fd=54, timeout_ms=10000
E (209589) MQTT_CLIENT: Writing failed: errno=113
W (209599) MQTT_WRAPPER: MQTT_EVENT_ERROR
E (209599) MQTT_CLIENT: Error to resend data
abort() was called at PC 0x401599c7 on core 1
0x401599c7: __cxxabiv1::__terminate(void (*)()) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
Backtrace:0x40081bfe:0x3ffece400x4008932d:0x3ffece60 0x4009000a:0x3ffece80 0x401599c7:0x3ffecef0 0x40159a0e:0x3ffecf10 0x4015a5c7:0x3ffecf30 0x4015a0ee:0x3ffecf50 0x400dc6ba:0x3ffecf70 0x400dd522:0x3ffecfa0 0x4008c6c1:0x3ffecfc0
0x40081bfe: panic_abort at C:/Users/lglin/esp/esp-idf/components/esp_system/panic.c:402
0x4008932d: esp_system_abort at C:/Users/lglin/esp/esp-idf/components/esp_system/esp_system.c:121
0x4009000a: abort at C:/Users/lglin/esp/esp-idf/components/newlib/abort.c:46
0x401599c7: __cxxabiv1::__terminate(void (*)()) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
0x40159a0e: std::terminate() at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57
0x4015a5c7: __cxa_throw at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
0x4015a0ee: operator new(unsigned int) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/new_op.cc:54
0x400dc6ba: QUEUE::Topic::Topic(char const*, char const*) at C:\hostedProjects\mdcb\build/../components/queue_messaging/topic.h:11
(inlined by) MqttBuf::run(void*) at C:\hostedProjects\mdcb\build/../components/network/mqtt_buf.cpp:23
0x400dd522: Task::runTask(void*) at C:\hostedProjects\mdcb\build/../components/utilities/task.cpp:59
0x4008c6c1: vPortTaskWrapper at C:/Users/lglin/esp/esp-idf/components/freertos/port/xtensa/port.c:131
Code: Select all
E (209559) TRANSPORT_BASE: tcp_write error, errno=Software caused connection abort
There are some WARNINGS from the WIFI component before the ERROR but I don't understand what they mean.
Code: Select all
W (7269) wifi:<ba-add>idx:1 (ifx:0, 70:4f:57:29:75:4c), tid:0, ssn:0, winSize:64
W (209559) wifi:<ba-del>idx
W (209559) wifi:<ba-del>idx