Depth Viewer Crashing

This happens on a fresh install of Ubuntu 24.04, with the default nvidia drivers. I immediately downloaded the ZED SDK 5.0 and run the Depth Viewer, and get the following stack trace, which appears to be a cuda crash. I did not explicitly install cuda.

[2025-05-08 14:37:19 UTC][ZED][INFO] [Init]  Depth mode: NEURAL
[2025-05-08 14:37:20 UTC][ZED][INFO] [Init]  Camera successfully opened.
[2025-05-08 14:37:20 UTC][ZED][INFO] [Init]  Camera FW version: 1523
[2025-05-08 14:37:20 UTC][ZED][INFO] [Init]  Video mode: HD720@30
[2025-05-08 14:37:20 UTC][ZED][INFO] [Init]  Serial Number: S/N 35121213
[2025-05-08 14:37:20 UTC][ZED][INFO] [Init]  No calibration file found for SN 35121213. Downloading... 
[2025-05-08 14:37:20 UTC][ZED][INFO] [Init]  Calibration file downloaded.
[2025-05-08 14:37:21 UTC][ZED][WARNING] [Init]  Self-calibration skipped. Scene may be occluded or lack texture. (Error code: 0x01) 
in bool ImageHandler::initialize(sl::Mat&) : Err [999]: unknown error.
Stack trace (most recent call last):
#24   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#23   Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f7195c54, in 
#22   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x79479ec2a28a, in __libc_start_main
#21   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x79479ec2a1c9, in 
#20   Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f7194dad, in 
#19   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f6df3e7, in QCoreApplication::exec()
#18   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f6d6a7a, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
#17   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f735278, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
#16   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x79479d913a52, in g_main_context_iteration
#15   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x79479d973716, in 
#14   Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x79479d9145b4, in 
#13   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f734f10, in 
#12   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f7345aa, in QTimerInfoList::activateTimers()
#11   Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f6d8117, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#10   Object "/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7947a036bd44, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#9    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f70624a, in QObject::event(QEvent*)
#8    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f71710c, in QTimer::timeout(QTimer::QPrivateSignal)
#7    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x79479f712dbe, in 
#6    Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f71c8db1, in 
#5    Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f71c49da, in 
#4    Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f71d4829, in 
#3    Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f71d3308, in 
#2    Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f723c9ed, in 
#1    Object "/usr/local/zed/tools/ZED_Depth_Viewer", at 0x59c0f71f46b2, in 
#0    Object "/lib/x86_64-linux-gnu/libcuda.so.1", at 0x7947b2179218, in 
Segmentation fault (Signal sent by the kernel [(nil)])
Segmentation fault (core dumped)

nvidia-smi reports:

$ nvidia-smi
Thu May  8 10:48:26 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.133.07             Driver Version: 570.133.07     CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   40C    P0            590W /   85W |      15MiB /   8188MiB |     14%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            3377      G   /usr/lib/xorg/Xorg                        4MiB |
+-----------------------------------------------------------------------------------------+

I found that by running as root I don’t get a crash, instead the UI appears but I see no depth data. I get the following in the console:

# /usr/local/zed/tools/ZED_Depth_Viewer 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
[2025-05-08 15:09:18 UTC][ZED][INFO] Logging level INFO
[2025-05-08 15:09:18 UTC][ZED][INFO] [Init]  Depth mode: NEURAL
[2025-05-08 15:09:19 UTC][ZED][INFO] [Init]  Camera successfully opened.
[2025-05-08 15:09:19 UTC][ZED][INFO] [Init]  Camera FW version: 1523
[2025-05-08 15:09:19 UTC][ZED][INFO] [Init]  Video mode: HD720@30
[2025-05-08 15:09:19 UTC][ZED][INFO] [Init]  Serial Number: S/N 12665175
in bool ImageHandler::initialize(sl::Mat&) : Err [999]: unknown error.
in bool ImageHandler::initialize(sl::Mat&) : Err [400]: invalid resource handle.
in bool ImageHandler::initialize(sl::Mat&) : Err [400]: invalid resource handle.
in bool ImageHandler::initialize(sl::Mat&) : Err [400]: invalid resource handle.
in bool ImageHandler::initialize(sl::Mat&) : Err [999]: unknown error.
in bool ImageHandler::initialize(sl::Mat&) : Err [400]: invalid resource handle.
in bool ImageHandler::initialize(sl::Mat&) : Err [400]: invalid resource handle.
in bool ImageHandler::initialize(sl::Mat&) : Err [400]: invalid resource handle.
in void OGLWidget::Deinit() : Err [400]: invalid resource handle.
in virtual void InputThreadModul::run() : Err [400]: invalid resource handle.

Hi @jbcpollak
Please check if the information from this support page can help you solve your problem.