Guru Meditation Error: Core 0 panic'ed (BLE Beacon scanner with Azure IoT Hub SDK for C)
Posted: Mon Sep 05, 2022 7:04 am
Hi,
I'm working on a BLE beacon scanner on ESP32 DEVKIT WROOM32.
The scanning on its own works fine, however when I've add the Azure IoT Library to send the results to the cloud I started getting issues.
First was the size of the code that I resolved by disabling OTA.
Now the connection is unstable and after a few minutes or hours the board crashes and reboots.
Any help would be appreciated.
Best,
I'm working on a BLE beacon scanner on ESP32 DEVKIT WROOM32.
The scanning on its own works fine, however when I've add the Azure IoT Library to send the results to the cloud I started getting issues.
First was the size of the code that I resolved by disabling OTA.
Now the connection is unstable and after a few minutes or hours the board crashes and reboots.
Code: Select all
Decoding stack results
0x40083771: panic_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/panic.c line 402
0x4009437d: esp_system_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_system.c line 128
0x40099571: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/abort.c line 46
0x401edc83: std::__cxx11::basic_string , std::allocator >::basic_string(char const*, unsigned int, std::allocator const&) at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/basic_string.h line 252
0x401edcca: std::__facet_shims::(anonymous namespace)::collate_shim ::~collate_shim() at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/src/c++11/cxx11-shim_facets.cc line 260
0x401df205: std::num_put > >::_M_group_int(char const*, unsigned int, char, std::ios_base&, char*, char*, int&) const at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/locale_facets.tcc line 838
0x401df03c: std::__moneypunct_cache ::_M_cache(std::locale const&) at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/basic_string.h line 3835
0x401e0225: std::num_put > >::_M_insert_int (std::ostreambuf_iterator >, std::ios_base&, char, unsigned long long) const at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/ios_base.h line 622
0x401e0357: std::num_put > >::_M_insert_float (std::ostreambuf_iterator >, std::ios_base&, char, char, double) const at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/ios_base.h line 777
0x400d4f2c: az_span_copy at /Users/hassen/Documents/Arduino/libraries/Azure_SDK_for_C/src/az_span.c line 488
0x400d5455: std::vector , std::allocator >, std::allocator , std::allocator > > >::_M_realloc_insert , std::allocator > const&>(__gnu_cxx::__normal_iterator , std::allocator >*, std::vector , std::allocator >, std::allocator , std::allocator > > > >, std::__cxx11::basic_string , std::allocator > const&) at /Users/hassen/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/ext/new_allocator.h line 86
0x400d6bb9: BLEDevice::updatePeerDevice(void*, bool, unsigned short) at /Users/hassen/Library/Arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEDevice.cpp line 607
0x400d5d42: BLECharacteristic::handleGATTServerEvent(esp_gatts_cb_event_t, unsigned char, esp_ble_gatts_cb_param_t*) at /Users/hassen/Library/Arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLECharacteristic.cpp line 465
0x40107031: get_features_classic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/bt/host/bluedroid/device/controller.c line 340
0x4012f131: BTA_DmPinReply at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/bt/host/bluedroid/bta/dm/bta_dm_api.c line 618
0x40130f8b: BTA_GATTC_RegisterForNotifications at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/bt/host/bluedroid/bta/gatt/bta_gattc_api.c line 892
Any help would be appreciated.
Best,