frigate: [Config Support]: Whole Machine Crashing - looking for some tips

Describe the problem you are having

I have two docker hosts and both have a coral. I find that Frigate seems to cause the whole host to freeze completely (console is not responsive) at frequent intervals - right now I would say on average every 48 hours but its not consistent. I’ve moved the docker container to the other host and cleared out all the other dockers and the freeze follows Frigate.

Its likely Frigate is pushing the hosts much harder than any other docker and perhaps its finding a bug somewhere in the hardware or OS. The Devices are BeeLink devices running the latest Ubuntu.

Looking for some advice - has anyone seen this sort of behavior and identified the cause?

This has been happening for many months so it is not related to the beta Frigate or any particular Frigate (and likely this is NOT a Frigate bug)

Version

0.13 Beta 3

Frigate config file

database:
  path: /db/frigate.db

mqtt:
  host: 10.2.1.171
  user: mqtt
  password: xxx

ffmpeg:
#  hwaccel_args: -c:v h264_qsv
#  hwaccel_args: preset-intel-qsv-h264
  hwaccel_args: preset-vaapi

logger:
  # Optional: default log level (default: shown below)
  default: warning
  # Optional: module by module log level configuration
  logs:
    frigate.mqtt: error

detectors:
  coral:
    type: edgetpu
    device: usb

motion:
  # Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below)
  # Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive.
  # The value should be between 1 and 255.
  threshold: 40
  contour_area: 20
  lightning_threshold: 0.7

detect:
  max_disappeared: 500
  width: 1280
  # Optional: height of the frame for the input with the detect role (default: shown below)
  height: 720


timestamp_style:
  # Optional: Position of the timestamp (default: shown below)
  #           "tl" (top left), "tr" (top right), "bl" (bottom left), "br" (bottom right)
  position: tl
  # Optional: Format specifier conform to the Python package "datetime" (default: shown below)
  #           Additional Examples:
  #             german: "%d.%m.%Y %H:%M:%S"
  format: '%m/%d/%Y %H:%M:%S'
  # Optional: Color of font
  color:
    # All Required when color is specified (default: shown below)
    red: 255
    green: 255
    blue: 255
  # Optional: Line thickness of font (default: shown below)
  thickness: 1
  # Optional: Effect of lettering (default: shown below)
  #           None (No effect),
  #           "solid" (solid background in inverse color of font)
  #           "shadow" (shadow for font)
  effect: solid


birdseye:
  # Optional: Enable birdseye view (default: shown below)
  enabled: true
  # Optional: Width of the output resolution (default: shown below)
  width: 1280
  # Optional: Height of the output resolution (default: shown below)
  height: 720
  # Optional: Encoding quality of the mpeg1 feed (default: shown below)
  # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
  quality: 8
  # Optional: Mode of the view. Available options are: objects, motion, and continuous
  #   objects - cameras are included if they have had a tracked object within the last 30 seconds
  #   motion - cameras are included if motion was detected in the last 30 seconds
  #   continuous - all cameras are included always
  mode: objects
  restream: true

objects:
  track:
  - person
  - cat


record:
  enabled: true
  events:
    retain:
      default: 10
      mode: active_objects
    pre_capture: 5
    post_capture: 15

  sync_on_startup: true
  expire_interval: 60

# Optional: Configuration for the jpg snapshots written to the clips directory for each event
# NOTE: Can be overridden at the camera level
snapshots:
  # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
  enabled: true
  # Optional: save a clean PNG copy of the snapshot image (default: shown below)
  clean_copy: true
  # Optional: print a timestamp on the snapshots (default: shown below)
  timestamp: false
  # Optional: draw bounding box on the snapshots (default: shown below)
  bounding_box: false
  # Optional: crop the snapshot (default: shown below)
  crop: false
  # Optional: height to resize the snapshot to (default: original size)
  height: 175
  # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
  required_zones: []
  # Optional: Camera override for retention settings (default: global values)
  retain:
    # Required: Default retention days (default: shown below)
    default: 10
    # Optional: Per object retention days
    objects:
      person: 15
  # Optional: quality of the encoded jpeg, 0-100 (default: shown below)
  quality: 70


ui:
  # Optional: Set the default live mode for cameras in the UI (default: shown below)
  live_mode: mse
  # Optional: Set a timezone to use in the UI (default: use browser local time)
  timezone: America/New_York
  # Optional: Use an experimental recordings / camera view UI (default: shown below)
  use_experimental: false
  # Optional: Set the time format used.
  # Options are browser, 12hour, or 24hour (default: shown below)
  time_format: 12hour
  # Optional: Set the date style for a specified length.
  # Options are: full, long, medium, short
  # Examples:
  #    short: 2/11/23
  #    medium: Feb 11, 2023
  #    full: Saturday, February 11, 2023
  # (default: shown below).
  date_style: full
  # Optional: Set the time style for a specified length.
  # Options are: full, long, medium, short
  # Examples:
  #    short: 8:14 PM
  #    medium: 8:15:22 PM
  #    full: 8:15:22 PM Mountain Standard Time
  # (default: shown below).
  time_style: medium
  # Optional: Ability to manually override the date / time styling to use strftime format
  # https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
  # possible values are shown above (default: not set)
  strftime_fmt: '%Y/%m/%d %H:%M'

telemetry:
  # Optional: Enabled network interfaces for bandwidth stats monitoring (default: shown below)
  #network_interfaces:
  #  - eth
  #  - enp
  #  - eno
  #  - ens
  #  - wl
  #  - lo
  # Optional: Configure system stats
  stats:
    # Enable AMD GPU stats (default: shown below)
   # amd_gpu_stats: True
    # Enable Intel GPU stats (default: shown below)
    intel_gpu_stats: true
    # Enable network bandwidth stats monitoring for camera ffmpeg processes, go2rtc, and object detectors. (default: shown below)
    network_bandwidth: false
  # Optional: Enable the latest version outbound check (default: shown below)
  # NOTE: If you use the HomeAssistant integration, disabling this will prevent it from reporting new versions
  version_check: true

cameras:

REMOVED - but I have about 15


I also wanted to include my docker compose for ideas

version: "3"
services:
  frigate:
    image: ghcr.io/blakeblackshear/frigate:0.13.0-beta3
#    image: ghcr.io/blakeblackshear/frigate:dev-c743dfd
    shm_size: "2048mb"
    container_name: frigate
    privileged: true
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - /disk1/docker/frigate/config:/config
#      - /disk1/docker/frigate/db:/db
#      - /disk1/docker/frigate/media:/media/frigate
      - /etc/localtime:/etc/localtime:ro
      - /dev/bus/usb:/dev/bus/usb
    environment:
     - PUID=0
     - PGID=0
     - TZ=America/New_York
     - FRIGATE_RTSP_PASSWORD="xxx"
     - PLUS_API_KEY=xxx
    restart: unless-stopped

Relevant log output

None that I can find relevant.

Frigate stats

No response

Operating system

Other

Install method

Docker Compose

Coral version

USB

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 247 (36 by maintainers)

Most upvoted comments

@ggidofalvy-tc

Thats how i have done it:

  1. Generate a yolo model with https://colab.research.google.com/drive/1G05mESOhDdM1HpinKMJZWpI_jxNq_qIO?usp=sharing#scrollTo=rKnUE62F925P
  2. Download the following labelmap: https://github.com/openvinotoolkit/open_model_zoo/blob/master/data/dataset_classes/coco_80cl.txt
  3. My Config:
detectors:
  ov:
    type: openvino
    device: GPU
    model:
      # path: /openvino-model/ssdlite_mobilenet_v2.xml
      path: /config/yolov8s/yolov8s.xml

model:
#  width: 300
#  height: 300
 width: 416
 height: 416
 input_tensor: nchw  # nhwc
 input_pixel_format: bgr
 model_type: yolov8
 labelmap_path: /config/coco_80cl.txt  #/openvino-model/coco_91cl_bkgr.txt

@madasus Yes this is using OpenVino as detector and not coral. As far is i know you cannot use coral and yolo models together

Hi, same here, hwaccel_args: ’ ’ doesn’t work, I just had system hard lock again.

I have a similar issue, running an i5-6500T, no external accelerator, and so far I’ve been able to ascertain the following:

  • VAAPI hardware accelerated video decoding/encoding, CPU detector -> no crash
  • Software decoding/encoding, OpenVINO detector running -> no crash
  • VAAPIa hardware accelerated video decoding/encoding, OpenVINO detector running -> machine hangs after 16-24 hours

Here’s my config using three random camera feeds from the Internet that I use for debugging, currently the hardware acceleration for decoding/encoding is commented out:

mqtt:
  enabled: false

go2rtc:
  streams:
#    test_camera_1_main:
#      - rtsp://admin:xxxxxxxxxxx@192.168.10.17:554/h265Preview_01_main
#    test_camera_1_sub:
#      - rtsp://admin:xxxxxxxxxxx@192.168.10.17:554/h264Preview_01_sub
    test1:
   #  - ffmpeg:http://78.31.82.246/mjpg/video.mjpg#video=h264#hardware
     - ffmpeg:http://78.31.82.246/mjpg/video.mjpg#video=h264

    test2:
   #  - ffmpeg:http://webcam.zvnoordwijk.nl:82/mjpg/video.mjpg#video=h264#hardware
     - ffmpeg:http://webcam.zvnoordwijk.nl:82/mjpg/video.mjpg#video=h264
    test3:
   #  - ffmpeg:http://tacocam.tacoma.uw.edu/mjpg/video.mjpg#video=h264#hardware
     - ffmpeg:http://tacocam.tacoma.uw.edu/mjpg/video.mjpg#video=h264

cameras:
#  test_camera_1: # <------ Name the camera
#    ffmpeg:
#      output_args:
#        record: preset-record-generic-audio-copy
#      inputs:
#        - path: rtsp://127.0.0.1:8554/test_camera_1_sub # <----- The stream you want to use for detection
#          input_args: preset-rtsp-restream
#          hwaccel_args: preset-vaapi
#          roles:
#            - detect
#        - path: rtsp://127.0.0.1:8554/test_camera_1_main # <----- The stream you want to use for recording
#          input_args: preset-rtsp-restream
#          hwaccel_args: preset-vaapi
#          roles:
#            - record
#    record:
#      enabled: True
#    detect:
#      enabled: True # <---- disable detection until you have a working camera feed
#      width: 640 # <---- update for your camera's resolution
#      height: 480 # <---- update for your camera's resolution
#    live:
#      stream_name: test_camera_1_main
  test1: # <------ Name the camera
    ffmpeg:
      inputs:
      - path: rtsp://127.0.0.1:8554/test1   # <----- The stream you want to use for detection
        input_args: preset-rtsp-restream
#        hwaccel_args: preset-vaapi
        roles:
        - detect
      - path: rtsp://127.0.0.1:8554/test1   # <----- The stream you want to use for recording
        input_args: preset-rtsp-restream
#        hwaccel_args: preset-vaapi
        roles:
        - record
    record:
      enabled: true
    detect:
      enabled: true # <---- disable detection until you have a working camera feed
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
    live:
      stream_name: test1
    objects:
      track:
      - person
      - car
  test2: # <------ Name the camera
    ffmpeg:
      inputs:
      - path: rtsp://127.0.0.1:8554/test2   # <----- The stream you want to use for detection
        input_args: preset-rtsp-restream
        hwaccel_args: preset-vaapi
        roles:
        - detect
      - path: rtsp://127.0.0.1:8554/test2   # <----- The stream you want to use for recording
        input_args: preset-rtsp-restream
#        hwaccel_args: preset-vaapi
        roles:
        - record
    record:
      enabled: true
    detect:
      enabled: true # <---- disable detection until you have a working camera feed
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
    live:
      stream_name: test2
    objects:
      track:
      - person
  test3: # <------ Name the camera
    ffmpeg:
      inputs:
      - path: rtsp://127.0.0.1:8554/test3   # <----- The stream you want to use for detection
        input_args: preset-rtsp-restream
#        hwaccel_args: preset-vaapi
        roles:
        - detect
      - path: rtsp://127.0.0.1:8554/test3   # <----- The stream you want to use for recording
        input_args: preset-rtsp-restream
#        hwaccel_args: preset-vaapi
        roles:
        - record
    record:
      enabled: true
    detect:
      enabled: true # <---- disable detection until you have a working camera feed
      width: 1920 # <---- update for your camera's resolution
      height: 1080 # <---- update for your camera's resolution
    live:
      stream_name: test3
    objects:
      track:
      - person

    motion:
      mask:
      - 716,0,723,359,126,378,129,0
      - 1920,0,1920,0,1920,731,1869,783,1804,823,1722,860,1604,855,1480,838,1314,778,1299,729,1188,676,1123,667,1061,683,1010,642,978,598,961,516,850,496,755,464,674,447,603,306,582,0
record:
  retain:
    days: 0
    mode: all
  events:
    retain:
      default: 14
      mode: motion
      objects:
        person: 30

detectors:
  ov:
    type: openvino
    device: AUTO
    model:
      path: /openvino-model/ssdlite_mobilenet_v2.xml

model:
  width: 300
  height: 300
  input_tensor: nhwc
  input_pixel_format: bgr
  labelmap_path: /openvino-model/coco_91cl_bkgr.txt

# Include all cameras by default in Birdseye view
birdseye:
  enabled: true

I tried to grab kernel crashdump via kdump, and also tried out kernel netconsole (dmesg) logging to another server running on the same network, but neither resulted in any output, which makes me think it’s a driver issue that affects the CPU itself, not even a kernel crash.

Running the beta2 image in docker-compose, the beta3 image has an issue with go2rtc failing to parse the camera feed URLs.

If you have any ideas for any further troubleshooting I could do, please do let me know.

A quick summery of my current state:

  • Switching to ffmpeg 5 did not resolve the issue
  • Switching to vaapi instead of intel-qsv did not resolve the issue

Thus I updated to a 6.11 kernel. At first it seemed that the issue was resolved. The system ran 7 days. Then I did a manual reboot due to some system upgrades. Within one day the watchdog did trigger 2 reboots.

Now I started to experiment with power management related settings. Currently checking if disabling the GPU power management resolves the issue (i915.enable_dc=0). Let’s wait an see

I’ve had no issues after switching to an older ffmpeg and using the preset-vaapi:

ffmpeg:
  path: "5.0"
  hwaccel_args: preset-vaapi

Rebooting or restarting your container is not a fix imo. For me I concluded there are bugs in cpu/gpu which is hardware. Which ones are broken or not is still not exactly clear to me. Is this bug really solved in which gen Intel CPUs? In the meantime I want this “fixed” with software dealing well with the “known” bugs in my “old” hardware, not by restarting every night. For now I have quite a stable setup with my 8th gen CPU (thanks to hints for configs on this issue), but I doubt I use the maximum capabilities of my hardware.

Hi folks, just wanted to update that I had many freeze / crashes for a long long time.

I recently upgraded my Intel NUC from 4GB to 12GB RAM and all the freeze problems disappeared. After doing so - also managed to change the hwaccel_args parameter back to default (using GPU) with no problem.

@ggidofalvy-tc @madasus especially if your frigate machine is headless, I would recommend removing the often-default quiet kernel parameter/command-line-argument and adding debug. that’s what helped in my case linked above to at least narrow down the issue to the GPU, but I have made limited progress above as NickM has linked. my errors only showed up on the physical console, due to the hang.

It’s certainly suspicious that what I reported in #8338 is also using a i7-6600(U) / Skylake GPU - same generation as you both - wondering if there is a driver bug / hardware quirk that other generations don’t have that the i915 driver isn’t handling

The next steps would be to back down frigate to a bare minimum config and slowly add parts back until you can see what is causing the issue.

I thought qsv was not supported in Gen1-7 cpu’s. This documentation also mention gsv from Gen8 cpu’s

Im aware that this is what the docs says but quick sync video is supported way before the 6th gen. Im no expert, so maybe I misconfigured something, but it seems that it works well. I see some action on intel_gpu_top and on the screenshot is the cpu usage on 2 1080p cameras.

Image

Same thing here with a 6th gen, up to date micro code on ubuntu 25.04. Giving the ffmpeg v5 a try now. To see if it helps.

No good, it locked up inside an hour. I am not running a tpu but am using the igpu. The only other thing is I am using h265 as my camera resolution is larger than h264 can support.

@cconnert I changed to ffmpeg 5 because of another machine with a 6th gen CPU, so I changed my main server as well because a thought ffmpeg 7 had an issue. I can run version 7 on the i5-8500 but version 5 is not giving issues so I just leave it there for now.

I have added yolonas model here if you want to test your system without the coral to see if it freezes.

@nacree i was also using i5-6500T. since i upgraded to i7-7700T i got 0 problems even with full hardware acceleration.

Rebooting or restarting your container is not a fix imo.

imo it is not a fix as well, but it is a workaround until i can figure out what it is, which means i might never be able to figure it out, so

i might end up buying a dedicated sbc and moving frigate to that

I found a ‘fix’. I started to reboot my PC in the middle of the night. No crashes since!

Thanks @eohlde ! With help of your config I finally managed to get hwaccel for ffmpeg active like this:

ffmpeg:
  hwaccel_args: preset-intel-qsv-h264
  input_args: preset-rtsp-generic

Running for 6 days without crashes now… (on a Intel NUC 8i5BEK with i5 8259U cpu with 32G mem)

I’ve got an i5-8500 CPU, 32 GB of ram, using an M.2 Coral. Running frigate through docker (compose) I’m getting no logs when a whole machine crash occurs, the entire system freezes and i have to physically power cycle it (nothing in the logs, no local console response, no ssh response). I’m running 6 ubiquiti G3 cameras at 1080p (I think 10 fps) in stand alone mode (using go2rtc). I recently tweaked the compose file. I added

  • /dev/dri/card1
  • moved to LIBVA_DRIVER_NAME=i965
  • added input_args: preset-rtsp-generic

I will jinx myself with this, but I’ve had 3 days of uptime now.

Very interesting! Could you probably share your compose file and config file? I’m currently going on 8 days uptime. one other thing to note: in my config, I also recently commented out the recording overrides at the different cameras, not sure if this also had an effect. I left the commented out recording blocks, in case they are relevant for discussion. my compose file:

services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    stop_grace_period: 30s
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: "1024mb" # update for your cameras based on calculation above
    devices:
      - /dev/apex_0:/dev/apex_0 # passes the USB Coral
      - /dev/dri/renderD128:/dev/dri/renderD128
      - /dev/dri/card1:/dev/dri/card1
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./frigate:/config
      - /mnt/frigate:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "8971:8971"
      - "8554:8554" # RTSP feeds
    environment:
      - FRIGATE_CAM1_RTSP_CREDENTIAL=${CAM1_CREDENTIAL}
      - FRIGATE_CAM2_RTSP_CREDENTIAL=${CAM2_CREDENTIAL}
      - FRIGATE_CAM3_RTSP_CREDENTIAL=${CAM3_CREDENTIAL}
      - FRIGATE_CAM4_RTSP_CREDENTIAL=${CAM4_CREDENTIAL}
      - FRIGATE_CAM5_CREDENTIAL=${CAM5_CREDENTIAL}
      - FRIGATE_MQTT_PASSWORD=${MQTT_PASSWORD}
      - FRIGATE_MQTT_USER=${MQTT_USER}
      - FRIGATE_MQTT_HOST=${MQTT_HOST}
      - LIBVA_DRIVER_NAME=i965

My frigate config:

mqtt:
  host: k3s-node-1
  port: 1883
  user: FOO
  password: "{FRIGATE_MQTT_PASSWORD}"

detectors:
  coral:
    type: edgetpu
    device: pci:0

ffmpeg:
  hwaccel_args: preset-intel-qsv-h264
  input_args: preset-rtsp-generic
  output_args:
    record: preset-record-ubiquiti

objects:
  track:
    - person
    - bicycle
    - car
    - motorcycle
    - cat
    - dog

record:
  enabled: true
  # retain:
  #   days: 3
  #   mode: motion
  # alerts:
  #   retain:
  #     days: 30
  # detections:
  #   retain:
  #     days: 30
go2rtc:
  streams:
    camera1:
      - rtsp://{FRIGATE_CAM1_CREDENTIAL}@192.168.x.x:554/s0#video=h264#hardware
    camera2:
      - rtsp://{FRIGATE_CAM2_CREDENTIAL}@192.168.x.x:554/s0#video=h264#hardware
    camera3:
      - rtsp://{FRIGATE_CAM3_CREDENTIAL}@192.168.x.x:554/s0#video=h264#hardware
    camera4:
      - rtsp://{FRIGATE_CAM4_CREDENTIAL}@192.168.x.x:554/s0#video=h264#hardware
    camera5:
      - rtsp://{FRIGATE_CAM4_CREDENTIAL}@192.168.x.x:554/s0#video=h264#hardware
    camera6:
      - rtsp://{FRIGATE_CAM4_CREDENTIAL}@192.168.x.x:554/s0#video=h264#hardware

# Required
cameras:
  camera1:
    enabled: True
    # record:
    #   alerts:
    #     retain: {}
    #   detections:
    #     retain: {}
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera1
          roles:
            - detect
            - record

    # motion: {}
    objects:
      filters:
        person:
          mask:
            - 0.874,0.374,0.873,0.417,0.894,0.423,0.894,0.371
            - 0.071,0.318,0.071,0.355,0.086,0.355,0.086,0.318
  camera2:
    # record:
    #   alerts:
    #     retain: {}
    #   detections:
    #     retain: {}
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera2
          roles:
            - detect
            - record

  camera3:
    # record:
    #   alerts:
    #     retain: {}
    #   detections:
    #     retain: {}
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera3
          roles:
            - detect
            - record
    objects:
      track:
        - person
        - dog

  camera4:
    # record:
    #   alerts:
    #     retain: {}
    #   detections:
    #     retain: {}
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera4
          roles:
            - detect
            - record
    objects:
      track:
        - person
        - dog

  camera5:
    # record:
    #   alerts:
    #     retain: {}
    #   detections:
    #     retain: {}
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera5
          roles:
            - detect
            - record

  camera6:
    # record:
    #   alerts:
    #     retain: {}
    #   detections:
    #     retain: {}
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/camera6
          roles:
            - detect
            - record
    objects:
      track:
        - person
        - dog

version: 0.15-1
semantic_search:
  enabled: true
  reindex: false
  model_size: large

I’ve got an i5-8500 CPU, 32 GB of ram, using an M.2 Coral. Running frigate through docker (compose) I’m getting no logs when a whole machine crash occurs, the entire system freezes and i have to physically power cycle it (nothing in the logs, no local console response, no ssh response).

I’m running 6 ubiquiti G3 cameras at 1080p (I think 10 fps) in stand alone mode (using go2rtc).

I recently tweaked the compose file. I added

  • /dev/dri/card1
  • moved to LIBVA_DRIVER_NAME=i965
  • added input_args: preset-rtsp-generic

I will jinx myself with this, but I’ve had 3 days of uptime now.

Very interesting! Could you probably share your compose file and config file?

The fix does not work. Microcode version 3.2017 was suppose to have a workaround. I have tried upto version 3.2025 which is latest. But still freezing. Intel did provide microcode updates to motherboard vendors to update their bios. I can not find a bios for my motherboard from 2016. The vendors website under bios is blank. From what I understand, the fix was just a workaround. The CPU is faulty in my eyes.

Maybe the solution is to indeed upgrade drivers (mesa?).

A quick Google search seemed to indicate that worked for some users with the Failed to reset GuC messages.

Hi all, I’m also dealing with this issue, and I’m running out of solutions to try… Any other ideas?

My machine is an Intel J5005 with integrated graphics, running Debian 12 with 6.1 kernel and a PCIe Coral TPU. Frigate is running as Home Assistant add-on. The only way to get my system stable is by removing my cameras from frigate.yaml; as soon as I add one, the crashes start occurring every 6 to 24 hours.

Things I’ve tried so far:

  • Docker image instead of Home Assistant add-on
  • Run Docker privileged
  • Increased shm_size to 1024mb in Docker
  • 6.11 (backported) kernel (seemed to worsen the crashes)
  • Frigate Full Access
  • Frigate Beta (15.4)
  • CPU detector
  • Coral (PCIe) detector
  • hwaccell_args: " "
  • hwaccell_args: preset-vaapi
  • hwaccell_args: preset-intel-qsv-h264
  • i965 driver (with vaapi HW acceleration)

Still on my list to try are an older Frigate version (0.13?) and a yolo model for detection. Any other tips to try are very welcome!

I got k3s on debian 6.15 with Intel Arc A380, got the whole node crash after 30-60 minutes using version 0.14. Xeon server, not arm64

Im not sure what Debian 6.15 is. Debian 12 with a 6.15 kernel? I think only 6.10 or 6.11 is supported. Why does your ffmpeg config look wierd? you have some things double dashed. Should you still be using vaapi with Arc? more likely preset-intel-qsv-h264. Is that first camera supposed to have a diff port than the rest? Your model is set to 640x640, but your detect is set to 1920x1080 in your camera config. big gap. Youre using your main stream to detect at full resolution and framerate? Should probably try to use a substream with a lower resolution and framerate to see if that makes a difference. I dont see what youre detecting either, but that could just be you left it out.

You might want to go over your config, I can run 15b3 stable in K3s 1.30 on a NUC with: (No im not using Arc, Im using 11th gen UHD integrated, but Im pretty sure intel is intel)

    detectors:
      ov_0:
        type: openvino
        device: GPU
      ov_1:
        type: openvino
        device: GPU

    model:
      model_type: yolonas
      width: 640
      height: 640
      input_pixel_format: bgr
      input_tensor: nchw
      path: /config/yolo_nas_s.onnx
      labelmap_path: /labelmap/coco-80.txt

    ffmpeg:
      global_args: -hide_banner -loglevel warning
      hwaccel_args: preset-intel-qsv-h264
      output_args:
        detect: -f rawvideo -pix_fmt yuv420p
        record: preset-record-generic-audio-aac

    detect:
      width: 640
      height: 480
      fps: 5
      enabled: true
      max_disappeared: 25
      stationary:
        interval: 25
        threshold: 50

    go2rtc:
      streams:
        Entrance:
          - rtsp://user:pass@Entrancel.example.com:554/cam/realmonitor?channel=1&subtype=0
        Entrance_sub:
          - rtsp://user:pass@Entrancel.example.com:554/cam/realmonitor?channel=1&subtype=1

    cameras:
      Entrance:
        enabled: True
        ffmpeg:
          inputs:
            - path: rtsp://127.0.0.1:8554/Entrance_sub
              input_args: preset-rtsp-restream
              roles:
                - audio
                - detect
            - path: rtsp://127.0.0.1:8554/Entrance
              input_args: preset-rtsp-restream
              roles:
                - record
        objects:
          track:
            - person

Side Question for all of you: I have been running the yolov8s since Dec '23 without issue

Are you running 0.13 or 0.12?

@Strux-DK its not you, you just picked a bad day.

I literally just ran this yesterday to generate an 8s model to upgrade from the 8n I was using and it worked flawlessly. Today, I’m getting the same errors you are. (tried 3x)

It looks like @aeozyalcin 's awesome colab may have broken?

That said, since I just generated it yesterday, maybe give this one a try? yolov8s.zip

Followed the advice of @Pingbo for using the yolov8 model as well. Been running for a couple weeks without any issues. My detections are more reliable as well, so that is an added bonus. Thanks @Pingbo

@Pingbo Thank you for the help and the detailed instructions! I’ve been using yolov8n for nearly two weeks now without any crashing on beta2.

I think the issue might indeed be caused by the combination of the bundled ssdlite_mobilenet_v2 model and Skylake-gen OpenVINO – is this perhaps worth documenting somewhere?

I have same issue on K3s on Debian with i3-6100U. VAAPI HW encode/decode + OpenVINO setup in config.

with obj detection turned off its rock solid. if I turn on obj detection for a single object on a single camera, whole node hangs within 3 days.

Those of us using the official helm chart cant update go2rtc or ffmpeg with custom versions.