# Crashes in nvinfer\_10.dll when calling Camera::open

**URL:** <https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796>\
**Category:** C++\
**Tags:** sdk\
**Created:** [October 15, 2026, 8:48pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796 "2026-10-15T20:48:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![dko](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@dko](https://community.stereolabs.com/u/dko)\
**Post date:** [October 15, 2026, 8:48pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/1 "2026-10-15T20:48:56Z")

</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 calling Camera::open in my application. It happens consistently with SDK 5.4-5.5 and I’ve had it crash once in 5.3.1. Previous SDK versions work fine for me.

**Rough steps to reproduce:**

- Set depth mode to NEURAL in sl::InitParameters. I am also setting the cuda context and gpu index.
- Call sl::checkAIModelStatus with the respective neural AI mode. If the model isn’t downloaded or optimized, also call sl::optimizeAIModel.
- Call Camera::open

If I don’t call sl::checkAIModelStatus and sl::optimizeAIModel, Camera::open doesn’t crash for me. The depth mode should also be one of the neural modes. Performance, quality, and ultra don’t cause problems.

**Other things I’ve tested:**

- ZED Depth Viewer 5.5.0 seems to work fine for me. I tried setting to neural and neural plus and was able to get the viewer working.
- ZED SDK 5.5.0 depth sensing C++ sample code. I tried to reproduce with the same InitParameters but was not able to. Although, I didn’t set the cuda context in the sample code since the context is attached to our application.

I would appreciate any help. Thank you.

---

<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:** [October 16, 2026, 7:52pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/2 "2026-10-16T19:52:31Z")

</div>

Hi @dko,  
welcome to the [StereoLabs](http://www.stereolabs.com) community, and thank you for the detailed report.

> [@dko](#):
>
> If I don’t call sl::checkAIModelStatus and sl::optimizeAIModel, Camera::open doesn’t crash for me.

This is a very useful clue. `sl::checkAIModelStatus` and `sl::optimizeAIModel` take a `gpu_id` parameter that defaults to `0`, and they run outside the camera’s CUDA context. When the camera is then opened with a custom CUDA context and a specific GPU index, the TensorRT engine may be loaded with a different device/context setup than the one used to optimize it. That would explain both the crash inside `nvinfer_10.dll` and why the official sample and ZED Depth Viewer work, since neither uses an external context.

Please check the following:

1. Pass the same GPU index used in `InitParameters::sdk_gpu_id` to both `sl::checkAIModelStatus` and `sl::optimizeAIModel`.
2. After `sl::optimizeAIModel` returns, make your application’s CUDA context current again on the calling thread (`cuCtxSetCurrent`) before calling `Camera::open`.
3. As a test, run the optimization once with ZED Depth Viewer (NEURAL / NEURAL PLUS), then only call `sl::checkAIModelStatus` in your application. Does `Camera::open` still crash when the model is already optimized and `sl::optimizeAIModel` is never called?

If the problem persists, please share:

- the GPU index you use and how many GPUs are installed;
- whether the AI model calls and `Camera::open` run on the same thread;
- a minimal code snippet showing how you create and pass the CUDA context, so we can try to reproduce the issue internally.

---

<div class="post-metadata">

**Author:** ![dko](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@dko](https://community.stereolabs.com/u/dko)\
**Post date:** [October 19, 2026, 4:53pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/3 "2026-10-19T16:53:41Z")

</div>

Hey @Myzhar

Test/verifying results:

- The same GPU index (0) is passed to all model API calls
- Tried to set `cuCtxSetCurrent` between `sl::optimizeAIModel` and `Camera::open` but that didn’t resolve the crash.
- I deleted the `/Stereolabs` folder from my computer and used the Depth Viewer to download and optimize the NEURAL model. I then called `sl::checkAIModelStatus` only in my application but `Camera::open` still crashes.

Since the problem persists:

- The GPU index I’m using is 0. I have two GPUs installed on my computer. GPU 0 is my dedicated NVIDIA one using CUDA, and GPU 1 is my integrated one which isn’t used here.
- The AI model calls and `Camera::open` run on the same thread.
- Here’s a code snippet of our CUDA context:

[cuda\_mini\_repro.cpp](https://community.stereolabs.com/uploads/short-url/4HNqlaggL6sWm58Rqbdyn7u428s.cpp) (952 Bytes)

---

<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:** [October 20, 2026, 11:16am UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/4 "2026-10-20T11:16:26Z")

</div>

Hi @dko  
Thank you for the detailed information.

I forwarded all the details to the ZED SDK team to solve the issue and provide a fix with one of the next releases.

---

<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:** [October 22, 2026, 12:13pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/5 "2026-10-22T12:13:07Z")

</div>

@dko  
can you please run the ZED Diagnostic tool and share the content of the JSON report?

---

<div class="post-metadata">

**Author:** ![dko](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@dko](https://community.stereolabs.com/u/dko)\
**Post date:** [October 22, 2026, 3:54pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/6 "2026-10-22T15:54:31Z")

</div>

Hi @Myzhar

Here’s the json report.

[ZED\_Diagnostic\_Results.json](https://community.stereolabs.com/uploads/short-url/sX8xClzfpE7dDr6L0bODv7zHEZr.json) (20.6 KB)

---

<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:** [October 22, 2026, 8:07pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/7 "2026-10-22T20:07:05Z")

</div>

Hi @dko,

thank you for sharing the diagnostic report.

The report shows that two different CUDA Toolkit versions are installed on your machine:

> CUDA Toolkit version: V12.8.61, located in C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8  
> [Warning] Other cuda version: V11.8.89, located in C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8  
> Multiple version of CUDA has been detected. It is recommended to uninstall other versions than 12.

Multiple CUDA versions on the same system can cause the wrong runtime libraries to be loaded by your application, leading to conflicts with TensorRT. This can explain the crash in `nvinfer_10.dll` that occurs only in your application, while ZED Depth Viewer and the official samples work correctly.

Please try the following procedure:

1. Uninstall the ZED SDK.
2. Uninstall all the CUDA Toolkit versions currently installed (both v11.8 and v12.8).
3. Reboot the machine.
4. Launch the [ZED SDK 5.5 installer](https://www.stereolabs.com/developers/release) again; it will install only the required CUDA libraries.
5. Rebuild your application and test it again with the NEURAL depth modes.

Please let us know if the crash persists after this clean installation.

---

<div class="post-metadata">

**Author:** ![dko](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@dko](https://community.stereolabs.com/u/dko)\
**Post date:** [October 23, 2026, 4:30pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/8 "2026-10-23T16:30:01Z")

</div>

Hi @Myzhar

I followed the steps as followed:

1. Uninstalled the ZED SDK
2. Uninstalled both of the CUDA Toolkit versions on my computer.
3. Restarted my computer.
4. Installed ZED SDK 5.5.0 and skipped past the missing CUDA installation warning. I did not install CUDA through the ZED SDK installer.
5. Rebuilt my application with ZED SDK 5.5.0.
6. Deleted the /ProgramData/[Stereolabs](https://www.stereolabs.com/) folder

I still encountered the crash. I also followed the same steps for ZED SDK 5.5.1 and experience the crash there too.

More context:

- We package CUDA and TensorRT in our application. We’re using CUDA 12.9 and our TensorRT DLLs are version 10.9.0.34.
- When building our application, we are only copying over the /include files, the .lib file, sl\_ai64.dll, and sl\_zed64.dll.
- As a sanity check, I tried copying over the other DLLs (e.g. nvinfer\_10.dll) that come with ZED SDK, but that didn’t solve the crash.
- We have been using the same setup with ZED SDK 5.0.4 for a few months now, and we don’t see the same crash in that version.

---

<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:** [October 26, 2026, 4:39pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/9 "2026-10-26T16:39:32Z")

</div>

Hi @dko,

thank you for testing the clean installation and for the additional details; they are the key to this issue.

> [@dko](#):
>
> - We package CUDA and TensorRT in our application. We’re using CUDA 12.9 and our TensorRT DLLs are version 10.9.0.34.

This is the most likely root cause. `sl_ai64.dll` is built against the specific TensorRT version distributed with the [ZED SDK](https://www.stereolabs.com/developers/release) installer, and TensorRT does not guarantee binary compatibility across minor versions; the serialized engines are also tied to the exact TensorRT version that generated them.  
Windows searches the application folder first when loading DLLs, so your process loads your TensorRT 10.9 libraries instead of the ones the ZED SDK expects. The result is undefined behavior, which matches the access violation inside `nvinfer_10.dll` that occurs only in your application, while ZED Depth Viewer and the samples work correctly. It also explains why your setup worked with ZED SDK 5.0.4 and started failing after the upgrade.

> [@dko](#):
>
> - As a sanity check, I tried copying over the other DLLs (e.g. nvinfer\_10.dll) that come with ZED SDK, but that didn’t solve the crash.

Replacing only `nvinfer_10.dll` creates a mixed TensorRT set, because the other libraries (`nvinfer_plugin_10.dll`, `nvonnxparser_10.dll`, `nvinfer_builder_resource_10.dll`, etc.) remain at version 10.9; this can crash as well.

Please try the following test:

1. Remove **all** the TensorRT DLLs bundled with your application from its folder, so that only the libraries in `C:\Program Files (x86)\ZED SDK\bin` are used.
2. Delete the `C:\ProgramData\Stereolabs` folder again to remove the engines optimized with the wrong TensorRT version.
3. Run your application and let `sl::optimizeAIModel` regenerate the NEURAL model.

To confirm which libraries are really loaded, you can check the Visual Studio **Modules** window (Debug \> Windows \> Modules) when the crash happens; it shows the full path and version of each `nvinfer_*` DLL.

If your other TensorRT models require a specific version, the solution is to align the TensorRT version packaged with your application with the one used by the ZED SDK release you are integrating. You can read it in the DLL properties (right click on `nvinfer_10.dll` in the ZED SDK `bin` folder \> Properties \> Details).

Please let us know the result of the test.

---

<div class="post-metadata">

**Author:** ![dko](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@dko](https://community.stereolabs.com/u/dko)\
**Post date:** [October 26, 2026, 7:34pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/10 "2026-10-26T19:34:53Z")

</div>

Hi @Myzhar

I removed the TensorRT DLLs from my application and deleted the C:\ProgramData\[Stereolabs](https://www.stereolabs.com/) folder again. I am still seeing the same crash in my application.

- When I removed the TensorRT DLLs from my application, the Visual Studio Modules window is showing that the TensorRT DLLs are being loaded from C:\Program Files (x86)\ZED SDK\bin.
- In my earlier comment, I meant that I manually copied over all the TensorRT DLLs bundled in the ZED SDK to our application, not only nvinfer\_10.dll. I tried copying all TensorRT DLLs once more and the crash is reproducible.
- Our application is using 10.9.0.34 TensorRT DLLs because that’s the verison that ZED SDK previously required. It seems like from ZED SDK 5.5.0 onwards, any TensorRT versions 10.9+ will be compatible for the CUDA 12.8+ version according to the release notes.
- I also tried comparing the file hashes of our TensorRT DLLs with ZED SDK’s, and they are all identical.

 ![Screenshot 2026-10-26 144646](https://community.stereolabs.com/uploads/default/original/2X/7/798d3685e9fd0df0550555daf58dcf5129d1d9a3.png)

 ![Screenshot 2026-10-26 144700](https://community.stereolabs.com/uploads/default/original/2X/f/fa7dff21e678b1251c08b2d1f5303dbaaa81a308.png)

---

<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:** [October 26, 2026, 11:01pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/11 "2026-10-26T23:01:57Z")

</div>

Hi @dko  
Thank you for all the useful details that you provided.  
I’ve just forwarded them to the ZED SDK team.  
They will analyze them to understand what’s the cause of this problem and they will fix it if it’s a bug.

I will send you updates as soon as I get them.

---

<div class="post-metadata">

**Author:** ![dko](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@dko](https://community.stereolabs.com/u/dko)\
**Post date:** [October 26, 2026, 11:12pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/12 "2026-10-26T23:12:55Z")

</div>

Thank you for all the help.

---

<div class="post-metadata">

**Author:** ![adujardin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/adujardin/32/4125_2.png) [@adujardin](https://community.stereolabs.com/u/adujardin)\
**Post date:** [October 27, 2026, 10:20am UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/13 "2026-10-27T10:20:35Z")

</div>

Thanks for the detailed report, we’ve identified the issue, this will be fixed in ZED SDK 5.6

---

<div class="post-metadata">

**Author:** ![RodolphePerrin](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@RodolphePerrin](https://community.stereolabs.com/u/RodolphePerrin)\
**Post date:** [November 20, 2026, 3:54pm UTC](https://community.stereolabs.com/t/crashes-in-nvinfer-10-dll-when-calling-camera-open/11796/14 "2026-11-20T15:54:55Z")

</div>

Hi Daniel,

Just a quick message to let you know that the SDK 5.6 was just released this week, including your fix !

Thank you for your patience,

Rodolphe
