# Virtual Zed X One calibration fails: segmentation fault

**URL:** <https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953>\
**Category:** Software\
**Created:** [March 4, 2026, 2:25pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953 "2026-03-04T14:25:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrwr\_rev](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@andrwr\_rev](https://community.stereolabs.com/u/andrwr_rev)\
**Post date:** [March 4, 2026, 2:25pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/1 "2026-03-04T14:25:50Z")

</div>

Hi,

We are trying to calibrate a virtual Zed X One stereo setup using the [OpenCV tool](https://www.stereolabs.com/docs/cameras/zed-x-one/zed-x-one-stereo). When launching the tool with `./zed_stereo_calibration --h_edges 12 --v_edges 8 --square_size 32 --left_id 0 --right_id 1 --virtual`, we get the response:

```auto
***Stereo Camera Calibration Tool***

The calibration process requires a checkerboard of known characteristics.
 * Expected checkerboard features:
   - Inner horizontal edges: 12
   - Inner vertical edges: 8
   - Square size: 32 mm
Change these parameters using the command line options if needed. Use the '-h' option for help.

 * Lens distorsion model: Radial-Tangential
 * Virtual Stereo Camera mode enabled.
Using camera IDs for left and right cameras: 0, 1
 * Unique Virtual SN: 116170631 (Generated by the ZED SDK)
 * ZED X One GS Virtual Stereo Camera detected.
 * Camera Model: Virtual ZED-X
 * Camera Serial Number: 116170631
 * Camera Resolution: 1920 x 1200
 * Using prior calibration: No
Segmentation fault (core dumped)

```

Any advice?

---

<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:** [March 4, 2026, 7:01pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/2 "2026-03-04T19:01:26Z")

</div>

Hi @andrwr_rev  
What’s your setup?

- ZED SDK version
- ZED X Driver version
- OpenCV version

---

<div class="post-metadata">

**Author:** ![andrwr\_rev](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@andrwr\_rev](https://community.stereolabs.com/u/andrwr_rev)\
**Post date:** [March 4, 2026, 8:08pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/3 "2026-03-04T20:08:07Z")

</div>

SDK: 5.1

Driver: 1.4.0

OpenCV: 4.8.0

One update though. When we reverted to SDK 5.1, the calibration program opens successfully.

---

<div class="post-metadata">

**Author:** ![andrwr\_rev](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@andrwr\_rev](https://community.stereolabs.com/u/andrwr_rev)\
**Post date:** [March 4, 2026, 8:11pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/4 "2026-03-04T20:11:23Z")

</div>

Another issue: in the OpenCV calibration tool, the Calibration Checker is instantiated **before** the argparsing. So parameters such as v\_edges and h\_edges are locked to the default, hardcoded values. Results in every sample being rejected if a custom checkerboard is used

---

<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:** [March 5, 2026, 11:35am UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/5 "2026-03-05T11:35:15Z")

</div>

> [@andrwr\_rev](#):
>
> in the OpenCV calibration tool, the Calibration Checker is instantiated **before** the argparsing. So parameters such as v\_edges and h\_edges are locked to the default, hardcoded values. Results in every sample being rejected if a custom checkerboard is used

What do you mean? Have you used the correct command line options?

---

<div class="post-metadata">

**Author:** ![andrwr\_rev](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@andrwr\_rev](https://community.stereolabs.com/u/andrwr_rev)\
**Post date:** [March 5, 2026, 12:16pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/6 "2026-03-05T12:16:49Z")

</div>

I think it is more appropriate to continue this discussion here: [Samples from custom checkerboard are always rejected · Issue #2 · stereolabs/zed-opencv-calibration · GitHub](https://github.com/stereolabs/zed-opencv-calibration/issues/2)

---

<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:** [March 5, 2026, 1:21pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/7 "2026-03-05T13:21:17Z")

</div>

Thank you.  
I’ve just applied the proposed fix, and I’m waiting for feedback to close your issue.

---

<div class="post-metadata">

**Author:** ![andrwr\_rev](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@andrwr\_rev](https://community.stereolabs.com/u/andrwr_rev)\
**Post date:** [March 5, 2026, 1:29pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/8 "2026-03-05T13:29:11Z")

</div>

Closed now.

Do you have any comments regarding why the calibration script would fail on SDK 5.2 but not 5.1?

---

<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:** [March 5, 2026, 2:08pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/9 "2026-03-05T14:08:06Z")

</div>

Sincerely, I’ve just tested with SDK v5.2.1 and driver v1.4.0, and it worked correctly.

Please try to set this environment variable before starting the calibration:  
`export ZED_SDK_DIAGNOSTIC_MODE=1`

After the crash, you can find a full debug log in `/usr/local/zed/.log`.  
Please share it with us, together with the full console log.

---

<div class="post-metadata">

**Author:** ![dsalasidis](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ac91a4/32.png) [@dsalasidis](https://community.stereolabs.com/u/dsalasidis)\
**Post date:** [March 8, 2026, 12:30am UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/10 "2026-03-08T00:30:50Z")

</div>

I am having the exact same issues as well, while trying to calibrate a dual Zed X One stereo setup (using the OpenCV tool), on an AGX Orin 64G with Jetpack 6.2.1, SDK v5.2.1, and quad-driver v1.4.0. I have gotten the same error message (when launching with default checkerboard characteristics - 9x6, 25.4mm):

```auto
$ ./stereo_calibration/zed_stereo_calibration --virtual --left_id 0 --right_id 1

***Stereo Camera Calibration Tool***

The calibration process requires a checkerboard of known characteristics.
* Expected checkerboard features:
   - Inner horizontal edges: 9
   - Inner vertical edges: 6
   - Square size: 25.4 mm
Change these parameters using the command line options if needed. Use the '-h' option for help.

* Lens distorsion model: Radial-Tangential
* Virtual Stereo Camera mode enabled.
Using camera IDs for left and right cameras: 0, 1
* Unique Virtual SN: 116285092 (Generated by the ZED SDK)
* ZED X One GS Virtual Stereo Camera detected.
* Camera Model: Virtual ZED-X
* Camera Serial Number: 116285092
* Camera Resolution: 1920 x 1200
* Using prior calibration: No
Pos 1
Segmentation fault (core dumped)

```

I added this into the following code (in the OpenCV calibration’s main.cpp) to determine where this segmentation fault occurs. The “Pos 1” character-output above shows that the fault occurs when trying to retrieve the left camera’s image:

```auto
        std::cout << "Calibration aborted by user." << std::endl;
        zed_camera.close();
        return EXIT_SUCCESS;
      }

      const cv::Scalar info_color = cv::Scalar(50, 210, 50);
      const cv::Scalar warn_color = cv::Scalar(0, 50, 250);

      if (zed_camera.grab() == sl::ERROR_CODE::SUCCESS) {
std::cout << "Pos 1" << std::endl;
        zed_camera.retrieveImage(zed_imageL, sl::VIEW::LEFT_UNRECTIFIED);
std::cout << "Pos 2" << std::endl;
        zed_camera.retrieveImage(zed_imageR, sl::VIEW::RIGHT_UNRECTIFIED);

        cv::resize(rgb_l, rgb_d, display_size);
        cv::resize(rgb_r, rgb2_d, display_size);
        cv::resize(rgb_l, rgb_d_fill, display_size);

        applyCoverageIndicatorOverlay(rgb_d_fill, coverage_indicator,
                                      limits_indicator);
        applyPosIndicatorOverlay(rgb_d_fill, pos_indicator);

```

_\* The segmentation fault (core dumped) was still occurring, before the code above was ever added._

I have already sent the full debug log, from the `export ZED_SDK_DIAGNOSTIC_MODE=1` command to tech support via email.

---

<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:** [March 9, 2026, 1:21pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/11 "2026-03-09T13:21:32Z")

</div>

Hi @dsalasidis  
We are trying to replicate this issue, with no success.

Let’s try to obtain more information to understand more.

What’s the output of the command `ZED_Explorer -a`?

---

<div class="post-metadata">

**Author:** ![dsalasidis](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ac91a4/32.png) [@dsalasidis](https://community.stereolabs.com/u/dsalasidis)\
**Post date:** [March 9, 2026, 10:27pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/12 "2026-03-09T22:27:24Z")

</div>

I had already done this and knew the cameras were available, as ZED\_Explorer, ZED\_Studio, and ZED\_Sensor\_Viewer can successfully open both Zed X One cameras (the OpenCV Calibration and the Virtual Stereo Camera Sample can not open the cameras).

```auto
$ ZED_Explorer -a

## Cam 0 ##
 Model : "ZED XOne GS"
 S/N : 300785707
 State : "AVAILABLE"
 Path : /dev/i2c-13
 ID : 0
 Port : 1
 Type : "GMSL"
********************
## Cam 1 ##
 Model : "ZED XOne GS"
 S/N : 308547270
 State : "AVAILABLE"
 Path : /dev/i2c-13
 ID : 1
 Port : 3
 Type : "GMSL"
********************

```

---

<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:** [March 10, 2026, 10:41am UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/13 "2026-03-10T10:41:48Z")

</div>

> [@andrwr\_rev](#):
>
> ./zed\_stereo\_calibration --h\_edges 12 --v\_edges 8 --square\_size 32 --left\_id 0 --right\_id 1 --virtual

Does it work if you use the serial numbers instead of the camera id to select them?  
Have you pulled the latest version of the repository? We pushed a fix a few days ago.

---

<div class="post-metadata">

**Author:** ![dsalasidis](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ac91a4/32.png) [@dsalasidis](https://community.stereolabs.com/u/dsalasidis)\
**Post date:** [March 10, 2026, 12:32pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/14 "2026-03-10T12:32:36Z")

</div>

Unfortunately, it does not work with those arguments either. Crashes at the same location, with the same error.

---

<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:** [March 11, 2026, 9:25am UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/15 "2026-03-11T09:25:03Z")

</div>

OK. We are currently performing internal tests to try to replicate your problem because without replicating it, it’s not possible to understand why it’s happening and how to fix it.

---

<div class="post-metadata">

**Author:** ![dsalasidis](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ac91a4/32.png) [@dsalasidis](https://community.stereolabs.com/u/dsalasidis)\
**Post date:** [March 11, 2026, 8:36pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/16 "2026-03-11T20:36:17Z")

</div>

If you are unable to reproduce the error, I could offer you to remote desktop into my Jetson in order to potentially debug the problem there.

---

<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:** [March 12, 2026, 2:16pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/17 "2026-03-12T14:16:30Z")

</div>

I was able to replicate the issue with 2x ZED X One S, while the problem is not present with 2x ZED X One GS.

We are digging into this to try to understand what’s happening under the hood.

---

<div class="post-metadata">

**Author:** ![dsalasidis](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/ac91a4/32.png) [@dsalasidis](https://community.stereolabs.com/u/dsalasidis)\
**Post date:** [March 12, 2026, 10:14pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/18 "2026-03-12T22:14:15Z")

</div>

That’s excellent. I just wanted to mention that I have also tested the calibration using a pair of Zed X One S cameras _(that the `ZED_Explorer -a` oddly reports as ZED X One GS cameras)_, which also resulted in the same segmentation fault _(as when using my original ZED X One GS pair)_.

To summarize, I am getting the segmentation fault with the ZED X One GS and S cameras.

---

<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:** [March 27, 2026, 1:50pm UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/19 "2026-03-27T13:50:49Z")

</div>

The just-released [ZED SDK v5.2.3](https://www.stereolabs.com/en-fr/developers/release#868673d43af5) should fix this problem.

---

<div class="post-metadata">

**Author:** ![SatoshiYamamoto](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/c37758/32.png) [@SatoshiYamamoto](https://community.stereolabs.com/u/SatoshiYamamoto)\
**Post date:** [April 2, 2026, 9:18am UTC](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953/20 "2026-04-02T09:18:41Z")

</div>

Segmentation fault during virtual ZED X One calibration on Jetson Orin (SDK 5.2.3)

Dear [Stereolabs](https://www.stereolabs.com/) Support,

I am experiencing a segmentation fault during virtual stereo calibration (calibration tool using the [OpenCV library](https://opencv.org/)) using two ZED X One cameras on a Jetson Orin (ZED box mini) platform. The issue appears very similar to the one discussed in the forum thread:

“Virtual Zed X One calibration fails: segmentation fault”

Environment:

- Device: Jetson Orin (ZED Box Mini)
- JetPack: 6.2 (L4T 36.4.7)
- ZED SDK: 5.2.3
- ZED Box Mini Driver: 1.4.1
- CUDA: 12.6

Setup:

- Two ZED X One cameras connected via GMSL
- Virtual stereo configuration (left/right pairing)

Observed behavior:

- Cameras are correctly detected and initialized
- Stream is created and begins capture
- Segmentation fault occurs during calibration (Segmentation fault (core dumped))

From the log:

- Virtual stereo mode is correctly configured
- Stream initialization completes successfully before the crash

I have (but I couldn’t upload because I’m new user):

- ZED diagnostic report
- ZED log file
- Crash report

Additional observations:

- GPU and CUDA tests pass successfully

Question:

- Is this issue still related to the bug mentioned in the forum thread?
- I am currently using SDK 5.2.3, which was reported to fix the issue — is there any additional patch or configuration required?

Thank you very much for your support.

Best regards,  
Satoshi Yamamoto

[Next page](https://community.stereolabs.com/t/virtual-zed-x-one-calibration-fails-segmentation-fault/10953.md?page=2)
