Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault in uvc.Capture with SG12 camera #70

Open
99991 opened this issue Dec 27, 2019 · 1 comment
Open

Segmentation fault in uvc.Capture with SG12 camera #70

99991 opened this issue Dec 27, 2019 · 1 comment

Comments

@99991
Copy link

99991 commented Dec 27, 2019

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:

pyuvc/uvc.pyx

Line 669 in 066496b

while frame_desc.intervals[i]:

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants