-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
CPU usage getting high after opening/closing server many times #44
Comments
Indeed, creating an edit: maybe adding a |
Just a trivial note that |
Hi,
This issue might be related or not to issue #43.
In my new Blender add-on project, I implemented an automatic retry function for the OSC server that fires every 500ms. It's quite handy for the user.
Lately I observed Blender taking all of my CPUs and, after investigation, it happens when the server is not able to connect (due to wrong settings) for a long time and therefore is still trying to connect again and again. I can reproduce the problem, the CPU usage rises very slowly and steadily until the app becomes unresponsive. It doesn't happen when the add-on connects successfully at the beginning and keeps the connection running, that's why I only discover the problem now.
If after all the failed attempts the server can at least connects it doesn't solve the issue, the CPU usage stays high and the only solution is to close Blender.
Here is an extract of my code:
As you see I tried to clean the reference "osc_server", setting it to "None", but it doesn't solve the issue.
This is with python 3.7.0 under Ubuntu 18.04 LTS and a fresh "oscpy" copy from github.
The text was updated successfully, but these errors were encountered: