# Zed2 issues with GStreamer Integration on x86\_64

**URL:** <https://community.stereolabs.com/t/zed2-issues-with-gstreamer-integration-on-x86-64/124>\
**Category:** Software\
**Tags:** zed-gstreamer, gstreamer\
**Created:** [February 19, 2021, 3:58am UTC](https://community.stereolabs.com/t/zed2-issues-with-gstreamer-integration-on-x86-64/124 "2021-02-19T03:58:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mndar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mndar/32/254_2.png) [@mndar](https://community.stereolabs.com/u/mndar)\
**Post date:** [February 19, 2021, 3:58am UTC](https://community.stereolabs.com/t/zed2-issues-with-gstreamer-integration-on-x86-64/124/1 "2021-02-19T03:58:02Z")

</div>

I am trying to use the Zed2 GStreamer integration. For me, it works on the Jetson with Jetpack 4.5.

However on Ubuntu 18.04 x86\_64, with CUDA 10.2, this is the error.  
I am using CUDA 10.2 installed with Ubuntu 18.04.

$ gst-launch-1.0 zedsrc ! queue ! autovideoconvert ! queue ! fpsdisplaysink

Setting pipeline to PAUSED …  
Setting depth\_mode to ULTRA  
Brightness: 4  
Contrast: 4  
Hue: 0  
Saturation: 4  
Sharpness: 4  
Gamma: 8  
AEC\_AGC: 1  
WHITEBALANCE\_AUTO: 1  
LED\_STATUS: 1  
Pipeline is live and does not need PREROLL …  
Setting pipeline to PLAYING …  
New clock: GstSystemClock  
terminate called after throwing an instance of ‘std::length\_error’  
what(): vector::\_M\_default\_append  
Aborted (core dumped)

ZED\_Explorer works, so I know the camera is working.

ZEDfu gives the same error as the GStreamer source element

$ ZEDfu  
terminate called after throwing an instance of ‘std::length\_error’  
what(): vector::\_M\_default\_append  
Aborted (core dumped)

Any suggestions on how to go about debugging this?

Thanks  
mndar

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 21, 2021, 6:34pm UTC](https://community.stereolabs.com/t/zed2-issues-with-gstreamer-integration-on-x86-64/124/2 "2021-02-21T18:34:40Z")

</div>

Hi @mndar  
this seems a CUDA issue.  
Have you updated the ZED SDK or CUDA?  
Can you post the output of the `nvidia-smi` command and of the `nvcc -V` command?

---

<div class="post-metadata">

**Author:** ![mndar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mndar/32/254_2.png) [@mndar](https://community.stereolabs.com/u/mndar)\
**Post date:** [February 22, 2021, 4:23pm UTC](https://community.stereolabs.com/t/zed2-issues-with-gstreamer-integration-on-x86-64/124/3 "2021-02-22T16:23:40Z")

</div>

I am using Zed SDK 3.4 (ZED\_SDK\_Ubuntu18\_cuda10.2\_v3.4.0.run)  
The system has CUDA 11.2 as reported by nvidia-smi. That’s it, isn’t it?

I got past the issue by disabling depth in the run time parameters with this code

```
sl::RuntimeParameters runtime_parameters;
runtime_parameters = src->zed.getRuntimeParameters();
runtime_parameters.enable_depth = 0;
ret = src->zed.grab(runtime_parameters); 

```

Here is the output of nvidia-smi and nvcc

 ![nvidia-smi-container](https://community.stereolabs.com/uploads/default/original/1X/b7b3eacfe7bc164379040313aa9c2d82521c867f.png)

```
# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_19:24:38_PDT_2019
Cuda compilation tools, release 10.2, V10.2.89
```

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 22, 2021, 4:34pm UTC](https://community.stereolabs.com/t/zed2-issues-with-gstreamer-integration-on-x86-64/124/4 "2021-02-22T16:34:26Z")

</div>

Hi @mndar,  
as I supposed there is something wrong with your CUDA installation.  
As you say the system detects CUDA 11.2 with `nvidia-smi`, while the `nvcc` compiler detects CUDA 10.2.  
I suggest you uninstall CUDA and install it back from scratch.  
You can force the complete removal of CUDA with the command  
`$ sudo apt purge nvidia*`  
then you can reinstall the ZED SDK, it will take care of installing the correct CUDA version for you.
