BT_OSI: osi_alarm_new alarm_cbs exhausted

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

BT_OSI: osi_alarm_new alarm_cbs exhausted

Postby mm_1993 » Sat Jan 15, 2022 7:18 am

Hi

I'm Using esp32 c3 - idf 4.3 -> ble mesh example

in menu config -> component config -> esp ble mesh support -> support for ble mesh provisioner ->
* Maximum number of PB-ADV running at the same time by Provisioner
* Maximum number of PB-GATT running at the same time by Provisioner

when I Change the Number of provisioner from 3 to 5 provisioner an error occur :
BLE_MESH: Alarm not created
BT_OSI: osi_alarm_new alarm_cbs exhausted

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: BT_OSI: osi_alarm_new alarm_cbs exhausted

Postby mm_1993 » Tue Jan 25, 2022 6:46 am

and it's another Error again :
-----------------------------------


E (37687) BT_OSI: osi_alarm_new alarm_cbs exhausted

assertion "data != NULL" failed: file "C:/users/xarrin/.platformio/packages/framework-espidf/components/bt/common/osi/hash_map.c", line 129, function: hash_map_set

abort() was called at PC 0x420b1795 on core 0
0x420b1795: __ssvfiscanf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/libc/stdio/vfscanf.c:642

Stack dump detected
Core 0 register dump:
MEPC : 0x40386600 RA : 0x40386d76 SP : 0x3fcb08b0 GP : 0x3fc8f1fc
0x40386600: panic_handler at C:/ESP32/esp-idf/components/esp_system/port/panic_handler.c:201

0x40386d76: xQueueGenericSend at C:/ESP32/esp-idf/components/freertos/queue.c:775

TP : 0x3fc7be94 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000004 S1 : 0x3fcb0914 A0 : 0x3fcb08dc A1 : 0x3fcb0912
A2 : 0x00000000 A3 : 0x3fcb0909 A4 : 0x00000001 A5 : 0x3fc9d000
A6 : 0x7a797877 A7 : 0x76757473 S2 : 0x0000001e S3 : 0x3fcb6eec
S4 : 0x00000000 S5 : 0x3fcb0c4c S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000000
0x40380001: _vector_table at ??:?

MHARTID : 0x00000000

Failed to run gdb_panic_server.py script: Command '['riscv32-esp-elf-gdb', '--batch', '-n', 'e:\\test-esp32\\c3-example\\08_mesh-vendor-server\\build\\08_mesh-vendor-server.elf', '-ex', 'target remote | "C:\\ESP32\\.espressif\\python_env\\idf4.3_py3.8_env\\Scripts\\python.exe" "C:/ESP32/esp-idf/tools\\..\\tools\\gdb_panic_server.py" --target esp32c3 "C:\\Users\\Xarrin\\AppData\\Local\\Temp\\tmp_2f7syzo"', '-ex', 'bt']' returned non-zero exit status 3221225781.
b''


anyone know how to fix it ?

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: BT_OSI: osi_alarm_new alarm_cbs exhausted

Postby mm_1993 » Tue Jan 25, 2022 11:08 am

mm_1993 wrote:
Tue Jan 25, 2022 6:46 am
and it's another Error again :
-----------------------------------


E (37687) BT_OSI: osi_alarm_new alarm_cbs exhausted

assertion "data != NULL" failed: file "C:/users/xarrin/.platformio/packages/framework-espidf/components/bt/common/osi/hash_map.c", line 129, function: hash_map_set

abort() was called at PC 0x420b1795 on core 0
0x420b1795: __ssvfiscanf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/libc/stdio/vfscanf.c:642
*****
anyone know how to fix it ?
I only know when this happens that I add new element to my code:

static esp_ble_mesh_elem_t allMeshElements[] = {
ESP_BLE_MESH_ELEMENT(0, rootModels, vendorModels),
ESP_BLE_MESH_ELEMENT(0, channel_2_dimmer, ESP_BLE_MESH_MODEL_NONE), // element 2
};

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: BT_OSI: osi_alarm_new alarm_cbs exhausted

Postby mm_1993 » Wed Jan 26, 2022 6:43 am

why these errors happen ? there is no document ???


E (4054) BT_OSI: osi_alarm_new alarm_cbs exhausted

E (4054) BLE_MESH: Alarm not created

abhayram
Posts: 1
Joined: Thu Aug 24, 2023 5:00 am

Re: BT_OSI: osi_alarm_new alarm_cbs exhausted

Postby abhayram » Tue Jan 09, 2024 7:07 am

Hi, Am also facing same issue.
Did you guys get any solution?

What i need to change if i am looking to do a large number devices provision using ESP32 provisioner.

snutw_
Posts: 26
Joined: Wed Aug 21, 2024 1:48 pm

Re: BT_OSI: osi_alarm_new alarm_cbs exhausted

Postby snutw_ » Mon Oct 28, 2024 2:13 pm

Well if someone is going to have the same issue after the next few years, then they should increase CONFIG_BT_ALARM_MAX_NUM to like 80 in sdkconfig and rebuild the project. There is a thread on stackoverflow where it was said as a solution and it really works.
Although there was another problem with the example when I run it. I was using an example from IDF 5.2.2 and there ESP_BLE_MESH_KEY_UNUSED and ESP_BLE_MESH_KEY_UNUSED were defined differently. I had to manually fix this. But in IDF 5.3.1 it seems to be ok here:
https://github.com/espressif/esp-idf/bl ... esh_defs.h

Who is online

Users browsing this forum: Google [Bot] and 140 guests