-
Notifications
You must be signed in to change notification settings - Fork 301
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
OSError: [Errno 24] Too many open files #169
Comments
There are quite a fixes in v0.6.1. Have you tried that version? |
@dlech Actually I am using the latest v0.6.1 release. (Will update the issue description above) |
No, it does not work. Bleak or txdbus or (more unlikely) the BlueZ DBus API does not close things appropriately and leaks file descriptors. This leads to this problem in you use it continuously. The simpel solution is to not use it continuously. I will not look at this in the foreseeable future I am afraid. I am swamped with other (paid) work and cannot guarantee doing anything with this project for quite some time. I will still address PRs to develop branch occasionally, so if you desire these changes you have to do the legwork yourselves. |
There was a bug in bleak (hbldh/bleak#169), which resulted in crashes. Updating to a newer version of bleak fixes this issue.
bleak version: 0.6.1
Python version: 3.8
Operating System: ArchArm Linux
BlueZ version: 5.54
What I Did
I wrote a script that keeps trying to connect to a BLE device. It runs in an infinite loop forever. I let it run overnight when the BLE device was not in range and obviously it would be failing to connect. In the morning I check the logs and it is failing with
OSError: [Errno 24] Too many open files
.Stacktrace
Code
The text was updated successfully, but these errors were encountered: