ZED_Depth_Viewer: DepthSegmentation fault (Address not mapped to object [0xd00000001])

Hi there!

I am having trouble when I try to start the ZED_Depth_Viewer with ZED2.

(zed37cu118) hjp@hjp-Yoga-Slim-7-Pro-16ACH6:/usr/local/zed/tools$ ./ZED_Depth_Viewer 
in bool ImageHandler::initialize(sl::Mat&) : Err [999]: unknown error.
Stack trace (most recent call last):
#28   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#27   Object "./ZED_Depth_Viewer", at 0x55aec49eb4ad, in 
#26   Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7fc7948ca082, in __libc_start_main
#25   Object "./ZED_Depth_Viewer", at 0x55aec49ea7d7, in 
#24   Object "./ZED_Depth_Viewer", at 0x55aec4a1477f, in 
#23   Object "./ZED_Depth_Viewer", at 0x55aec4a0f76e, in 
#22   Object "./ZED_Depth_Viewer", at 0x55aec4a25149, in 
#21   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc7950693aa, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
#20   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc7950c2434, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
#19   Object "/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7fc7932e54a2, in g_main_context_iteration
#18   Object "/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7fc7932e53ff, in 
#17   Object "/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7fc7932e517c, in g_main_context_dispatch
#16   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc7950c206b, in 
#15   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc7950c177f, in QTimerInfoList::activateTimers()
#14   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc79506a809, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#13   Object "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7fc795a8e0ef, in QApplication::notify(QObject*, QEvent*)
#12   Object "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7fc795a84a65, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#11   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc795096bc4, in QObject::event(QEvent*)
#10   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc7950a33ed, in QTimer::timeout(QTimer::QPrivateSignal)
#9    Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fc7950961cf, in QMetaObject::activate(QObject*, int, int, void**)
#8    Object "./ZED_Depth_Viewer", at 0x55aec49eb9c7, in 
#7    Object "./ZED_Depth_Viewer", at 0x55aec4a158b2, in 
#6    Object "./ZED_Depth_Viewer", at 0x55aec4a15369, in 
#5    Object "./ZED_Depth_Viewer", at 0x55aec4a107a1, in 
#4    Object "./ZED_Depth_Viewer", at 0x55aec4a1ed9f, in 
#3    Object "./ZED_Depth_Viewer", at 0x55aec4a1d862, in 
#2    Object "./ZED_Depth_Viewer", at 0x55aec4a7eea5, in 
#1    Object "./ZED_Depth_Viewer", at 0x55aec4a3a9bd, in 
#0    Object "/usr/lib/x86_64-linux-gnu/libcuda.so.1", at 0x7fc7a07dea19, in 
Segmentation fault (Address not mapped to object [0xd00000001])
Segmentation fault (core dumped)

My system version

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal

nvidia driver and cuda version

(zed37cu118) hjp@hjp-Yoga-Slim-7-Pro-16ACH6:/usr/local/zed/tools$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
(zed37cu118) hjp@hjp-Yoga-Slim-7-Pro-16ACH6:/usr/local/zed/tools$ nvidia-smi 
Tue Sep 12 16:04:38 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06   Driver Version: 525.125.06   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   44C    P0    N/A /  35W |      9MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1558      G   /usr/lib/xorg/Xorg                  4MiB |
|    0   N/A  N/A      2527      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

zed sdk version

./ZED_SDK_Ubuntu20_cuda11.8_v4.0.6.zstd.run

I can see the images when I run ZED_Explorer.

Any information would be appreciated!

And sometimes the gui interface appears but without depth image

(zed37cu118) hjp@hjp-Yoga-Slim-7-Pro-16ACH6:/usr/local/zed/tools$ ./ZED_Depth_Viewer 
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.

Hi @Dawnborn
Welcome to the Stereolabs community.

Please try to upgrade the NVIDIA GPU driver to the most recent version

I have updated to the latest version list by ubuntu-drivers devices

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.05             Driver Version: 535.104.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| 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 3050 ...    On  | 00000000:01:00.0 Off |                  N/A |
| N/A   47C    P0              N/A /  35W |     13MiB /  4096MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1535      G   /usr/lib/xorg/Xorg                            4MiB |
|    0   N/A  N/A      2302      G   /usr/lib/xorg/Xorg                            4MiB |
+---------------------------------------------------------------------------------------+

But the error remains…

hjp@hjp-Yoga-Slim-7-Pro-16ACH6:/usr/local/zed/tools$ ./ZED_Depth_Viewer 
in bool ImageHandler::initialize(sl::Mat&) : Err [999]: unknown error.
Stack trace (most recent call last):
#28   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#27   Object "./ZED_Depth_Viewer", at 0x5624f91cb4ad, in 
#26   Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7efd33f18082, in __libc_start_main
#25   Object "./ZED_Depth_Viewer", at 0x5624f91ca7d7, in 
#24   Object "./ZED_Depth_Viewer", at 0x5624f91f477f, in 
#23   Object "./ZED_Depth_Viewer", at 0x5624f91ef76e, in 
#22   Object "./ZED_Depth_Viewer", at 0x5624f9205149, in 
#21   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd346b73aa, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
#20   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd34710434, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
#19   Object "/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7efd327524a2, in g_main_context_iteration
#18   Object "/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7efd327523ff, in 
#17   Object "/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7efd3275217c, in g_main_context_dispatch
#16   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd3471006b, in 
#15   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd3470f77f, in QTimerInfoList::activateTimers()
#14   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd346b8809, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#13   Object "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7efd350dc0ef, in QApplication::notify(QObject*, QEvent*)
#12   Object "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7efd350d2a65, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#11   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd346e4bc4, in QObject::event(QEvent*)
#10   Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd346f13ed, in QTimer::timeout(QTimer::QPrivateSignal)
#9    Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7efd346e41cf, in QMetaObject::activate(QObject*, int, int, void**)
#8    Object "./ZED_Depth_Viewer", at 0x5624f91cb9c7, in 
#7    Object "./ZED_Depth_Viewer", at 0x5624f91f58b2, in 
#6    Object "./ZED_Depth_Viewer", at 0x5624f91f5369, in 
#5    Object "./ZED_Depth_Viewer", at 0x5624f91f07a1, in 
#4    Object "./ZED_Depth_Viewer", at 0x5624f91fed9f, in 
#3    Object "./ZED_Depth_Viewer", at 0x5624f91fd862, in 
#2    Object "./ZED_Depth_Viewer", at 0x5624f925eea5, in 
#1    Object "./ZED_Depth_Viewer", at 0x5624f921a9bd, in 
#0    Object "/usr/lib/x86_64-linux-gnu/libcuda.so.1", at 0x7efd3fe57b60, in 
Segmentation fault (Signal sent by the kernel [(nil)])
Segmentation fault (core dumped)

And this is the result of ./ZED_Diagnostic

{
    "AI Models": {
        "info": [
            "MULTI CLASS DETECTION is not optimized",
            "MULTI CLASS MEDIUM DETECTION is not optimized",
            "MULTI CLASS ACCURATE DETECTION is not optimized",
            "HUMAN BODY FAST DETECTION is not optimized",
            "HUMAN BODY MEDIUM DETECTION is not optimized",
            "HUMAN BODY ACCURATE DETECTION is not optimized",
            "HUMAN BODY 38 FAST DETECTION is not optimized",
            "HUMAN BODY 38 MEDIUM DETECTION is not optimized",
            "HUMAN BODY 38 ACCURATE DETECTION is not optimized",
            "PERSON HEAD DETECTION is not optimized",
            "PERSON HEAD ACCURATE DETECTION is not optimized",
            "REID ASSOCIATION is not optimized",
            "NEURAL DEPTH is not optimized"
        ]
    },
    "Camera Test": {
        "InternalDevicesCount": 2,
        "ZEDCount": 1,
        "camera": {
            "Device ID": 0,
            "Firmware": 1523,
            "Init Output": "OK",
            "Model": "ZED 2",
            "Serial Number": 27004447,
            "valid": [
                "<b>Camera: </b>ZED 2",
                "<b>Firmware: </b>1523"
            ]
        },
        "resolutions": {
            "HD1080@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 1080,
                "height (output)": 1080,
                "initialization": "OK",
                "status": true,
                "width (input)": 1920,
                "width (output)": 1920
            },
            "HD1080@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 1080,
                "height (output)": 1080,
                "initialization": "OK",
                "status": true,
                "width (input)": 1920,
                "width (output)": 1920
            },
            "HD2K@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 1242,
                "height (output)": 1242,
                "initialization": "OK",
                "status": true,
                "width (input)": 2208,
                "width (output)": 2208
            },
            "HD720@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 720,
                "height (output)": 720,
                "initialization": "OK",
                "status": true,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "HD720@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 720,
                "height (output)": 720,
                "initialization": "OK",
                "status": true,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "HD720@60": {
                "dropCount": 0,
                "fps (input)": 60,
                "fps (output)": 59,
                "height (input)": 720,
                "height (output)": 720,
                "imageCount": 501,
                "initialization": "OK",
                "status": true,
                "tearingCount": 0,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "VGA@100": {
                "fps (input)": 100,
                "fps (output)": 100,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@60": {
                "fps (input)": 60,
                "fps (output)": 60,
                "height (input)": 376,
                "height (output)": 376,
                "initialization": "OK",
                "status": true,
                "width (input)": 672,
                "width (output)": 672
            }
        },
        "sensors": {
            "Firmware": 776,
            "Init Output": "OK",
            "Model": "ZED 2 (MCU)",
            "Serial Number": 27004447
        }
    },
    "Devices": {
        "CorruptedFirmware": false,
        "MCUDetected": true,
        "USBList": [
            {
                "USB_path": "/4",
                "idProduct": "0xb6cb",
                "idVendor": "0x04f2"
            },
            {
                "USB_path": "/3",
                "idProduct": "0xe0cd",
                "idVendor": "0x0489"
            },
            {
                "USBMode": 3,
                "USB_path": "/2",
                "bDescriptorType": 1,
                "bDeviceProtocol": 1,
                "bLength": 18,
                "bMaxPacketSize0": 9,
                "bNumConfigurations": 1,
                "bcdDevice": "1.0",
                "bcdUSB": "3.0",
                "bcdUSBClass": 239,
                "bcdUSBSubClass": 2,
                "busNumber": 2,
                "device": "ZED2",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 0,
                "idProduct": "0xf780",
                "idVendor": "0x2b03"
            },
            {
                "USBMode": 2,
                "USB_path": "/2/2",
                "bDescriptorType": 1,
                "bDeviceProtocol": 0,
                "bLength": 18,
                "bMaxPacketSize0": 64,
                "bNumConfigurations": 1,
                "bcdDevice": "3.8",
                "bcdUSB": "2.0",
                "bcdUSBClass": 0,
                "bcdUSBSubClass": 0,
                "busNumber": 1,
                "device": "ZED2 MCU",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 3,
                "idProduct": "0xf781",
                "idVendor": "0x2b03"
            },
            {
                "USB_path": "/2",
                "idProduct": "0x2512",
                "idVendor": "0x0424"
            }
        ],
        "USBMode": 3,
        "ZED Camera Module Detected": 63360,
        "ZED MCU Module Detected": 63361,
        "ZEDDetected": true,
        "valid": [
            "<b>USB Bandwidth: </b> OK"
        ]
    },
    "Graphics Card": {
        "deviceCount": 1,
        "deviceDriverVersion": 12020,
        "devices": [
            {
                "arch": "Ampere",
                "computeCapability": "8.6",
                "cores": 2048,
                "name": "NVIDIA GeForce RTX 3050 Laptop GPU",
                "totalMemoryBytes": "4094164992",
                "totalMemoryMB": 3904.5
            }
        ],
        "initResult": 0,
        "valid": [
            "<b>Graphics card: </b> NVIDIA GeForce RTX 3050 Laptop GPU"
        ]
    },
    "Processor": {
        "OS": "Ubuntu 20.04.4 LTS ",
        "avxSupported": true,
        "coreCount": "16",
        "cpu": " AMD Ryzen 7 5800H with Radeon Graphics",
        "datetime": "2023-09-12 18:23:48",
        "hyperThreading": "1",
        "motherboard": "LNVNB161216, LENOVO",
        "ramCapacity": "14,492492",
        "ramUsage": "",
        "ramUsed": "11,265122",
        "threadCount": "32",
        "valid": [
            "<b>Processor: </b>  AMD Ryzen 7 5800H with Radeon Graphics",
            "<b>Motherboard: </b> LNVNB161216, LENOVO"
        ]
    },
    "ZED SDK": {
        "CUDA Toolkit version": "V11.8.89 -->located in /usr/local/cuda-11.8/bin/nvcc",
        "CUDA loading": false,
        "GPU Driver Version": "Driver Version                            : 535.104.05",
        "GPU Performance": "    Performance State                     : P0",
        "ZED SDK Version (Diag)": "4.0.6",
        "ZED SDK Version (RT)": "4.0.6",
        "ai": {
            "checkAI": true,
            "cudaVersion": 11080,
            "cudnnCudartVersion": 11080,
            "cudnnVersion": 8600,
            "cudnnVersionExpected": 8600,
            "tensorVersion": 8501
        },
        "binFiles": [
            "libsl_ai.so",
            "libsl_zed.so",
            "libsl_zed_static.a"
        ],
        "resourcesFiles": [
            "neural_depth_2.0.model",
            "objects_accurate_3.2.model",
            "objects_medium_3.2.model",
            "objects_performance_3.2.model",
            "person_head_accurate_2.4.model",
            "person_head_performance_2.4.model",
            "person_reid_1.4.model",
            "skeleton_body18_3.2.model",
            "skeleton_body38_3.5.model"
        ],
        "resourcesFilesExpected": [
            "objects_performance_3.2"
        ],
        "valid": [
            "<b>ZED SDK version:</b> 4.0.6",
            "<b>CUDA version:</b> V11.8.89"
        ]
    }
}

Have you tried the solution proposed in this Support page?

Thank you so much! Now it works!

1 Like