-
Notifications
You must be signed in to change notification settings - Fork 490
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
bluepy helper keeps crashing #267
Comments
I have a similar problem on Debian 4.9. The application can run fine foe hours but then it starts to crash repeatedly with an error like the one above or simply ERRNO 32 Broken Pipe inidicating the helper has crashed. |
I have the same problem ! |
Any updates? |
I'm author of https://github.com/JsBergbau/MiTemperature2 and I encounter a similiar problem. bluepy-helper crashes on a PI Zero W after some time. Sometimes a few hours, sometimes longer. Quite difficult to track. bluepy-helper then uses 100 % CPU and connection to this MAC address even with gatttool is not possible anymore. Connection to another BLE device with gatttool is possible. The current solution I have is to kill bluepy-helper and data can be read again. |
I have traced down the issue a bit. It hangs at the connection establishment. So I've implemented a watchdog thread. After one minute unconnected it fetches the pid of bluepy-helper from the process tree, kills and program continues. |
@JsBergbau Could You write a bit more about this watchdog? I'm suffering from this issue and planned to use monit daemon to kill the process if it has more than 15%, but matbe Your solution is better. I'm using of course Your script to read from BLE termometer. [ I'm not so familiar with python.... ] |
Hi I use this code
started by
in my script. From a quick view it should work in your script without any modifications. |
I believe it is alreaddy in my script and unfortunately does not work in 100%. I got daily 2-3 hanging bluepy-helper processes that warms up the raspberry pi chipset to >85 C deg. and take 100% of processor I wrote some script ( called sys_usage ) that is run form monit daemon called by: check process bluepy-helper matching "bluepy-helper" and the script ( it uses binary calculator - in debian One should add the package [ sudo apt-get install bc ] ): #!/bin/bash echo "$LOG_DATA LAVG: current: $LAVG , max. accept: $MAX_LAVG" >> $LOG_PATH if (( $(echo "$LAVG > $MAX_LAVG" |/usr/bin/bc -l) )); then sleep 90 LAVG= Maybe it helps someone. For me it works 100% - 10 days without hanging bluepy-helper. |
Hi all,
in my project I run a scan for one second in a loop. This worked very well since February. Now since monday I face an issue where the bluepy helper seems to crash and bluepy is no longer functioning. This happens after a couple of minutes.
In my python script I get the following exception:
And in top I can see that there is no more bluepy helper running.
As I said the code was working before so I wonder what has happened.
Any ideas?
Thanks,
Filip
The text was updated successfully, but these errors were encountered: