pupil-labs / pyuvc

python binding to libuvc
Other
119 stars 51 forks source link

Segmentation fault in uvc.Capture with SG12 camera #70

Open 99991 opened 4 years ago

99991 commented 4 years ago

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.

brandonhanner commented 4 years ago

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...