[SOLVED] (workaround) cfclient segmentation fault
Posted: Mon Sep 28, 2015 7:46 pm
Hello,
I have upgraded to the newest version of the client (develop branch) on Ubuntu 14.04 and installed all the Python3 dependencies.
The client window opens, however after about half a second it closes again (with the button to the right of the Connect button still showing "Scanning..."), giving me a segmentation fault error.
The cause of the error seems to be line 72 in crazyflie-clients-python/lib/cflib/drivers/cfusb.py in the function _find_devices()
I added some debug prints to the function so now it looks like this:
This is the error i am getting:
So it seems to me like calling usb.core.find() is causing the problems. However, I tested it in the Bitcraze VM with the same pyusb version and it works fine.
Does anyone have an idea how to fix this?
Thanks and Regards,
Daniel
I have upgraded to the newest version of the client (develop branch) on Ubuntu 14.04 and installed all the Python3 dependencies.
The client window opens, however after about half a second it closes again (with the button to the right of the Connect button still showing "Scanning..."), giving me a segmentation fault error.
The cause of the error seems to be line 72 in crazyflie-clients-python/lib/cflib/drivers/cfusb.py in the function _find_devices()
I added some debug prints to the function so now it looks like this:
Code: Select all
def _find_devices():
"""
Returns a list of CrazyRadio devices currently connected to the computer
"""
ret = []
logger.info("Looking for devices....")
if pyusb1:
logger.info("pyusb1")
for d in usb.core.find(idVendor=USB_VID, idProduct=USB_PID, find_all=1, #segmentation fault here
backend=pyusb_backend):
ret.append(d)
else:
logger.info("not pyusb1")
busses = usb.busses()
for bus in busses:
for device in bus.devices:
if device.idVendor == USB_VID:
if device.idProduct == USB_PID:
ret += [device, ]
logger.info("Looking for devices done")
return ret
Code: Select all
...
WARNING:cfclient.ui.tabs.GpsTab:GPS tab not enabled since no Pythonbindings for Marble was found
INFO:cflib.crtp.radiodriver:v0.52 dongle with serial N/A found
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.drivers.cfusb:pyusb1
Segmentation fault
Does anyone have an idea how to fix this?
Thanks and Regards,
Daniel