You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce the same behaviour faster with the attached codes, the peripherals are disconnecting intentionally 20 seconds after being connected in order to trigger the central to reconnect.
The code is working for a while, than errors occur when activating the UART service and finally memory allocation fail happens.
dhalbert
changed the title
Memory allocation failed when reconnecting and activating UART to multiple devices
Memory allocation failed when reconnecting and activating BLE UART to multiple devices
Apr 4, 2025
CircuitPython version and board name
Code/REPL
Behavior
.
.
.
2025-04-04 16:41:15.624302 3536.639: INFO -
2025-04-04 16:41:16.685596 3537.708: INFO - Start scanning for device 205/ea:c0:1d:9b:03:38, timeout=5s Free memory: 8784 Allocated memory: 127296
2025-04-04 16:41:16.799425 3537.822: INFO - -> device found !
2025-04-04 16:41:16.811482 3537.826: INFO - Connecting to device 205/ea:c0:1d:9b:03:38
2025-04-04 16:41:16.952994 3537.922: INFO - -> connected at object: <BLEConnection object at 0x20039200>
2025-04-04 16:41:16.964279 3537.978: INFO - Stopping BLE scan...
2025-04-04 16:41:16.976053 3537.980: INFO - Activating UART service...
2025-04-04 16:41:19.477170 3540.500: INFO - Connection error:
2025-04-04 16:41:19.488508 3540.503: INFO -
2025-04-04 16:41:20.551612 3541.573: INFO - Start scanning for device 205/ea:c0:1d:9b:03:38, timeout=5s Free memory: 8704 Allocated memory: 127376
2025-04-04 16:41:20.659925 3541.684: INFO - Connection error:
2025-04-04 16:41:20.672164 3541.686: INFO - memory allocation failed, allocating 512 bytes
.
.
.
Description
I have this issue on a bigger setup in a form of binary tree, where a dongle connects to 4 other dongles, and so on, see here:
https://forums.adafruit.com/viewtopic.php?p=1047796&hilit=disconnect#p1047796
After several hours, no reconnection was possible anymore.
To reproduce the same behaviour faster with the attached codes, the peripherals are disconnecting intentionally 20 seconds after being connected in order to trigger the central to reconnect.
The code is working for a while, than errors occur when activating the UART service and finally memory allocation fail happens.
Additional information
Here the complete logs:
COM11.txt
COM14.txt
COM210.txt
COM221.txt
COM222.txt
The text was updated successfully, but these errors were encountered: