cfclient doesn't start on osx

Post here to get support
graboosky
Beginner
Posts: 13
Joined: Mon Jan 27, 2020 8:11 am

cfclient doesn't start on osx

Post by graboosky » Sun Feb 02, 2020 8:00 am

(...actually, it does, for less than a second I can see python icon in the dock, then below error)

Hi guys,

I am not a python guy, but steps described on GitHub to make it run on OSX are quite straight forward.
So what I did:

1.

Code: Select all

brew install python3 sdl sdl2 sdl_image sdl_mixer sdl_ttf libusb portmidi pyqt5
2.

Code: Select all

pip3 install cfclient
No errors at all.

but running `cfclient` in terminal gives me:

Code: Select all

Patryks-Mac:~ patryk_grabowski$ cfclient
INFO:cfclient.gui:Disabling STL printouts
INFO:cfclient.gui:Foundation not found. Menu will show python as application name
INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Could not initialize [linuxjsdev]: Only supported on Linux
INFO:cfclient.utils.input.inputreaders:Successfully initialized [pysdl2]
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['leapmotion', 'wiimote', 'zmqpull']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk')
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid'
INFO:cfclient.utils.config:Dist config read from /usr/local/lib/python3.7/site-packages/cfclient/configs/config.json
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.ui.main:This is a MAC - checking if we can apply Progress Bar Stylesheet for Yosemite Skinny Bars 
INFO:cfclient.ui.main:Found Yosemite - applying stylesheet
INFO:cfclient.utils.zmq_param:Biding ZMQ for parameters at tcp://*:1213
INFO:cfclient.utils.zmq_led_driver:Biding ZMQ for LED driverat tcp://*:1214
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
===== 2020.02.02 08:02:02 =====
Traceback (most recent call last):
  File "/usr/local/bin/cfclient", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/cfclient/gui.py", line 159, in main
    main_window = MainUI()
  File "/usr/local/lib/python3.7/site-packages/cfclient/ui/main.py", line 201, in __init__
    self._mux_group = QActionGroup(self._menu_inputdevice, exclusive=True)
TypeError: 'exclusive' is an unknown keyword argument
What does it mean?
Is there some problem with Qt?

Thanks

osx: Catalina 10.15.2



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

Re: cfclient doesn't start on osx

Post by kristoffer » Mon Feb 03, 2020 11:17 am

Which version of pyqt5 are you using?

Code: Select all

pip show pyqt5

graboosky
Beginner
Posts: 13
Joined: Mon Jan 27, 2020 8:11 am

Re: cfclient doesn't start on osx

Post by graboosky » Mon Feb 03, 2020 1:18 pm

Thanks for reply,

Here we go:

Code: Select all

Patryks-Mac:~ patryk_grabowski$ pip3 show pyqt5
Name: PyQt5
Version: 5.14.0
Summary: None
Home-page: None
Author: None
Author-email: None
License: None
Location: /usr/local/lib/python3.7/site-packages
Requires: 
Required-by: 
Patryks-Mac:~ patryk_grabowski$ 

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

Re: cfclient doesn't start on osx

Post by kristoffer » Mon Feb 03, 2020 3:41 pm

It seems as there is a problem with pyqt5 5.14. I have been using 5.13 and that works fine.

I created a github issue for this:
https://github.com/bitcraze/crazyflie-c ... issues/386

Try to install the previous version pyqt5 5.13 instead. I usually install pyqt with pip instead of homebrew. I think in your case I would first uninstall through brew and then install with pip

Code: Select all

brew uninstall pyqt5
pip install pyqt5==5.13

graboosky
Beginner
Posts: 13
Joined: Mon Jan 27, 2020 8:11 am

Re: cfclient doesn't start on osx

Post by graboosky » Tue Feb 04, 2020 3:38 pm

There is some progress but still have some problems:

Code: Select all

Patryks-Mac:~ patryk_grabowski$ cfclient
INFO:cfclient.gui:Disabling STL printouts
INFO:cfclient.gui:Foundation not found. Menu will show python as application name
INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Could not initialize [linuxjsdev]: Only supported on Linux
INFO:cfclient.utils.input.inputreaders:Successfully initialized [pysdl2]
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['leapmotion', 'wiimote', 'zmqpull']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk')
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid'
INFO:cfclient.utils.config:Dist config read from /usr/local/lib/python3.7/site-packages/cfclient/configs/config.json
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.ui.main:This is a MAC - checking if we can apply Progress Bar Stylesheet for Yosemite Skinny Bars 
INFO:cfclient.ui.main:Found Yosemite - applying stylesheet
INFO:cfclient.utils.zmq_param:Biding ZMQ for parameters at tcp://*:1213
INFO:cfclient.utils.zmq_led_driver:Biding ZMQ for LED driverat tcp://*:1214
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.drivers.cfusb:Looking for devices....
===== 2020.02.04 16:02:14 =====
AttributeError: __getattribute__

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/cfclient", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/cfclient/gui.py", line 159, in main
    main_window = MainUI()
  File "/usr/local/lib/python3.7/site-packages/cfclient/ui/main.py", line 324, in __init__
    tab = tabClass(self.tabs, cfclient.ui.pluginhelper)
  File "/usr/local/lib/python3.7/site-packages/cfclient/ui/tabs/QualisysTab.py", line 182, in __init__
    self.setupUi(self)
  File "<string>", line 386, in setupUi
SystemError: <built-in function connectSlotsByName> returned a result with an error set
But maybe it is because I didn't attach crazyradio? I will let you know if that was the issue.

graboosky
Beginner
Posts: 13
Joined: Mon Jan 27, 2020 8:11 am

Re: cfclient doesn't start on osx

Post by graboosky » Wed Feb 05, 2020 7:13 am

Same error with USB connected:/

Here is more in crash-report:

Code: Select all

Process:               Python [41784]
Path:                  /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               3.7.6 (3.7.6)
Code Type:             X86-64 (Native)
Parent Process:        bash [40606]
Responsible:           Terminal [18833]
User ID:               501

Date/Time:             2020-02-05 08:14:40.353 +0100
OS Version:            Mac OS X 10.15.3 (19D76)
Report Version:        12
Bridge OS Version:     3.0 (14Y908)
Anonymous UUID:        907CA465-BA6D-6069-6BE2-33552E1CC33A

Sleep/Wake UUID:       693B8167-7CDA-45A0-917C-58255601C684

Time Awake Since Boot: 37000 seconds
Time Since Wake:       1000 seconds

System Integrity Protection: enabled

Crashed Thread:        19  ScannerThread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000057
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [41784]

VM Regions Near 0x57:
--> 
    __TEXT                 0000000105eeb000-0000000105eed000 [    8K] r-x/r-x SM=COW  /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python

Thread 0:: Dispatch queue: com.apple.main-thread
0   org.python.python             	0x0000000105f1e8cc app1 + 75
1   org.python.python             	0x0000000105fdeca5 gc_get_objects + 81
2   org.python.python             	0x0000000105f0b893 _PyMethodDef_RawFastCallKeywords + 583
3   org.python.python             	0x0000000105f0adc0 _PyCFunction_FastCallKeywords + 41
4   org.python.python             	0x0000000105fa02b4 call_function + 628
5   org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
6   org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
7   org.python.python             	0x000000010600264c atexit_callfuncs + 106
8   org.python.python             	0x0000000105fbe6f3 Py_FinalizeEx + 61
9   org.python.python             	0x0000000105fdc960 pymain_main + 5095
10  org.python.python             	0x0000000105fdd12c _Py_UnixMain + 56
11  libdyld.dylib                 	0x00007fff6de6e7fd start + 1

Thread 1:
0   libsystem_pthread.dylib       	0x00007fff6e06e818 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	0x00007fff6e06e818 start_wqthread + 0

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff6dfb1ce6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff6e073185 _pthread_cond_wait + 701
2   libopenblasp-r0.3.7.dylib     	0x000000010c068c3b blas_thread_server + 619
3   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
4   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff6dfb75be __select + 10
1   org.python.python             	0x0000000106004ab4 time_sleep + 116
2   org.python.python             	0x0000000105f0b893 _PyMethodDef_RawFastCallKeywords + 583
3   org.python.python             	0x0000000105f0adc0 _PyCFunction_FastCallKeywords + 41
4   org.python.python             	0x0000000105fa02b4 call_function + 628
5   org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
6   org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
7   org.python.python             	0x0000000105fa0321 call_function + 737
8   org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
9   org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
10  org.python.python             	0x0000000105fa0321 call_function + 737
11  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
12  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
13  org.python.python             	0x0000000105f0bb07 _PyObject_Call_Prepend + 131
14  org.python.python             	0x0000000105f0aecd PyObject_Call + 136
15  org.python.python             	0x0000000106006d09 t_bootstrap + 71
16  org.python.python             	0x0000000105fce0be pythread_wrapper + 25
17  libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
18  libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 5:
0   libsystem_kernel.dylib        	0x00007fff6dfb1ce6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff6e073185 _pthread_cond_wait + 701
2   libopenblasp-r0.3.7.dylib     	0x0000000115df9c3b blas_thread_server + 619
3   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
4   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 6:
0   libsystem_pthread.dylib       	0x00007fff6e06e818 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib       	0x00007fff6e06e818 start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib       	0x00007fff6e06e818 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib       	0x00007fff6e06e818 start_wqthread + 0

Thread 10:: com.apple.CFSocket.private
0   libsystem_kernel.dylib        	0x00007fff6dfb75be __select + 10
1   com.apple.CoreFoundation      	0x00007fff367f3d8a __CFSocketManager + 632
2   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
3   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 11:
0   libsystem_kernel.dylib        	0x00007fff6dfb75be __select + 10
1   org.python.python             	0x0000000106004ab4 time_sleep + 116
2   org.python.python             	0x0000000105f0b893 _PyMethodDef_RawFastCallKeywords + 583
3   org.python.python             	0x0000000105f0adc0 _PyCFunction_FastCallKeywords + 41
4   org.python.python             	0x0000000105fa02b4 call_function + 628
5   org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
6   org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
7   org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
8   org.python.python             	0x0000000105fa0321 call_function + 737
9   org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
10  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
11  org.python.python             	0x0000000105fa0321 call_function + 737
12  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
13  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
14  org.python.python             	0x0000000105f0bb07 _PyObject_Call_Prepend + 131
15  org.python.python             	0x0000000105f0aecd PyObject_Call + 136
16  org.python.python             	0x0000000106006d09 t_bootstrap + 71
17  org.python.python             	0x0000000105fce0be pythread_wrapper + 25
18  libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
19  libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 12:
0   libsystem_kernel.dylib        	0x00007fff6dfb1ce6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff6e073185 _pthread_cond_wait + 701
2   org.python.python             	0x0000000105fce413 PyThread_acquire_lock_timed + 393
3   org.python.python             	0x00000001060065ec acquire_timed + 104
4   org.python.python             	0x00000001060063af lock_PyThread_acquire_lock + 44
5   org.python.python             	0x0000000105f0b865 _PyMethodDef_RawFastCallKeywords + 537
6   org.python.python             	0x0000000105f10065 _PyMethodDescr_FastCallKeywords + 81
7   org.python.python             	0x0000000105fa034e call_function + 782
8   org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
9   org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
10  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
11  org.python.python             	0x0000000105fa0321 call_function + 737
12  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
13  org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
14  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
15  org.python.python             	0x0000000105fa0321 call_function + 737
16  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
17  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
18  org.python.python             	0x0000000105fa0321 call_function + 737
19  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
20  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
21  org.python.python             	0x0000000105fa0321 call_function + 737
22  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
23  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
24  org.python.python             	0x0000000105f0bb07 _PyObject_Call_Prepend + 131
25  org.python.python             	0x0000000105f0aecd PyObject_Call + 136
26  org.python.python             	0x0000000106006d09 t_bootstrap + 71
27  org.python.python             	0x0000000105fce0be pythread_wrapper + 25
28  libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
29  libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 13:: ZMQbg/Reaper
0   libsystem_kernel.dylib        	0x00007fff6dfb3bce kevent + 10
1   libzmq.cpython-37m-darwin.so  	0x00000001104d4b5b zmq::kqueue_t::loop() + 171
2   libzmq.cpython-37m-darwin.so  	0x00000001104cb33d thread_routine(void*) + 61
3   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
4   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 14:: ZMQbg/IO/0
0   libsystem_kernel.dylib        	0x00007fff6dfb3bce kevent + 10
1   libzmq.cpython-37m-darwin.so  	0x00000001104d4b5b zmq::kqueue_t::loop() + 171
2   libzmq.cpython-37m-darwin.so  	0x00000001104cb33d thread_routine(void*) + 61
3   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
4   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 15:
0   libsystem_kernel.dylib        	0x00007fff6dfb5896 poll + 10
1   libzmq.cpython-37m-darwin.so  	0x00000001105100cb zmq::signaler_t::wait(int) + 59
2   libzmq.cpython-37m-darwin.so  	0x00000001104f8c12 zmq::mailbox_t::recv(zmq::command_t*, int) + 66
3   libzmq.cpython-37m-darwin.so  	0x00000001104e9577 zmq::socket_base_t::process_commands(int, bool) + 71
4   libzmq.cpython-37m-darwin.so  	0x00000001104ed13a zmq::socket_base_t::recv(zmq::msg_t*, int) + 410
5   libzmq.cpython-37m-darwin.so  	0x00000001104f3e12 zmq_msg_recv + 50
6   socket.cpython-37m-darwin.so  	0x0000000110608926 __pyx_f_3zmq_7backend_6cython_6socket_6Socket_recv + 1862
7   socket.cpython-37m-darwin.so  	0x000000011060d606 __pyx_pw_3zmq_7backend_6cython_6socket_6Socket_29recv + 806
8   error.cpython-37m-darwin.so   	0x00000001105c7549 __Pyx_CyFunction_CallAsMethod + 89
9   org.python.python             	0x0000000105f0ac36 _PyObject_FastCallKeywords + 358
10  org.python.python             	0x0000000105fa031a call_function + 730
11  org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
12  org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
13  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
14  org.python.python             	0x0000000105fa0321 call_function + 737
15  org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
16  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
17  org.python.python             	0x0000000105fa0321 call_function + 737
18  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
19  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
20  org.python.python             	0x0000000105fa0321 call_function + 737
21  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
22  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
23  org.python.python             	0x0000000105f0bb07 _PyObject_Call_Prepend + 131
24  org.python.python             	0x0000000105f0aecd PyObject_Call + 136
25  org.python.python             	0x0000000106006d09 t_bootstrap + 71
26  org.python.python             	0x0000000105fce0be pythread_wrapper + 25
27  libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
28  libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 16:: ZMQbg/Reaper
0   libsystem_kernel.dylib        	0x00007fff6dfb3bce kevent + 10
1   libzmq.cpython-37m-darwin.so  	0x00000001104d4b5b zmq::kqueue_t::loop() + 171
2   libzmq.cpython-37m-darwin.so  	0x00000001104cb33d thread_routine(void*) + 61
3   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
4   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 17:: ZMQbg/IO/0
0   libsystem_kernel.dylib        	0x00007fff6dfb3bce kevent + 10
1   libzmq.cpython-37m-darwin.so  	0x00000001104d4b5b zmq::kqueue_t::loop() + 171
2   libzmq.cpython-37m-darwin.so  	0x00000001104cb33d thread_routine(void*) + 61
3   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
4   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 18:
0   libsystem_kernel.dylib        	0x00007fff6dfb5896 poll + 10
1   libzmq.cpython-37m-darwin.so  	0x00000001105100cb zmq::signaler_t::wait(int) + 59
2   libzmq.cpython-37m-darwin.so  	0x00000001104f8c12 zmq::mailbox_t::recv(zmq::command_t*, int) + 66
3   libzmq.cpython-37m-darwin.so  	0x00000001104e9577 zmq::socket_base_t::process_commands(int, bool) + 71
4   libzmq.cpython-37m-darwin.so  	0x00000001104ed13a zmq::socket_base_t::recv(zmq::msg_t*, int) + 410
5   libzmq.cpython-37m-darwin.so  	0x00000001104f3e12 zmq_msg_recv + 50
6   socket.cpython-37m-darwin.so  	0x0000000110608926 __pyx_f_3zmq_7backend_6cython_6socket_6Socket_recv + 1862
7   socket.cpython-37m-darwin.so  	0x000000011060d606 __pyx_pw_3zmq_7backend_6cython_6socket_6Socket_29recv + 806
8   error.cpython-37m-darwin.so   	0x00000001105c7549 __Pyx_CyFunction_CallAsMethod + 89
9   org.python.python             	0x0000000105f0ac36 _PyObject_FastCallKeywords + 358
10  org.python.python             	0x0000000105fa031a call_function + 730
11  org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
12  org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
13  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
14  org.python.python             	0x0000000105fa0321 call_function + 737
15  org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
16  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
17  org.python.python             	0x0000000105fa0321 call_function + 737
18  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
19  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
20  org.python.python             	0x0000000105fa0321 call_function + 737
21  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
22  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
23  org.python.python             	0x0000000105f0bb07 _PyObject_Call_Prepend + 131
24  org.python.python             	0x0000000105f0aecd PyObject_Call + 136
25  org.python.python             	0x0000000106006d09 t_bootstrap + 71
26  org.python.python             	0x0000000105fce0be pythread_wrapper + 25
27  libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
28  libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 19 Crashed:: ScannerThread
0   libusb-1.0.0.dylib            	0x0000000120517040 handle_timeouts + 239
1   libusb-1.0.0.dylib            	0x0000000120516d87 libusb_handle_events_timeout_completed + 63
2   libusb-1.0.0.dylib            	0x0000000120517721 libusb_handle_events_completed + 34
3   libusb-1.0.0.dylib            	0x0000000120517eed sync_transfer_wait_for_completion + 62
4   libusb-1.0.0.dylib            	0x0000000120517db7 libusb_control_transfer + 287
5   _ctypes.cpython-37m-darwin.so 	0x000000010b23c29f ffi_call_unix64 + 79
6   _ctypes.cpython-37m-darwin.so 	0x000000010b23ca4d ffi_call + 717
7   _ctypes.cpython-37m-darwin.so 	0x000000010b237e6d _ctypes_callproc + 742
8   _ctypes.cpython-37m-darwin.so 	0x000000010b23277d PyCFuncPtr_call + 507
9   org.python.python             	0x0000000105f0ac36 _PyObject_FastCallKeywords + 358
10  org.python.python             	0x0000000105fa031a call_function + 730
11  org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
12  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
13  org.python.python             	0x0000000105fa0321 call_function + 737
14  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
15  org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
16  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
17  org.python.python             	0x0000000105fa0321 call_function + 737
18  org.python.python             	0x0000000105f993d2 _PyEval_EvalFrameDefault + 7090
19  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
20  org.python.python             	0x0000000105fa0321 call_function + 737
21  org.python.python             	0x0000000105f9932a _PyEval_EvalFrameDefault + 6922
22  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
23  org.python.python             	0x0000000105fa0321 call_function + 737
24  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
25  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
26  org.python.python             	0x0000000105fa0321 call_function + 737
27  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
28  org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
29  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
30  org.python.python             	0x0000000105fa0321 call_function + 737
31  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
32  org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
33  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
34  org.python.python             	0x0000000105fa0321 call_function + 737
35  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
36  org.python.python             	0x0000000105fa0b15 _PyEval_EvalCodeWithName + 1698
37  org.python.python             	0x0000000105f0ad88 _PyFunction_FastCallKeywords + 212
38  org.python.python             	0x0000000105fa0321 call_function + 737
39  org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
40  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
41  org.python.python             	0x0000000105f0bb07 _PyObject_Call_Prepend + 131
42  org.python.python             	0x0000000105f0aecd PyObject_Call + 136
43  QtCore.so                     	0x0000000107198a47 PyQtSlot::call(_object*, _object*) const + 39
44  QtCore.so                     	0x0000000107198956 PyQtSlot::invoke(void**, _object*, void*, bool) const + 374
45  QtCore.so                     	0x0000000107199455 PyQtSlotProxy::unislot(void**) + 85
46  QtCore.so                     	0x00000001071993ca PyQtSlotProxy::qt_metacall(QMetaObject::Call, int, void**) + 58
47  QtCore                        	0x000000010754b281 QObject::event(QEvent*) + 753
48  QtWidgets                     	0x000000010aba081d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
49  QtWidgets                     	0x000000010aba1c22 QApplication::notify(QObject*, QEvent*) + 594
50  QtWidgets.so                  	0x000000010a76f0da sipQApplication::notify(QObject*, QEvent*) + 234
51  QtCore                        	0x00000001075213f4 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
52  QtCore                        	0x000000010752262e QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 878
53  QtCore                        	0x0000000107578d58 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 72
54  QtCore                        	0x000000010751c96f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
55  QtCore                        	0x000000010735830c QThread::exec() + 140
56  QtCore.so                     	0x000000010708b04e sipQThread::run() + 94
57  QtCore                        	0x0000000107359283 0x107337000 + 139907
58  libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
59  libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 20:
0   libsystem_kernel.dylib        	0x00007fff6dfb75be __select + 10
1   org.python.python             	0x0000000106004ab4 time_sleep + 116
2   org.python.python             	0x0000000105f0b893 _PyMethodDef_RawFastCallKeywords + 583
3   org.python.python             	0x0000000105f0adc0 _PyCFunction_FastCallKeywords + 41
4   org.python.python             	0x0000000105fa02b4 call_function + 628
5   org.python.python             	0x0000000105f9928f _PyEval_EvalFrameDefault + 6767
6   org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
7   org.python.python             	0x0000000105fa0321 call_function + 737
8   org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
9   org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
10  org.python.python             	0x0000000105fa0321 call_function + 737
11  org.python.python             	0x0000000105f99276 _PyEval_EvalFrameDefault + 6742
12  org.python.python             	0x0000000105f0b194 function_code_fastcall + 106
13  org.python.python             	0x0000000105f0bb07 _PyObject_Call_Prepend + 131
14  org.python.python             	0x0000000105f0aecd PyObject_Call + 136
15  org.python.python             	0x0000000106006d09 t_bootstrap + 71
16  org.python.python             	0x0000000105fce0be pythread_wrapper + 25
17  libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
18  libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 21:: CrazyloadThread
0   libsystem_kernel.dylib        	0x00007fff6dfb5896 poll + 10
1   QtCore                        	0x0000000107577810 qt_safe_poll(pollfd*, unsigned int, timespec const*) + 608
2   QtCore                        	0x000000010757906a QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 858
3   QtCore                        	0x000000010751c96f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
4   QtCore                        	0x000000010735830c QThread::exec() + 140
5   QtCore.so                     	0x000000010708b04e sipQThread::run() + 94
6   QtCore                        	0x0000000107359283 0x107337000 + 139907
7   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
8   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 22:: CrazyloadThread
0   libsystem_kernel.dylib        	0x00007fff6dfb5896 poll + 10
1   QtCore                        	0x0000000107577810 qt_safe_poll(pollfd*, unsigned int, timespec const*) + 608
2   QtCore                        	0x000000010757906a QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 858
3   QtCore                        	0x000000010751c96f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
4   QtCore                        	0x000000010735830c QThread::exec() + 140
5   QtCore.so                     	0x000000010708b04e sipQThread::run() + 94
6   QtCore                        	0x0000000107359283 0x107337000 + 139907
7   libsystem_pthread.dylib       	0x00007fff6e072e65 _pthread_start + 148
8   libsystem_pthread.dylib       	0x00007fff6e06e83b thread_start + 15

Thread 19 crashed with X86 Thread State (64-bit):
  rax: 0xffffffffffffffff  rbx: 0x000000012284dbb0  rcx: 0x0000000000000000  rdx: 0x000000000000b203
  rdi: 0x000000012284db70  rsi: 0x0000000000000000  rbp: 0x000070000bd24c00  rsp: 0x000070000bd24bb0
   r8: 0x000070000bd24b50   r9: 0x000000000000000c  r10: 0x00007fd29580e910  r11: 0xffff8ffff42dc65f
  r12: 0x00007fd295eb8380  r13: 0x0000000000018dbe  r14: 0x000000012284db28  r15: 0x00000000fffffffb
  rip: 0x0000000120517040  rfl: 0x0000000000010282  cr2: 0x0000000000000057
  
Logical CPU:     3
Error Code:      0x00000004 (no mapping for user data write)
Trap Number:     14

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 29306
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=762.8M resident=0K(0%) swapped_out_or_unallocated=762.8M(100%)
Writable regions: Total=265.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=265.7M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               384K        3 
Activity Tracing                   256K        1 
CG backing stores                  992K        2 
CG image                           516K        1 
CoreImage                           24K        2 
CoreServices                        64K        1 
CoreUI image data                  116K        1 
Dispatch continuations            8192K        1 
Foundation                           4K        1 
Kernel Alloc Once                    8K        1 
MALLOC                            66.9M       76 
MALLOC guard page                   32K        8 
MALLOC_LARGE (reserved)            512K        2         reserved VM address space (unallocated)
STACK GUARD                         92K       23 
Stack                             54.2M       23 
VM_ALLOCATE                       99.8M      155 
VM_ALLOCATE (reserved)            32.0M        1         reserved VM address space (unallocated)
__DATA                            33.9M      554 
__DATA_CONST                       428K       46 
__FONT_DATA                          4K        1 
__LINKEDIT                       383.3M      222 
__OBJC_RO                         32.0M        1 
__OBJC_RW                         1776K        1 
__TEXT                           379.4M      501 
__UNICODE                          564K        1 
mapped file                       67.9M       17 
shared memory                      632K       14 
===========                     =======  ======= 
TOTAL                              1.1G     1660 
TOTAL, minus reserved VM space     1.1G     1660 

Model: MacBookPro13,2, BootROM 264.0.0.0.0, 2 processors, Dual-Core Intel Core i7, 3,3 GHz, 16 GB, SMC 2.37f21
Graphics: kHW_IntelIrisGraphics550Item, Intel Iris Graphics 550, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x157), Broadcom BCM43xx 1.0 (7.77.106.3 AirPortDriverBrcmNIC-1440.1)
Bluetooth: Version 7.0.3f5, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Network Service: iPhone, Ethernet, en7
USB Device: USB 3.0 Bus
USB Device: iPhone
USB Device: USB 2.0 Hub
USB Device: Crazyradio PA USB Dongle
USB Device: Composite Device
USB Device: Apple T1 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.1
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.1


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

Re: cfclient doesn't start on osx

Post by kristoffer » Wed Feb 05, 2020 8:46 am

It looks like there is a problem with your Qt installation. I'm not sure what it might be, but maybe try to un-install and re-install.

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

Re: cfclient doesn't start on osx

Post by kristoffer » Wed Feb 05, 2020 1:03 pm

I found the problem(s)
* QT seems to have changed the API in 5.14 (!), but I found a work around that works both for the old and new flavours.
* The second problem seems to be related to python 3.7.5, at least on OSX. I found a workaround for this as well.

Pull down the latest version of bitcraze/crazyflie-clients-python, and all should hopefully work as expected.

graboosky
Beginner
Posts: 13
Joined: Mon Jan 27, 2020 8:11 am

Re: cfclient doesn't start on osx

Post by graboosky » Thu Feb 06, 2020 7:54 am

Great!!!

I have seen your changes on GitHub, thank You.

But.. xD

It is probably easy to solve - many topics on StackOverflow but neither works for me:

Code: Select all

qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Have you seen this?

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

Re: cfclient doesn't start on osx

Post by kristoffer » Thu Feb 06, 2020 8:44 am

Do you still have problems after the fixes I did in the code?
If you do, could you please describe the new state, add logs and so on.
Thanks!

Post Reply