-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
BLE: crash after running gc.collect() #5226
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
Comments
Thanks for the report @sunbeamer ! I can reproduce this on ESP32 but (so far) not on PYBD. Will investigate and get back to you. |
Thanks for the quick fix @jimmo ! I have tested your fix, both using the steps to reproduce the bug I outlined above, as well as in my own application code that first highlighted the bug and all works OK. |
alu96
pushed a commit
to alu96/micropython
that referenced
this issue
Mar 23, 2020
NimBLE doesn't actually copy this data, it requires it to stay live. Only dereference when we register a new set of services. Fixes micropython#5226 This will allow incrementally adding services in the future, so rename `reset` to `append` to make it clearer.
c0d3z3r0
pushed a commit
to c0d3z3r0/micropython
that referenced
this issue
Apr 5, 2020
NimBLE doesn't actually copy this data, it requires it to stay live. Only dereference when we register a new set of services. Fixes micropython#5226 This will allow incrementally adding services in the future, so rename `reset` to `append` to make it clearer.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue split off from #5171 (comment)
I did find however, that the garbage collection is deleting something important to do with BLE. This bug can be replicated by using the snippet sample above by @HexVitor [see below] and using the following steps:
Code:
The text was updated successfully, but these errors were encountered: