# C++

**URL:** https://community.stereolabs.com/c/sw/cpp/7.md

[Latest](https://community.stereolabs.com/latest.md) · [Categories](https://community.stereolabs.com/categories.md) · [Tags](https://community.stereolabs.com/tags.md)

---

## [About the C++ category](https://community.stereolabs.com/t/about-the-c-category/34)

<div class="topic-metadata">

**Author:** [@adujardin](https://community.stereolabs.com/u/adujardin)\
**Replies:** 0

</div>

---

## [Opening and closing two, or more cameras will leave the SDK in a dirty state](https://community.stereolabs.com/t/opening-and-closing-two-or-more-cameras-will-leave-the-sdk-in-a-dirty-state/11757)

<div class="topic-metadata">

**Author:** [@jtonu](https://community.stereolabs.com/u/jtonu)\
**Replies:** 2\
**Last updated:** [November 18, 2026, 10:45am UTC](https://community.stereolabs.com/t/opening-and-closing-two-or-more-cameras-will-leave-the-sdk-in-a-dirty-state/11757 "2026-11-18T10:45:59Z")

</div>

On Jetson Orin NX with ZED SDK 5.5.0, a C++ client opens two ZED X One GS cameras sequentially and calls only grab(). The first process exits cleanly; reopening the same binary in the same boot can stall both grab() call…

---

## [Thread sanitizer reports data races for open and grab for multiple mono cameras](https://community.stereolabs.com/t/thread-sanitizer-reports-data-races-for-open-and-grab-for-multiple-mono-cameras/11720)

<div class="topic-metadata">

**Author:** [@IL1R](https://community.stereolabs.com/u/IL1R)\
**Replies:** 2\
**Last updated:** [November 18, 2026, 10:42am UTC](https://community.stereolabs.com/t/thread-sanitizer-reports-data-races-for-open-and-grab-for-multiple-mono-cameras/11720 "2026-11-18T10:42:40Z")

</div>

We’ve been tracking the instability issues with our cameras and one of the issues we found is the following: #include \<chrono\> #include \<iostream\> #include \<iterator\> #include \<mutex\> #include \<ranges\> #include \<syncstr…

---

## [Gmsl camera detected disconnected](https://community.stereolabs.com/t/gmsl-camera-detected-disconnected/11830)

<div class="topic-metadata">

**Author:** [@patcharapon-fullstac](https://community.stereolabs.com/u/patcharapon-fullstac)\
**Replies:** 6\
**Last updated:** [November 4, 2026, 11:51am UTC](https://community.stereolabs.com/t/gmsl-camera-detected-disconnected/11830 "2026-11-04T11:51:06Z")

</div>

Hello, I have connected both a ZED X and a ZED X Mini camera to my ZED Box Orin. However, after running them for a while, I encountered the error shown in the image below. I tried following the recommended solution …

---

## [Difference in framerate between multi zedx cameras on Jetson](https://community.stereolabs.com/t/difference-in-framerate-between-multi-zedx-cameras-on-jetson/11822)

<div class="topic-metadata">

**Author:** [@Martijn](https://community.stereolabs.com/u/Martijn)\
**Replies:** 1\
**Last updated:** [November 3, 2026, 5:04pm UTC](https://community.stereolabs.com/t/difference-in-framerate-between-multi-zedx-cameras-on-jetson/11822 "2026-11-03T17:04:00Z")

</div>

We use multi camera on a jetson Orin. where each camera has his own process to check for object detection. we see that after some time, the framerate between the difference camera’s is increasing. where 1 camera always …

---

## [How long will the jetpack 6.1/6.2 and 6.2.2 be supported?](https://community.stereolabs.com/t/how-long-will-the-jetpack-6-1-6-2-and-6-2-2-be-supported/11832)

<div class="topic-metadata">

**Author:** [@Martijn](https://community.stereolabs.com/u/Martijn)\
**Replies:** 1\
**Last updated:** [November 3, 2026, 5:01pm UTC](https://community.stereolabs.com/t/how-long-will-the-jetpack-6-1-6-2-and-6-2-2-be-supported/11832 "2026-11-03T17:01:07Z")

</div>

We are wondering if there is some information available how long the jetpack 6.x versions are still supported by the new SDK’s. upgrading jetson computers in the field is difficult so we would like to have all informati…

---

## [Crashes in nvinfer\_10.dll when calling Camera::open](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796)

<div class="topic-metadata">

**Author:** [@dko](https://community.stereolabs.com/u/dko)\
**Replies:** 12\
**Last updated:** [October 27, 2026, 10:20am UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796 "2026-10-27T10:20:35Z")

</div>

Setup: Windows 11 SDK: 5.3.1 - 5.5.0 C++ CUDA 12, TensorRT 10 ZED 2i NVIDIA Quadro RTX 5000, Driver 597.16 Description: I’ve noticed a crash in nvinfer\_10.dll with an “access violation reading location” error when ca…

---

## [ZED SDK 5.5.0: Heap corruption in saveAreaMap() with GEN\_3 tracking on longer sessions](https://community.stereolabs.com/t/zed-sdk-5-5-0-heap-corruption-in-saveareamap-with-gen-3-tracking-on-longer-sessions/11798)

<div class="topic-metadata">

**Author:** [@ShashankVSS](https://community.stereolabs.com/u/ShashankVSS)\
**Replies:** 1\
**Last updated:** [October 19, 2026, 4:08pm UTC](https://community.stereolabs.com/t/zed-sdk-5-5-0-heap-corruption-in-saveareamap-with-gen-3-tracking-on-longer-sessions/11798 "2026-10-19T16:08:05Z")

</div>

Hi Stereolabs team, We’ve been encountering a reproducible heap corruption issue with ZED SDK 5.5.0 when calling sl::Camera::saveAreaMap() after longer positional tracking sessions using GEN\_3 with area memory enabled. …

---

## [Thread sanitizer reports data race for stereo camera open](https://community.stereolabs.com/t/thread-sanitizer-reports-data-race-for-stereo-camera-open/11719)

<div class="topic-metadata">

**Author:** [@IL1R](https://community.stereolabs.com/u/IL1R)\
**Replies:** 1\
**Last updated:** [October 2, 2026, 5:24pm UTC](https://community.stereolabs.com/t/thread-sanitizer-reports-data-race-for-stereo-camera-open/11719 "2026-10-02T17:24:27Z")

</div>

We’ve been tracking the instability issues with our cameras and one of the issues we found is the following: #include \<iostream\> #include \<sl/Camera.hpp\> int main(int argc, char\* argv\[\]) { sl::InitParameters initPara…

---

## [ZED X Mini (4mm) Right Depth Map Issues](https://community.stereolabs.com/t/zed-x-mini-4mm-right-depth-map-issues/11714)

<div class="topic-metadata">

**Author:** [@s.ven](https://community.stereolabs.com/u/s.ven)\
**Replies:** 0\
**Last updated:** [September 14, 2026, 5:06pm UTC](https://community.stereolabs.com/t/zed-x-mini-4mm-right-depth-map-issues/11714 "2026-09-14T17:06:00Z")

</div>

Hi Stereolabs team, I have a ZED X Mini, and I need a depth map aligned to the right sensor (MEASURE::DEPTH\_RIGHT / DEPTH\_U16\_MM\_RIGHT, via InitParameters::enable\_right\_side\_measure = true). The right-side depth has an…

---

## [Combining sequential scan for spatial mapping to achieve better scan](https://community.stereolabs.com/t/combining-sequential-scan-for-spatial-mapping-to-achieve-better-scan/11627)

<div class="topic-metadata">

**Author:** [@punnlert](https://community.stereolabs.com/u/punnlert)\
**Replies:** 1\
**Last updated:** [August 11, 2026, 4:21pm UTC](https://community.stereolabs.com/t/combining-sequential-scan-for-spatial-mapping-to-achieve-better-scan/11627 "2026-08-11T16:21:22Z")

</div>

Hello I am using ZED X with Jetson Orin nano to record SVO files and process spatial map. Now, the scan is quite full of holes and untidy. I saw that here Area Memory & VSLAM Mapping | StereoLabs it is possible for the S…

---

## [Using PositionalTracking sample has SPATIAL\_MEMORY\_STATUS stuck at INITIALIZING.](https://community.stereolabs.com/t/using-positionaltracking-sample-has-spatial-memory-status-stuck-at-initializing/11595)

<div class="topic-metadata">

**Author:** [@kdavidson](https://community.stereolabs.com/u/kdavidson)\
**Replies:** 2\
**Last updated:** [August 3, 2026, 2:00pm UTC](https://community.stereolabs.com/t/using-positionaltracking-sample-has-spatial-memory-status-stuck-at-initializing/11595 "2026-08-03T14:00:07Z")

</div>

Hi! I am using the positional tracking sample to create an area map from an svo2 (./ZED\_Positional\_Tracking --svo vid.svo2 --map -o out.map) and attempting to localise using that same svo2 (./ZED\_Positional\_Tracking --s…

---

## [Static linking in SDK 5.4.1](https://community.stereolabs.com/t/static-linking-in-sdk-5-4-1/11586)

<div class="topic-metadata">

**Author:** [@rickwalder](https://community.stereolabs.com/u/rickwalder)\
**Replies:** 1\
**Last updated:** [July 30, 2026, 1:48pm UTC](https://community.stereolabs.com/t/static-linking-in-sdk-5-4-1/11586 "2026-07-30T13:48:44Z")

</div>

Hi everyone – i’m interested in statically linking a program, but i noticed in 5.4.1 libsl\_zed\_static.a is not included. Is static linking still supported?

---

## [Intermittent "Half-Image Swap/Flip" Glitch on ZED Box Mini via JetPack 7.2](https://community.stereolabs.com/t/intermittent-half-image-swap-flip-glitch-on-zed-box-mini-via-jetpack-7-2/11561)

<div class="topic-metadata">

**Author:** [@oherbert](https://community.stereolabs.com/u/oherbert)\
**Replies:** 3\
**Last updated:** [July 27, 2026, 3:56pm UTC](https://community.stereolabs.com/t/intermittent-half-image-swap-flip-glitch-on-zed-box-mini-via-jetpack-7-2/11561 "2026-07-27T15:56:08Z")

</div>

I am experiencing an intermittent issue with our ZED2i camera feed where the left and right halves of the video frame appear to be swapped or flipped. The image added is of the left camera frame but it occurs on both. …

---

## [Increasing cpu load](https://community.stereolabs.com/t/increasing-cpu-load/11523)

<div class="topic-metadata">

**Author:** [@Martijn](https://community.stereolabs.com/u/Martijn)\
**Replies:** 2\
**Last updated:** [July 8, 2026, 5:05pm UTC](https://community.stereolabs.com/t/increasing-cpu-load/11523 "2026-07-08T17:05:26Z")

</div>

I am testing with the new 5.4 SDK and found out that the cpu load slowely increases with time. it happens with own custom build sw, but also with sample applications. Is this normal behavoir? for example: 2 zed camer…

---

## [ZED SDK Spatial Mapping didn't generate mesh properly after applying texture](https://community.stereolabs.com/t/zed-sdk-spatial-mapping-didnt-generate-mesh-properly-after-applying-texture/11501)

<div class="topic-metadata">

**Author:** [@punnlert](https://community.stereolabs.com/u/punnlert)\
**Replies:** 5\
**Last updated:** [July 3, 2026, 1:47pm UTC](https://community.stereolabs.com/t/zed-sdk-spatial-mapping-didnt-generate-mesh-properly-after-applying-texture/11501 "2026-07-03T13:47:39Z")

</div>

I tried the spatial mapping code from zed-sdk/spatial mapping/spatial mapping/cpp at master · stereolabs/zed-sdk · GitHub and added a spatial\_mapping\_parameters.save\_texture = true; ... MeshFilterParameters filter\_par…

---

## [The point cloud obtained by zed.retrieveMeasure contains many invalid points](https://community.stereolabs.com/t/the-point-cloud-obtained-by-zed-retrievemeasure-contains-many-invalid-points/11489)

<div class="topic-metadata">

**Author:** [@gsbnn](https://community.stereolabs.com/u/gsbnn)\
**Replies:** 4\
**Last updated:** [July 3, 2026, 1:49am UTC](https://community.stereolabs.com/t/the-point-cloud-obtained-by-zed-retrievemeasure-contains-many-invalid-points/11489 "2026-07-03T01:49:19Z")

</div>

I am using the ZED 2i camera, then use zed.retrieveMeasure to obtain the point cloud and store it in a PCD file. Compared to the point cloud obtained by ZED Depth Viewer, the point cloud obtained by zed.retrieveMeasure c…

---

## [Running the streaming example on Jetson Orin Nano doesn't start streaming](https://community.stereolabs.com/t/running-the-streaming-example-on-jetson-orin-nano-doesnt-start-streaming/11469)

<div class="topic-metadata">

**Author:** [@punnlert](https://community.stereolabs.com/u/punnlert)\
**Replies:** 3\
**Last updated:** [June 25, 2026, 5:04pm UTC](https://community.stereolabs.com/t/running-the-streaming-example-on-jetson-orin-nano-doesnt-start-streaming/11469 "2026-06-25T17:04:40Z")

</div>

When I stream from ZED\_Explorer in my Jetson Orin Nano, the program would output \[Streaming\] Use Transport layer mode : 0 \[Streaming\] Streaming is now running…. And then I can access the stream on my dev machine. But…

---

## [Accessing ZED camera frames before SDK processing for low-latency streaming (raw NV12 / async retrieval alternative?)](https://community.stereolabs.com/t/accessing-zed-camera-frames-before-sdk-processing-for-low-latency-streaming-raw-nv12-async-retrieval-alternative/11439)

<div class="topic-metadata">

**Author:** [@ShashankVSS](https://community.stereolabs.com/u/ShashankVSS)\
**Replies:** 6\
**Last updated:** [June 19, 2026, 12:04pm UTC](https://community.stereolabs.com/t/accessing-zed-camera-frames-before-sdk-processing-for-low-latency-streaming-raw-nv12-async-retrieval-alternative/11439 "2026-06-19T12:04:09Z")

</div>

Hi Stereolabs team, We’re currently using a ZED camera for positional tracking alongside a low-latency video feed for an RC controller / teleoperation workflow. For the video path, we’re using the Raw Buffers API to re…

---

## [Camera::open() never returns when connecting to an invalid stream IP (Windows, Receiver sample)](https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449)

<div class="topic-metadata">

**Author:** [@LUP](https://community.stereolabs.com/u/LUP)\
**Replies:** 3\
**Last updated:** [June 17, 2026, 5:15pm UTC](https://community.stereolabs.com/t/camera-open-never-returns-when-connecting-to-an-invalid-stream-ip-windows-receiver-sample/11449 "2026-06-17T17:15:28Z")

</div>

Hi everyone, First of all, thank you for all the work you’ve put into the ZED SDK. We’ve been using it in our project and it’s been a great experience overall. I think I may have found an issue with the streaming receiv…

---

## [ZED SDK 5.3 pose\_confidence behavior inconsistent between sl::camera and sl::fusion](https://community.stereolabs.com/t/zed-sdk-5-3-pose-confidence-behavior-inconsistent-between-sl-camera-and-sl-fusion/11313)

<div class="topic-metadata">

**Author:** [@ShashankVSS](https://community.stereolabs.com/u/ShashankVSS)\
**Replies:** 8\
**Last updated:** [June 15, 2026, 8:05pm UTC](https://community.stereolabs.com/t/zed-sdk-5-3-pose-confidence-behavior-inconsistent-between-sl-camera-and-sl-fusion/11313 "2026-06-15T20:05:57Z")

</div>

Hi, I’m testing sl::Pose::pose\_confidence on a ZED X Mini using SDK 5.3 on Jetson Orin NX, and I’m seeing behavior that seems inconsistent with the documentation / expected tracking quality reporting. Setup: ZED X Mini…

---

## [New SDK 5.3.0 camera disconnect within hour](https://community.stereolabs.com/t/new-sdk-5-3-0-camera-disconnect-within-hour/11293)

<div class="topic-metadata">

**Author:** [@Martijn](https://community.stereolabs.com/u/Martijn)\
**Replies:** 2\
**Last updated:** [June 9, 2026, 11:28am UTC](https://community.stereolabs.com/t/new-sdk-5-3-0-camera-disconnect-within-hour/11293 "2026-06-09T11:28:34Z")

</div>

testsystem: jetson AGX ORIN stereolabs duo camera with V1.4.1 driver sdk 5.3.0 with 3x ZEDX camera attached camera’s and computer are fixed positioned on a desk without any viberation or touch. within an hour with te…

---

## [Detecting Auto-Exposure/White-Balance stabilization after toggling modes in zed-open-capture?](https://community.stereolabs.com/t/detecting-auto-exposure-white-balance-stabilization-after-toggling-modes-in-zed-open-capture/11406)

<div class="topic-metadata">

**Author:** [@emc](https://community.stereolabs.com/u/emc)\
**Replies:** 2\
**Last updated:** [June 6, 2026, 7:40am UTC](https://community.stereolabs.com/t/detecting-auto-exposure-white-balance-stabilization-after-toggling-modes-in-zed-open-capture/11406 "2026-06-06T07:40:04Z")

</div>

Hi everyone, I am working with ZED Open Capture (sl\_oc::video) to build a custom calibration pipeline where a C++ service streams rectified stereo frames to a Java application. My Workflow: The system starts in Auto…

---

## [setManualWhiteBalance() produces green cast on ZED X One 4K](https://community.stereolabs.com/t/setmanualwhitebalance-produces-green-cast-on-zed-x-one-4k/11192)

<div class="topic-metadata">

**Author:** [@loganskyways](https://community.stereolabs.com/u/loganskyways)\
**Replies:** 6\
**Last updated:** [May 20, 2026, 6:12pm UTC](https://community.stereolabs.com/t/setmanualwhitebalance-produces-green-cast-on-zed-x-one-4k/11192 "2026-05-20T18:12:06Z")

</div>

Environment: Camera: ZED X One 4K (GMSL2) Platform: Jetson Orin NX JetPack: 6.2.1 (L4T R36.4.7) ZED Link driver: stereolabs-zedlink-duo 1.3.0 Library: zedx-one-capture (commit 7585028, Argus Capture Version 1.1.0) OS: …

---

## [ZED360 Calibration using Network Workflow](https://community.stereolabs.com/t/zed360-calibration-using-network-workflow/11263)

<div class="topic-metadata">

**Author:** [@jrodrigues9](https://community.stereolabs.com/u/jrodrigues9)\
**Replies:** 1\
**Last updated:** [May 18, 2026, 9:26am UTC](https://community.stereolabs.com/t/zed360-calibration-using-network-workflow/11263 "2026-05-18T09:26:27Z")

</div>

Hi, I have been using ZED360 to calibrate a couple of ZED2i cameras and use Fusion over a space. I have tested it using the local workflow, and was able to successfully calibrate the cameras, and use the config file in …

---

## [SCENE\_ILLUMINANCE not working with 5.2.3 SDK](https://community.stereolabs.com/t/scene-illuminance-not-working-with-5-2-3-sdk/11124)

<div class="topic-metadata">

**Author:** [@Martijn](https://community.stereolabs.com/u/Martijn)\
**Replies:** 6\
**Last updated:** [May 8, 2026, 2:51pm UTC](https://community.stereolabs.com/t/scene-illuminance-not-working-with-5-2-3-sdk/11124 "2026-05-08T14:51:25Z")

</div>

after upgrading from 5.1.1 to 5.2.3 I found out that reading the SCENE\_ILLUMINANCE is returning -1 instead of the actual LUX of the scene. is this a bug, or do I need to request it in another way? We are using this val…

---

## [Camera failing after some time - ZED One 4K Camera + ZED Box Orin Nano 8GB](https://community.stereolabs.com/t/camera-failing-after-some-time-zed-one-4k-camera-zed-box-orin-nano-8gb/11248)

<div class="topic-metadata">

**Author:** [@enunes](https://community.stereolabs.com/u/enunes)\
**Replies:** 1\
**Last updated:** [May 4, 2026, 2:22pm UTC](https://community.stereolabs.com/t/camera-failing-after-some-time-zed-one-4k-camera-zed-box-orin-nano-8gb/11248 "2026-05-04T14:22:52Z")

</div>

Hi, We upgraded our ZED box Orin nano 8GB (CUDA 12.6 R36 4.7) ZED SDK 5.2.3 and driver 1.4.1. ZED\_Explorer and our own code that depends on sl::CameraOne both work well for a while. However, after a period of 18-20 minu…

---

## [Zed Live installation does not survive the night](https://community.stereolabs.com/t/zed-live-installation-does-not-survive-the-night/11113)

<div class="topic-metadata">

**Author:** [@Tomas-Skandal](https://community.stereolabs.com/u/Tomas-Skandal)\
**Replies:** 20\
**Last updated:** [April 20, 2026, 7:15am UTC](https://community.stereolabs.com/t/zed-live-installation-does-not-survive-the-night/11113 "2026-04-20T07:15:22Z")

</div>

Hello! We have an issue with the reliability of the Zed Cameras. We replicate in our code the example of the SDK: zed-sdk/object detection/image viewer/cpp at master · stereolabs/zed-sdk · GitHub In a windows 11 IoT en…

---

## [Getting object distance from detection with virtual stereo 2× ZED X One s](https://community.stereolabs.com/t/getting-object-distance-from-detection-with-virtual-stereo-2x-zed-x-one-s/11176)

<div class="topic-metadata">

**Author:** [@NivC](https://community.stereolabs.com/u/NivC)\
**Replies:** 3\
**Last updated:** [April 17, 2026, 12:32pm UTC](https://community.stereolabs.com/t/getting-object-distance-from-detection-with-virtual-stereo-2x-zed-x-one-s/11176 "2026-04-17T12:32:02Z")

</div>

Hey, I’m working with a setup of 2× ZED X One (Narrow) cameras connected via a ZED Link Duo card on a Jetson Orin Nano, Using the last version 5.2.3 SDK. I want to get the distance (depth) of detected objects when usin…

---

## [ZED X One S Stereo Calibration Fails at 0.5 m Baseline](https://community.stereolabs.com/t/zed-x-one-s-stereo-calibration-fails-at-0-5-m-baseline/11122)

<div class="topic-metadata">

**Author:** [@NivC](https://community.stereolabs.com/u/NivC)\
**Replies:** 2\
**Last updated:** [April 12, 2026, 11:18am UTC](https://community.stereolabs.com/t/zed-x-one-s-stereo-calibration-fails-at-0-5-m-baseline/11122 "2026-04-12T11:18:10Z")

</div>

I’m trying to calibrate a custom stereo setup using two ZED X One S (narrow FOV), but calibration fails due to high reprojection errors even at a relatively short baseline of 0.5m. My Setup: Cameras: 2 × ZED X One S (n…

[Next page](https://community.stereolabs.com/c/sw/cpp/7.md?page=1)
