no logging checkboxes visible in cfclient

Post here to get support
Post Reply
tintin
Beginner
Posts: 5
Joined: Sun Feb 16, 2020 2:00 pm

no logging checkboxes visible in cfclient

Post by tintin » Mon Mar 02, 2020 9:19 pm

I'm having difficulties with the "Log Blocks" tab in cfclient: according to the screenshots in the manual/tutorial the variables to be logged can be selected using the respective checkboxes but these are not visible in my client. I'm running the client on a Linux machine (Linux Mint 19.3, Linux 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux). Otherwise the cfclient runs fine.
I've noticed that I'm getting multiple debug/error messages in the console output when doing a mouseover in the area where the checkboxes should be:

===== 2020.03.02 21:03:46 =====
Traceback (most recent call last):
File "/home/uwe/Development/bitcraze/crazyflie-clients-python/src/cfclient/ui/tabs/LogBlockTab.py", line 290, in paint
subElementRect(QStyle.SE_CheckBoxIndicator, option)
TypeError: subElementRect(self, QStyle.SubElement, QStyleOption, QWidget): not enough arguments
...

More details can be found in the attached console dump file.

Any ideas what's causing this?
Thanks and regards
Tintin
Attachments
cfclient_output.txt
(11.87 KiB) Downloaded 14 times



kimberly
Bitcraze
Posts: 255
Joined: Fri Jul 06, 2018 11:13 am

Re: no logging checkboxes visible in cfclient

Post by kimberly » Tue Mar 03, 2020 9:00 am

Hi!

We haven't tested the cfclient on Linux mint yet, as we mainly work on Ubuntu. On Ubuntu 18.04 there is no problem with the check-boxes but Qtgui has a tendency to be a bit tricky on different OSes

Do you mind sending us a screenshot of the cfclient? And are you able to use the logging configurations + logging functionality ?

tintin
Beginner
Posts: 5
Joined: Sun Feb 16, 2020 2:00 pm

Re: no logging checkboxes visible in cfclient

Post by tintin » Tue Mar 03, 2020 12:18 pm

Hi Kimberly,

thanks for the quick reply. I'm currently not at my cfclient computer but I'll send you some screenshots asap, i.e. this evening.
I haven't used the logging functionality yet but the plotting function works fine.

Regards
Tintin

tintin
Beginner
Posts: 5
Joined: Sun Feb 16, 2020 2:00 pm

Re: no logging checkboxes visible in cfclient

Post by tintin » Tue Mar 03, 2020 6:00 pm

Hi,
here are the requested screenshots of my cfclient. The only tab showing a problem is the "Log Blocks" tab, afaik.
Let me know if you need more info about my system / installation. Thanks for your assistance.
Regards
Tintin
Attachments
cfclient_params.png
cfclient_logtoc.png
cfclient_logblocks.png
cfclient_flight.png
cfclient_console.png

kristoffer
Bitcraze
Posts: 209
Joined: Tue Jun 30, 2015 7:47 am

Re: no logging checkboxes visible in cfclient

Post by kristoffer » Wed Mar 04, 2020 7:46 am

There used to be a similar problem on OSX, see https://github.com/bitcraze/crazyflie-c ... issues/308
QT is usually the problem, it might be worth trying another version.

tintin
Beginner
Posts: 5
Joined: Sun Feb 16, 2020 2:00 pm

Re: no logging checkboxes visible in cfclient

Post by tintin » Wed Mar 04, 2020 9:48 pm

Currently I have the following Qt-related versions installed:

dpkg -l python3-pyqt5
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii python3-pyqt5 5.10.1+dfsg- amd64 Python 3 bindings for Qt5

dpkg -l python3-pyqt5.qtsvg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii python3-pyqt5. 5.10.1+dfsg- amd64 Python 3 bindings for Qt5's SVG m

pip3 show pyqtgraph
Name: pyqtgraph
Version: 0.10.0
Summary: Scientific Graphics and GUI Library for Python
Home-page: http://www.pyqtgraph.org
Author: Luke Campagnola
Author-email: luke.campagnola@gmail.com
License: MIT
Location: /home/uwe/.local/lib/python3.6/site-packages
Requires: numpy


Which version would you recommend?

kristoffer
Bitcraze
Posts: 209
Joined: Tue Jun 30, 2015 7:47 am

Re: no logging checkboxes visible in cfclient

Post by kristoffer » Thu Mar 05, 2020 9:56 am

We have one linux machine that uses 5.12.3 that seems to work.
I have 5.14.1 on my machine (OSX) and it actually seems to be a problem there. The check boxes appear too far to the right.

I'll create an issue for it https://github.com/bitcraze/crazyflie-c ... issues/393

tintin
Beginner
Posts: 5
Joined: Sun Feb 16, 2020 2:00 pm

Re: no logging checkboxes visible in cfclient

Post by tintin » Thu Mar 05, 2020 10:45 am

O.K., thanks for the info and for creating an issue. In the meantime I'm using the client in the VM, but it would be more convenient to have it working natively. Regards, Tintin

Post Reply