ZED_Depth_Viewer boot failure

I have install ZED SDK 3.7.4 for ZED 2i.
However, when I installed nvidia driver, cuda and zed, I found that I can not boot zed_depth_reviewer.
The error is below:

$ZED_Depth_Viewer 
QGLShader::link: "error: vertex shader lacks `main'\n"
[ZED Depth Viewer] Failed to link shaders to program
QGLShader::link: "error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader"
[ZED Depth Viewer] Failed to bind shaders to program
QGLShaderProgram::uniformLocation( texture ): shader program is not linked
QGLShaderProgram::uniformLocation( matrix ): shader program is not linked
QGLShader::link: "error: vertex shader lacks `main'\n"
[ZED Depth Viewer] Failed to link shaders to program
QGLShader::link: "error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader"
[ZED Depth Viewer] Failed to bind shaders to program
QGLShaderProgram::uniformLocation( texture ): shader program is not linked
QGLShaderProgram::uniformLocation( matrix ): shader program is not linked
[ZED Depth Viewer] CUDA - OpenGL Interop Failed with Err Code  304
QGLShader::link: "error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader"
QGLShader::link: "error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader"
Stack trace (most recent call last):
#21   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#20   Object "ZED_Depth_Viewer", at 0x424b4d, in 
#19   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f91eb07b082, in __libc_start_main
#18   Object "ZED_Depth_Viewer", at 0x423f64, in 
#17   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f91eb822115, in QCoreApplication::exec()
#16   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f91eb81a3aa, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
#15   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f91eb873434, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
#14   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7f91e9d0f4a2, in g_main_context_iteration
#13   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7f91e9d0f3ff, in 
#12   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7f91e9d0f17c, in g_main_context_dispatch
#11   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f91eb873e36, in 
#10   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f91eb81e487, in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
#9    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f91eb81b809, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#8    Object "/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7f91ec23f0ef, in QApplication::notify(QObject*, QEvent*)
#7    Object "/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7f91ec235a65, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#6    Object "/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7f91ec27825c, in QWidget::event(QEvent*)
#5    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f91eb847c29, in QObject::event(QEvent*)
#4    Object "ZED_Depth_Viewer", at 0x44d155, in 
#3    Object "ZED_Depth_Viewer", at 0x4aed25, in 
#2    Object "ZED_Depth_Viewer", at 0x46d28d, in 
#1    Object "/lib/x86_64-linux-gnu/libcuda.so.1", at 0x7f91f684c448, in 
#0    Object "/lib/x86_64-linux-gnu/libcuda.so.1", at 0x7f91f67b3ff5, in 
Segmentation fault (Address not mapped to object [0x400000001])
Segmentation fault (core dumped)

Before this error happened, the same error that isQGLShader::compile(Vertex): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES has also happend. So, I have used MESA_GL_VERSION_OVERRIDE=3.3 and sudo prime-select nvidia to solve it.
It seems that they failed.

By the way, my OS info is below:
ubuntu20.04
cuda 11.5
Nvidia driver 495.29
GPU:P5000

So, has anyone can help me to solve this problem?
Thank you very much.

Hi @doublepoints
the Nvidia driver sometimes has problems with the BIOS Secure Boot. Can you try to disable it if it’s active?

Hi, Myzhar
Thank you for replying so quick.
I have checked the secure Boot, it is disable.
Do you have some other suggestion on how to solve it?

Best regards

By the way, I do not know if it is related. I have use runfile to install nvidia driver.
When I installed it, I has added --no-opengl-files at the end of the command.
Because, install opengl-files will make ubuntu’s boot failure.

Are you using the official Nvidia drivers?

Hi, Myzhar
Yes, I am using the office Nvidia drivers’ runfile which is download from the nvidia homepage to install the driver.
The file name is NVIDIA-Linux-x86_64-495.29.05.run.

As extra information is that my opengl’s version is OpenGL version string: 3.1 Mesa 21.2.6

I suggest you purge the Nvidia installation and install the ZED SDK from scratch. It will guide you with Nvidia SW installation:
$ sudo apt purge nvidia-* libnvidia-* cuda-*
$ sudo rm /usr/local/cuda*

Hi, Myzhar
Thank you for your reply.
I have tried to purge the Nvidia driver and cuda.
When I use ZED SDK file to install cuda and nvidia drivers, the following errors happened.

$ ./ZED_SDK_Ubuntu20_cuda11.5_v3.7.4.run 
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing 'ZED camera SDK by Stereolabs'  100%  
Ubuntu version 20.04 detected. OK
To continue you have to accept the EULA. Accept  [Y/n] ?Y
Installing...
Installation path: /usr/local/zed
Checking CUDA version...

ERROR : the installer failed to detect the CUDA version (CUDA 11.5 required), make sure it's installed

Do you want to install CUDA 11.5 automatically [Y/n] ?Y
--2022-05-23 18:13:09--  https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 190 [application/octet-stream]
Saving to: ‘cuda-ubuntu2004.pin’

cuda-ubuntu2004.pin 100%[==================>]     190  --.-KB/s    in 0s      

2022-05-23 18:13:10 (4.53 MB/s) - ‘cuda-ubuntu2004.pin’ saved [190/190]

Executing: /tmp/apt-key-gpghome.t8EEAUMn9h/gpg.1.sh --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
gpg: requesting key from 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub'
gpg: key F60F4B3D7FA2AF80: public key "cudatools <cudatools@nvidia.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Get:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1,581 B]
Hit:2 http://jp.archive.ubuntu.com/ubuntu focal InRelease                     
Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Get:3 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] 
Get:4 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]  
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [278 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [390 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40.7 kB]
Get:9 http://jp.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
Get:10 http://jp.archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [7,968 B]
Get:11 http://jp.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.8 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66.3 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Reading package lists... Done                  
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Hit:1 http://jp.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] 
Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1,581 B]
Err:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Reading package lists... Done      
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cuda-11-5
nvidia-smi could not be found, skipping nvidia driver check
Do you want to also install the static version of the ZED SDK (AI module will still require libsl_ai.so) [Y/n] ?

This problem is discussed on the Nvidia Forum:

You can try to see if this fixes it

Hi, Myzhar
Thank you for your suggestion.
I have solved the problem by using ZED SDK’s installer to install nvida SW.

Best regards

1 Like

It’s always a pleasure :+1: