Skip to content
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

Client becomes unresponsive during flight on OSX Sierra and Win10 #326

Closed
scottdarch opened this issue Jan 22, 2018 · 9 comments
Closed
Milestone

Comments

@scottdarch
Copy link

If I use the Crazyflie 2.0 with a flowdeck in hover mode on OSX 10.13.2 the python client becomes unresponsive and has to be force killed. This happens everytime. Strangely the controller continues to work and the drone is responsive so the bug appears to be in the UI only.

@ataffanel
Copy link
Member

Is there anything written in the console when that happen?
How did you install the client?

@krichardsson
Copy link
Contributor

I'm on OSX 10.12.6 and I can not reproduce the problem. Maybe it is related to High Sierra?

@scottdarch
Copy link
Author

I'm running the client from source (0263fbf). I noticed that the UI can recover if left alone for a long time. It seems like it gets overloaded with data during the flight and doesn't have time to redraw the UI. The overall system appears responsive so it's not ultimately CPU bound. It just seems like something in the python's process is getting bogged down and starving the UI thread.

@krichardsson
Copy link
Contributor

Yes, it sounds like queues are filling up.

I have upgraded my machine to OSX 10.13.3 but it works fine for me.

Historically PyQt has caused some problems, which version are you using (you can find out using pip list)?

@scottdarch
Copy link
Author

Was using PyQt 5.9. Upgraded to 5.10. Same issue. UI is unresponsive during flight and for 30-60 seconds after the flight.

@krichardsson
Copy link
Contributor

I'm also on 5.9. I don't really know what to suggest, sorry!

We have a clean mac here at the office and will try to reproduce your problem.

How did you install python? With brew? Which version are you using?
(I assume you are not using the VM)

@babakc
Copy link

babakc commented Dec 30, 2019

Weirdly, i had the exact same problem with 2019.09.1 on win10. As soon as i'd connect to my CF with flow deck, the UI would become almost unresponsive, and at best would lag/refresh terribly.

Downgrading to 2019.01 resolved the problem.

@ataffanel
Copy link
Member

I have isolated the problem on Windows as coming from pyqt5 5.13.1 causing performance problem with the attitude indicator on the flight tab.

Reverting to pyqt5 5.12.1 does fix the problem. I am pushing a fix to setup.py reverting to 5.12.1.

ataffanel added a commit that referenced this issue Jan 13, 2020
@ataffanel
Copy link
Member

Just released a Windows build 19.09.2 which fixes the problem on Windows. Since this issue is fairly old and there has been no new report for OSX, I am closing this issue. Feel free to open a new one in the problem re-occur.

@ataffanel ataffanel changed the title Client becomes unresponsive during flight on OSX Sierra Client becomes unresponsive during flight on OSX Sierra and Win10 Jan 14, 2020
@ataffanel ataffanel added this to the next-release milestone Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants