# Aruco Marker Sample seems broken after update

**URL:** <https://community.stereolabs.com/t/aruco-marker-sample-seems-broken-after-update/11765>\
**Category:** Unity\
**Created:** [October 1, 2026, 2:00pm UTC](https://community.stereolabs.com/t/aruco-marker-sample-seems-broken-after-update/11765 "2026-10-01T14:00:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rosss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/rosss/32/4388_2.png) [@Rosss](https://community.stereolabs.com/u/Rosss)\
**Post date:** [October 1, 2026, 2:00pm UTC](https://community.stereolabs.com/t/aruco-marker-sample-seems-broken-after-update/11765/1 "2026-10-01T14:00:02Z")

</div>

Hello - we’ve just updated from 5.2.0 to 5.4.1 and have noticed that the aruco detection in our project has stopped working.  
We also updated the “OpenCV ArUco Detection” sample and it doesn’t work in there either.  
The issue specifically seems to be this -

[ZEDToOpenCV] RetrieveImage failed.  
View: LEFT\_GREY  
Mat Type: MAT\_8U\_C1  
Error: CUDA\_ERROR  
UnityEngine.Debug:LogError (object)  
ZEDToOpenCVRetriever:DeployGrabbedEvent (UnityEngine.Camera,sl.ZEDMat&,sl.VIEW,sl.ZEDMat/MAT\_TYPE,OpenCVForUnity.CoreModule.Mat&,ZEDToOpenCVRetriever/ImageUpdatedEvent,ZEDToOpenCVRetriever/OpenCVConversion) (at Assets/Samples/ZED SDK/5.4.0/OpenCV ArUco Detection/Scripts/Core/ZEDToOpenCVRetriever.cs:246)  
ZEDToOpenCVRetriever:OnZEDGrabbed () (at Assets/Samples/ZED SDK/5.4.0/OpenCV ArUco Detection/Scripts/Core/ZEDToOpenCVRetriever.cs:186)  
ZEDManager:UpdateImages () (at ./Packages/com.[stereolabs](https://www.stereolabs.com/).zed/SDK/Helpers/Scripts/ZEDManager.cs:2793)  
ZEDManager:Update () (at ./Packages/com.[stereolabs](https://www.stereolabs.com/).zed/SDK/Helpers/Scripts/ZEDManager.cs:2910)

---

<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 2, 2026, 12:37pm UTC](https://community.stereolabs.com/t/aruco-marker-sample-seems-broken-after-update/11765/2 "2026-10-02T12:37:18Z")

</div>

Hi @Rosss,  
welcome to the [StereoLabs](https://www.stereolabs.com/) community, and thank you for the detailed log.

> [@Rosss](#):
>
> we’ve just updated from 5.2.0 to 5.4.1 and have noticed that the aruco detection in our project has stopped working.

> [@Rosss](#):
>
> [ZEDToOpenCV] RetrieveImage failed.  
> View: LEFT\_GREY  
> Mat Type: MAT\_8U\_C1  
> Error: CUDA\_ERROR

This is a known issue in the ZED Unity plugin v5.4.x, and it’s not caused by your project or by the ArUco sample code. The C API function `sl_retrieve_image` takes a final CUDA stream argument, but the plugin’s binding was missing it. The native side then read an uninitialized value and tried to use it as a CUDA stream, which caused the `CUDA_ERROR`. `sl_retrieve_measure` had the same problem.

The fix is in the [ZED Unity plugin v5.5.0](https://github.com/stereolabs/zed-unity/tree/v5.5.0) (see [commit ad37d2f](https://github.com/stereolabs/zed-unity/commit/ad37d2f)). That commit also fixes a few other binding mismatches with the C API.

To fix it:

1. Install the [ZED SDK v5.5](https://www.stereolabs.com/developers/release). The plugin needs the same major and minor version as the ZED SDK, so plugin v5.5.0 requires SDK 5.5.x.
2. Update the `com.stereolabs.zed` package in your project to v5.5.0.
3. Remove the old `Assets/Samples/ZED SDK/5.4.0/OpenCV ArUco Detection` folder and re-import the sample from the Package Manager.

One note on v5.5.0: `InitParameters.enableImageValidityCheck` is now an `int` instead of a `bool`. If your project sets it, assign `1` or `0` instead of `true` or `false`.

You can find more information in the [ZED Unity documentation](https://www.stereolabs.com/docs/unity).

Please let us know if the ArUco detection works again after the update.

Best,  
Myzhar
