Code Monkey home page Code Monkey logo

Comments (10)

chegewara avatar chegewara commented on May 13, 2024

0x400961ed: multi_heap_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c line 214
0x400837b6: heap_caps_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 268
0x4008307d: _free_r at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/syscalls.c line 42
0x4015a0f9: operator delete(void*) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/del_op.cc line 46

Memory corruption. Most likely you are trying to delete object that does not exist anymore or didnt exists at all.

0x40092ea9: xQueueGenericSend at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c line 720

Problem with semaphore in library. Most likely trying to give semaphore that does not exist or has not been taken.

from nimble-arduino.

Jeroen88 avatar Jeroen88 commented on May 13, 2024

Thnx @chegewara, so library problems?

Another one:

0x4008e300: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 156
0x4008e57d: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 171
0x4008313d: lock_acquire_generic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c line 143
0x40083261: _lock_acquire_recursive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c line 171
0x400f6943: _vfiprintf_r at ../../../.././newlib/libc/stdio/vfprintf.c line 860
0x400f0ed1: fiprintf at ../../../.././newlib/libc/stdio/fiprintf.c line 50
0x400eaec8: __assert_func at ../../../.././newlib/libc/stdlib/assert.c line 59
0x400961ed: multi_heap_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c line 214
0x400837b6: heap_caps_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 268
0x4008307d: _free_r at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/syscalls.c line 42
0x4015a0f9: operator delete(void*) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/del_op.cc line 46
0x400d6d26: NimBLEDevice::removeIgnored(NimBLEAddress const&) at /home/jeroen/Downloads/arduino-1.8.10-linux64/arduino-1.8.10/hardware/espressif/esp32/tools/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/ext/new_allocator.h line 110
0x400d5e44: NimBLEClient::handleGapEvent(ble_gap_event*, void*) at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/NimBLEClient.cpp line 641
0x400dbdc9: ble_gap_call_event_cb at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/nimble/host/src/ble_gap.c line 628
0x400dcb8a: ble_gap_conn_broken at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/nimble/host/src/ble_gap.c line 1086
0x400dcbb8: ble_gap_rx_disconn_complete at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/nimble/host/src/ble_gap.c line 1113
0x400e17ea: ble_hs_hci_evt_disconn_complete at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/nimble/host/src/ble_hs_hci_evt.c line 157
0x400e1b58: ble_hs_hci_evt_process at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/nimble/host/src/ble_hs_hci_evt.c line 889
0x400df939: ble_hs_event_rx_hci_ev at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/nimble/host/src/ble_hs.c line 520
0x400e772a: nimble_port_run at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/nimble/nimble_npl_os.h line 121
0x400d696f: NimBLEDevice::host_task(void*) at /home/jeroen/Arduino/libraries/NimBLE-Arduino/src/NimBLEDevice.cpp line 429
0x40093535: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

from nimble-arduino.

chegewara avatar chegewara commented on May 13, 2024

0x400961ed: multi_heap_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c line 214
0x400837b6: heap_caps_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 268
0x4008307d: _free_r at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/syscalls.c line 42
0x4015a0f9: operator delete(void*) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/del_op.cc line 46

Still the same error, memory corruption due to delete.

from nimble-arduino.

h2zero avatar h2zero commented on May 13, 2024

These are all caused by the stack receiving an event and trying to call the registered callback on a client object that was deleted.

from nimble-arduino.

h2zero avatar h2zero commented on May 13, 2024

There is also an issue in the disconnect() method that needs to be rectified as well.

from nimble-arduino.

h2zero avatar h2zero commented on May 13, 2024

Try deleting this line and in your application don’t call disconnect() before deleteClient(), just call deleteClient(), it will wait for disconnection for you.

from nimble-arduino.

Jeroen88 avatar Jeroen88 commented on May 13, 2024

I won't have time to try things until Sunday :/

from nimble-arduino.

h2zero avatar h2zero commented on May 13, 2024

This issue was just resolved in commit 4c798fe

from nimble-arduino.

Jeroen88 avatar Jeroen88 commented on May 13, 2024

@h2zero Thank you!!! I'll test it tomorrow.

from nimble-arduino.

Jeroen88 avatar Jeroen88 commented on May 13, 2024

This issue was just resolved in commit 4c798fe

@h2zero I can confirm that it is resolved. Nice!

from nimble-arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.