stereolabs / zed-unity

ZED SDK Unity plugin
https://www.stereolabs.com/documentation/guides/using-zed-with-unity/introduction.html
MIT License
243 stars 57 forks source link

ZED Unity plugin crashes #254

Closed mikeszabi closed 11 months ago

mikeszabi commented 1 year ago

Preliminary Checks

Description

Trying to reproduce body tracking example with UNITY's ZED plugin. It crashes right after starting to run the project. I tries Zed Mini and ZED 2i. I attached editor.log from unity.

Steps to Reproduce

1.NEW Unity URP project 2.Import ZED plugin 3.Add ZED_Rig_Mono prefab 4.Run Unity project ...

Expected Result

ZED Unity plugin runs fine as stated in examples (https://www.stereolabs.com/docs/unity/body-tracking/)

Actual Result

Obtained 4 stack frames.

0 0x00555a6c29f97c in burst_signal_handler(int, siginfo_t, void)

1 0x007fd18d442520 in __sigaction

2 0x007fcefbc60a5f in sl_set_roi_for_aec_agc

3 0x0000004008b19d in (wrapper managed-to-native) sl.ZEDCamera:dllz_set_roi_for_aec_agc (int,int,sl.Rect,bool)

Editor.log

ZED Camera model

ZED2i

Environment

Ubuntu 22.04
AMD Ryzen 5 1500X Quad-Core Processor
NVIDIA Driver Version: 510.108.03   CUDA Version: 11.6
ZED_SDK_Ubuntu22_cuda11.7_v3.8.2.zstd.run
Zed_Unity_Plugin_v4.0.2

Anything else?

Tested with ZED mini and ZED 2i - with same result

SLJLMacarit commented 1 year ago

Hello @mikeszabi, Thanks for reporting this.

We're currently investigating the core issue, but here is a workaround. Can you try commenting out the line like in this commit?

We're looking more into why it causes a crash, but it should work as a temporary fix. Please report if it worked out for you or not. We'll be back with a fix soon.

BlueprintBen commented 1 year ago

Commenting out that line doesn't resolve the crash issue for me.

github-actions[bot] commented 12 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days