I get a segmentation fault in uvc.Capture(device) using the provided example.py with a SG12 camera connected via USB.
This happens because the pointer frame_desc.intervals is NULL here:
https://github.com/pupil-labs/pyuvc/blob/066496be0a18e734833f437d97d89a9d42128338/uvc.pyx#L669
Providing a fixed framerate (I tried fps 1-1000) to uvc_get_stream_ctrl_format_size leads to error return code -51, i.e. Mode not supported.
The camera works with ffmpeg (although it drops frames frequently), so it is not broken.
pyuvc works with a different webcam, so the installation is ok, too.
Im getting the same error trying to run the example with a logitech c270. The test runs for a single loop of the 10 iteration and gets a segmentation fault...
I get a segmentation fault in
uvc.Capture(device)
using the providedexample.py
with aSG12
camera connected via USB. This happens because the pointerframe_desc.intervals
isNULL
here: https://github.com/pupil-labs/pyuvc/blob/066496be0a18e734833f437d97d89a9d42128338/uvc.pyx#L669 Providing a fixed framerate (I tried fps 1-1000) touvc_get_stream_ctrl_format_size
leads to error return code-51
, i.e.Mode not supported
. The camera works withffmpeg
(although it drops frames frequently), so it is not broken.pyuvc
works with a different webcam, so the installation is ok, too.