stereolabs / zed-python-api

Python API for the ZED SDK
https://www.stereolabs.com/docs/app-development/python/install/
MIT License
213 stars 94 forks source link

Jetson Nano - std::length_error when depth sensing #210

Closed alexispascual closed 2 years ago

alexispascual commented 2 years ago

Preliminary Checks

Description

I’m getting the following error whenever I run the depth sensing script from the tutorials on the Jetson Nano:

terminate called after throwing an instance of 'std::length_error'
what():  vector::_M_default_append
Aborted (core dumped)

More specifically, the error happens on the zed.grab(runtime_parameters) call. The camera opens successfully, and I can query the serial number and set the initial_parameters but after that, zed.grab() fails.

I am primarily using the Python API but this happens for the C++ code as well. Disabling enable_depth in the runtime_parameters allows me to take images but obviously, this defeats the purpose of getting a stereo camera.

It seems to be a C++ runtime error so I’m not entirely sure how to approach the fix. I’m hoping someone can help me out.

Thank you!

Steps to Reproduce

  1. Install ZED SDK 3.7 for Jetson Nano JetPack 4.6
  2. Run depth_sensing.py from here

Expected Result

Get depth map.

Actual Result

terminate called after throwing an instance of 'std::length_error'
what():  vector::_M_default_append
Aborted (core dumped)

ZED Camera model

ZED2

Environment

Relevant information:
Platform: Jetson Nano
Python: 3.6
ZED SDK: 3.7
CUDA: 10.2
JetPack: 4.6
Ubuntu: 18.04 L4T 32.6.1

Anything else?

No response

alexispascual commented 2 years ago

Just tested with a Jetson TX2 and the script runs fine. On my TX2, the set up is the same, with the ZED SDK installed via the run script found here.

So it's most likely a problem with the Jetson Nano.

github-actions[bot] commented 2 years 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