stereolabs / zed-python-api

Python API for the ZED SDK
https://www.stereolabs.com/docs/app-development/python/install/
MIT License
213 stars 94 forks source link

ZED camera "CAMERA FAILED TO SETUP" error #206

Closed kylecarow closed 2 years ago

kylecarow commented 2 years ago

Preliminary Checks

Description

When running the camera_control.py example file with my ZED 1 (file here), I'm getting the following error:

Running...
Opening ZED Camera...
Grabber Error List
 -at: /builds/sl/ZEDKit/lib/src/sl_input/grabber/linux/linuxStereoGrabber.cpp_2625:  linux_grabber->construct return false
Grabber Error List
 -at: /builds/sl/ZEDKit/lib/src/sl_input/grabber/linux/linuxStereoGrabber.cpp_2625:  linux_grabber->construct return false
Grabber Error List
 -at: /builds/sl/ZEDKit/lib/src/sl_input/grabber/linux/linuxStereoGrabber.cpp_2625:  linux_grabber->construct return false
Grabber Error List
 -at: /builds/sl/ZEDKit/lib/src/sl_input/grabber/linux/linuxStereoGrabber.cpp_2625:  linux_grabber->construct return false
[ZED][Init][Info] Camera opening timeout reached
CAMERA FAILED TO SETUP

Any ideas?

Steps to Reproduce

  1. Verify camera is working in external camera app (ie Cheese)
  2. Run camera_control.py

Expected Result

Camera should open

Actual Result

Camera fails to set up

ZED Camera model

ZED

Environment

OS: Ubuntu 18.04

Anything else?

No response

obraun-sl commented 2 years ago

This error means that it cannot create a video device for the camera. Can you post :

--> Output of $ lsusb --> Output of $ ls /dev/video*

kylecarow commented 2 years ago

$ lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 029: ID 2b03:f582  
Bus 002 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 011: ID 0461:4e2a Primax Electronics, Ltd 
Bus 002 Device 002: ID 1b1c:1b3d Corsair 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ ls /dev/video*

/dev/video0  /dev/video1
YairZiv1M commented 2 years ago

Have been getting the same error.

Description

When running our code we get the "CAMERA FAILED TO SETUP" error. We have been using the ZED Mini with the pyzed api.

ZED Camera model

ZED Mini

Environment

Ubuntu server 20.04

Additional information

  1. Camera works fine when used with cheese or opencapture.
  2. Camera does not work when used via the code or ZED_Explorer.
  3. lsusb shows the camera connected, as well as the HID interface.
  4. ZED_Diagnostics tool says it both didn't detect the camera even though ZEDDetected is true as well as detecting the device as ZED mini MCU; diagnostics output.
  5. Things we've tried and were unsuccessful - Reinstalling CUDA, replacing the camera with another ZED mini, rebooting the system, connecting directly to the camera (usually used with a hub).
Myzhar commented 2 years ago

The latest Ubuntu update updated the v4l2 driver by introducing different management of some parameters that broke the communication with the ZED SDK. We already found the cause of the problem and fixed it. A patch for the ZED SDK will be released in the next few days after completing the QA tests.

kylecarow commented 2 years ago

Recently released version 3.6.5 fixes this issue!

ymei commented 2 years ago

Recently released version 3.6.5 fixes this issue!

We just installed v3.6.5 on Ubuntu 18 (kernel version 5.4.0-99-generic). The issue is still there (/builds/sl/ZEDKit/lib/src/sl_input/grabber/linux/linuxStereoGrabber.cpp_2625: linux_grabber->construct return false …). The camera be viewed by other generic UVC viewers. Any suggestions to solve this problem?

Myzhar commented 2 years ago

Hi @ymei Please do not reply to closed issues. Always create a new one and tag the closed instead. Your problem seems something different, please create a new issue