zed-sdk
zed-sdk copied to clipboard
Unhandled internal exception (slutils) Segmentation fault (core dumped)
Preliminary Checks
- [X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
- [X] This issue is not a question, feature request, or anything other than a bug report directly related to this project.
Description
Running the sample code installed in: /usr/local/zed/samples/object detection/custom detector/python/pytorch_yolov8_seg. After a while the execution stops after displaying the following warning and an exception: python3 detector.py --weights yolov8s-seg.pt --img_size 640 --conf_thres 0.4 Initializing Network... Initializing Camera... [2024-10-18 08:59:13 UTC][ZED][INFO] Logging level INFO [2024-10-18 08:59:13 UTC][ZED][INFO] Logging level INFO [2024-10-18 08:59:13 UTC][ZED][INFO] Logging level INFO [2024-10-18 08:59:14 UTC][ZED][INFO] Using USB input... Switched to default resolution HD720 [2024-10-18 08:59:14 UTC][ZED][INFO] [Init] Depth mode: ULTRA [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Camera successfully opened. [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Camera FW version: 1523 [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Video mode: HD720@60 [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Serial Number: S/N 32721612 Camera Initialized Network Initialized... /usr/local/zed/samples/object detection/custom detector/python/pytorch_yolov8_seg/detector.py:69: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) obj.label = box.cls /usr/local/zed/samples/object detection/custom detector/python/pytorch_yolov8_seg/detector.py:70: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) obj.probability = box.conf [2024-10-18 10:12:13 UTC][ZED][WARNING] Unhandled internal exception (slutils) Segmentation fault (core dumped)
Steps to Reproduce
- Download and install the ZED_SDK_Tegra_L4T36.3_v4.2.0.zstd.run for Jetson AGX Orin.
- Follow the instructions to complete the rest instructions and installations as described in the README.md file
- Run the command python3 detector.py --weights yolov8s-seg.pt --img_size 640 --conf_thres 0.4
- Displayed messages in the terminal as in the Description section of this report, and execution interrupted.
Expected Result
Object detection executed forever.
Actual Result
Execution stops with the following messages displayed in the terminal: python3 detector.py --weights yolov8s-seg.pt --img_size 640 --conf_thres 0.4 Initializing Network... Initializing Camera... [2024-10-18 08:59:13 UTC][ZED][INFO] Logging level INFO [2024-10-18 08:59:13 UTC][ZED][INFO] Logging level INFO [2024-10-18 08:59:13 UTC][ZED][INFO] Logging level INFO [2024-10-18 08:59:14 UTC][ZED][INFO] Using USB input... Switched to default resolution HD720 [2024-10-18 08:59:14 UTC][ZED][INFO] [Init] Depth mode: ULTRA [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Camera successfully opened. [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Camera FW version: 1523 [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Video mode: HD720@60 [2024-10-18 08:59:15 UTC][ZED][INFO] [Init] Serial Number: S/N 32721612 Camera Initialized Network Initialized... /usr/local/zed/samples/object detection/custom detector/python/pytorch_yolov8_seg/detector.py:69: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) obj.label = box.cls /usr/local/zed/samples/object detection/custom detector/python/pytorch_yolov8_seg/detector.py:70: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) obj.probability = box.conf [2024-10-18 10:12:13 UTC][ZED][WARNING] Unhandled internal exception (slutils) Segmentation fault (core dumped)
ZED Camera model
ZED2i
Environment
OS: Ubuntu 22.04
CPU: ARM
GPU Jetson AGX Orin
ZED SDK: 4.2.1 - ZED_SDK_Tegra_L4T36.3_v4.2.0.zstd.run
Anything else?
No response