Segmentation fault with hailotilecropper + hailotileaggregator

I’m running the following gstreamer command:

libcamerasrc name=source ! video/x-raw, format=RGB, width=1280, height=720, framerate=30/1 ! queue name=source_convert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoconvert n-threads=3 name=source_convert qos=true ! video/x-raw, format=RGB, pixel-aspect-ratio=1/1 ! hailotilecropper internal-offset=true name=cropper tiles-along-x-axis=2 tiles-along-y-axis=2 overlap-x-axis=0.08 overlap-y-axis=0.08 hailotileaggregator flatten-detections=true iou-threshold=0.1 name=agg cropper. ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! agg. cropper. ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailonet hef-path=resources/yolov8s.hef output-format-type=HAILO_FORMAT_TYPE_FLOAT32 ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailofilter so-path=/home/erez/git/AutoDetection/basic_pipelines/…/resources/libyolo_hailortpp_postprocess.so qos=false ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! agg. agg. ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! queue name=identity_callback_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! identity name=identity_callback ! fakesink sync=false

I want to be able to run python code with combination of tile cropper…

I’m getting Segmentation fault exception without any additional information.

Can you assist?

Hey @Erez

We’ve reviewed your pipeline structure, and it appears to be well-constructed. To help identify and resolve the issue you’re experiencing, we’d like to guide you through several debugging approaches.

Please try the following troubleshooting steps. If these don’t resolve the issue, we’ll need you to share the output from each step for further analysis.

  1. Component Isolation Test
libcamerasrc ! videoconvert ! hailotilecropper ... ! fakesink

Start with this basic pipeline and gradually add elements until you can reproduce the issue. This will help pinpoint the problematic component.
2. Tile Cropper Verification

  • With your current configuration (tiles-along-x-axis=2, tiles-along-y-axis=2), your 1280x720 input is being divided into 640x360 tiles
  • For YOLOv8 compatibility, you may need to adjust to square dimensions. Try adding:
videoscale ! video/x-raw, width=640, height=640 ! hailotilecropper ...
  1. Model Validation Please verify your model setup with:
hailonet hef-path=resources/yolov8s.hef output-format-type=HAILO_FORMAT_TYPE_FLOAT32 ! fakesink
  1. Post-Processing Verification
  • Check that your libyolo_hailortpp_postprocess.so is compiled with your current Hailo SDK version
  • Test the post-processing independently:
hailofilter so-path=/path/to/libyolo_hailortpp_postprocess.so ! fakesink
  • Consider adjusting your tile aggregator’s IOU threshold (we recommend testing values between 0.3-0.5)

Best Regards,
Omria

Hi Omri

Already tried to isolated the issue but still getting the same error
Resizing the whole image is not right, the idea is to break the image into smaller parts

In addition, I’m using4.18 version and not 4.19
I’m not able to find instructions how to upgrade myself to 4.19…

Can you help with that as well?

In addition,

I tried to run this example

got the same error. I’m using Hailo8

You can set the variable GST_DEBUG to 3:

export GST_DEBUG=3

before running tiling.sh, it may give you more information on the nature of the failure.