RPi5 Hailo examples freezing, crashing, stuttering

Hello.
In advance, I apologize if I’m duplicating topics or problems, but I haven’t seen anyone having the same issues in particular.

  • Hardware:

    • Raspberry Pi 5 8GB
    • Hailo 8L
    • Official M.2. HAT
    • USB SSD
    • USB Camera
  • Software:

    • Kernel: 6.12.25
    • hailo-all: installed
    • Tappas: 3.31.0
    • everything: up-to-date (from apt)
    • PCI-E configuration: default (NOT 3.0)

Examples used: GitHub - hailo-ai/hailo-rpi5-examples

Issues:

  • with the provided video examples:
    • only detection.py works
    • other examples never run (“never run” means that the pipeline gets printed on the screen, but the video file for the given example doesn’t seem to load at all. by drive activity LEDs I can see that it makes a few attempts to load the video, but no matter how long I wait, it never runs)
  • with the USB camera:
    • all examples run, and they run smoothly, but
    • often, after a shorter or longer while, execution freezes completely

What tests I performed:

  • tested on two different Raspberry Pis
  • tested connecting the Hailo accelerator through two different M.2. HATs (and two different ribbon cables)
  • tested with two different boot SSDs
  • tested with three different USB<->M.2. SSD adapters
  • tested with two different uSD cards

To clarify, because some might not understand: the Hailo accelerator was connected to the M.2. HATs, while the SSDs were connected with USB adapters.

I’m trying to diagnose if this is a hardware problem with the accelerator or the electrical connection, or a software problem with the examples themselves. I do not have the time to go any deeper into diagnostics. I’m also doubting it’s an issue with the accelerator. This does not seem like a hardware issue at all.

Can you please help me diagnose? I have no models or applications of my own to run. I do not have enough free time to tinker with the accelerator, but I would like to know if I have faulty hardware or not.

Hi,

you should have a look on the kernel log with “journalctl -f”. After stopping the examples with ctrl-c, are there some hailo related lines?

I had also some problems running the examples, but my post is still in the review phase.

1 Like

I had the same issue after the latest update. I couldn’t fix it, so I reverted back to version 6.12.20.

1 Like

Hi!
I am having the same problem. Would you mind sharing how you reverted to 6.12.20?

I have downloaded and installed raspios_arm64-2024-11-19. I then tried to “pin” the kernel version, but try as I might, I keep ending up at 6.12.25 after using apt to install hailo-all.

I tried using:
sudo apt-mark hold libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0
sudo apt-mark hold raspberrypi-bootloader raspberrypi-kernel raspberrypi-kernel-headers

Apologies, if this is not the correct forum for this question!

Thanks!

1 Like