Unable to Open Depth Camera at Specified Resolution (Ubuntu 22.04, CUDA 12.1, ZED)

I recently installed the ZED SDK following the official installation guide: Installation Guide. The installation process completed without any issues.

After installation, I tested the RGB view, and it worked perfectly. However, when I try to open the depth camera, I encounter the following error:

“UNABLE TO OPEN THE CAMERA AT THE SPECIFIED RESOLUTION”

My system specifications are:

*OS: Ubuntu 22.04
*CUDA: 12.1
*ZED Camera Model: ZED 2i
I am unsure what is causing this issue. Could anyone suggest possible reasons and solutions to resolve it?
Thanks in advance!

Lucky for me, I finally got my ZED camera working!

I was stuck with the “Unable to Open Depth Camera at Specified Resolution” error and had no idea what was wrong. So, I decided to send my ZED diagnostic report to ChatGPT, and that turned out to be the best decision!
ChatGPT analyzed my report and found that OpenGL was being processed by my AMD CPU instead of my NVIDIA GPU. This was unexpected, and to confirm, I ran:

glxinfo | grep “OpenGL vendor”

And sure enough, it showed AMD instead of NVIDIA!

Following ChatGPT’s suggestion, I executed:

sudo prime-select nvidia
sudo reboot
God,everything is work.
Sharing my experience in the hope that it helps someone facing the same problem.