Skip to content
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

Crash if using BT + WiFi coexistence #5

Open
DatanoiseTV opened this issue Nov 19, 2021 · 0 comments
Open

Crash if using BT + WiFi coexistence #5

DatanoiseTV opened this issue Nov 19, 2021 · 0 comments

Comments

@DatanoiseTV
Copy link

The ESP32 will crash if WiFi + BLE (for BLE MIDI) is used in coexistent mode:

I (6172) wifi:AP's beacon interval = 102400 us, DTIM period = 3
W (6344) BT_LOG: esp_ble_gatts_send_indicate, The connection not created.
W (6844) BT_LOG: esp_ble_gatts_send_indicate, The connection not created.
I (6844) MIDIbox: Sending MIDI Note #6
I (6846) esp_netif_handlers: example_connect: sta ip: 192.168.10.224, mask: 255.255.255.0, gw: 192.168.10.1
I (6855) example_connect: Got IPv4 event: Interface "example_connect: sta" address: 192.168.10.224
W (7344) BT_LOG: esp_ble_gatts_send_indicate, The connection not created.
I (7345) example_connect: Got IPv6 event: Interface "example_connect: sta" address: fe80:0000:0000:0000:9acd:acff:febf:33d8, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (7355) example_connect: Connected to example_connect: sta
I (7361) example_connect: - IPv4 address: 192.168.10.224
I (7367) example_connect: - IPv6 address: fe80:0000:0000:0000:9acd:acff:febf:33d8, type: ESP_IP6_ADDR_IS_LINK_LOCAL
This is ESP32 chi
abort() was called at PC 0x40082e9f on core 1
0x40082e9f: lock_init_generic at /home/syso/esp/esp-idf/components/newlib/locks.c:75


Backtrace:0x400908f6:0x3ffff1b0 0x40091219:0x3ffff1d0 0x40098546:0x3ffff1f0 0x40082e9f:0x3ffff260 0x40082fde:0x3ffff280 0x4015a1eb:0x3ffff2a0 0x401b4ed5:0x3ffff2c0 0x400dd1fa:0x3ffff2e0 0x400dd65b:0x3ffff560 0x400ddc33:0x3ffff5c0
0x400908f6: panic_abort at /home/syso/esp/esp-idf/components/esp_system/panic.c:379

0x40091219: esp_system_abort at /home/syso/esp/esp-idf/components/esp_system/system_api.c:112

0x40098546: abort at /home/syso/esp/esp-idf/components/newlib/abort.c:46

0x40082e9f: lock_init_generic at /home/syso/esp/esp-idf/components/newlib/locks.c:75

0x40082fde: _lock_init_recursive at /home/syso/esp/esp-idf/components/newlib/locks.c:89

0x4015a1eb: pthread_cond_init at /home/syso/esp/esp-idf/components/pthread/pthread_cond_var.c:170

0x401b4ed5: std::condition_variable::condition_variable() at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/xtensa-esp32-elf/bits/gthr-default.h:858
 (inlined by) std::condition_variable::condition_variable() at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/gcc/libstdc++-v3/src/c++11/condition_variable.cc:39

0x400dd1fa: ableton::platforms::esp32::LockFreeCallbackDispatcher<std::function<void ()>, std::chrono::duration<long long, std::ratio<1ll, 1000ll> > >::LockFreeCallbackDispatcher(std::function<void ()>, std::chrono::duration<long long, std::ratio<1ll, 1000ll> >) at /home/syso/dev/xlink-firmware-esp32/build/../components/link-esp/link/include/ableton/platforms/esp32/LockFreeCallbackDispatcher.hpp:48
 (inlined by) ableton::link::Controller<std::function<void (unsigned int)>, std::function<void (ableton::link::Tempo)>, std::function<void (bool)>, ableton::platforms::esp32::Clock, ableton::platforms::esp32::Random, ableton::platforms::esp32::Context<ableton::platforms::esp32::ScanIpIfAddrs, ableton::util::NullLog> >::RtClientStateSetter::RtClientStateSetter(ableton::link::Controller<std::function<void (unsigned int)>, std::function<void (ableton::link::Tempo)>, std::function<void (bool)>, ableton::platforms::esp32::Clock, ableton::platforms::esp32::Random, ableton::platforms::esp32::Context<ableton::platforms::esp32::ScanIpIfAddrs, ableton::util::NullLog> >&) at /home/syso/dev/xlink-firmware-esp32/build/../components/link-esp/link/include/ableton/link/Controller.hpp:588
 (inlined by) ableton::link::Controller<std::function<void (unsigned int)>, std::function<void (ableton::link::Tempo)>, std::function<void (bool)>, ableton::platforms::esp32::Clock, ableton::platforms::esp32::Random, ableton::platforms::esp32::Context<ableton::platforms::esp32::ScanIpIfAddrs, ableton::util::NullLog> >::Controller(ableton::link::Tempo, std::function<void (unsigned int)>, std::function<void (ableton::link::Tempo)>, std::function<void (bool)>, ableton::platforms::esp32::Clock) at /home/syso/dev/xlink-firmware-esp32/build/../components/link-esp/link/include/ableton/link/Controller.hpp:162

0x400dd65b: ableton::BasicLink<ableton::platforms::esp32::Clock>::BasicLink(double) at /home/syso/dev/xlink-firmware-esp32/build/../components/link-esp/link/include/ableton/Link.ipp:69

0x400ddc33: ableton::Link::Link(double) at /home/syso/dev/xlink-firmware-esp32/build/../components/link-esp/link/include/ableton/Link.hpp:396
 (inlined by) tickTask at /home/syso/dev/xlink-firmware-esp32/build/../main/link.cpp:111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant