[Support]: HA crashes when starting Frigate
See original GitHub issueDescribe the problem you are having
Hey
because cats and birds aren’t detected at a resolution of 896x512 with the ext stream, I tried using the main stream with a resolution of 2560x1440. But everytime I want to start the addon, HA crashes and I have to restart it by cutting the power. I also added the line gpu_mem= 384 in the config.txt.
The logs aren’t helping me.
Can somebody help me?
Version
0.11.1-2EADA21
Frigate config file
detectors:
coral:
type: edgetpu
device: usb
mqtt:
host: 192.168.178.67
user: mqtt-user
password: 2883
ffmpeg:
hwaccel_args: -c:v h264_v4l2m2m
cameras:
reolink:
rtmp:
enabled: false
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- +genpts+discardcorrupt
- -flags
- low_delay
- -strict
- experimental
- -analyzeduration
- 1000M
- -probesize
- 1000M
- -rw_timeout
- "5000000"
inputs:
- path: http://192.168.178.50/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=[PW]
roles:
- record
- rtmp
- detect
detect:
width: 2560
height: 1440
fps: 5
snapshots:
enabled: true
timestamp: false
bounding_box: true
required_zones:
- vordergarten
retain:
default: 5
record:
enabled: true
events:
retain:
default: 5
required_zones:
- vordergarten
motion:
mask:
- 0,512,836,512,829,432,789,334,697,315,634,371,580,400,536,364,475,324,416,300,324,312,281,405,188,391,115,349,71,271,28,196,0,124
- 0,0,896,0,896,62,781,119,699,128,560,114,484,125,336,162,163,199,0,230
zones:
vordergarten:
coordinates: 92,322,149,388,216,383,265,400,304,360,360,323,410,301,472,311,512,345,561,400,607,370,669,335,739,324,845,388,896,323,896,145,825,153,759,145,670,131,580,116,489,135,367,165,281,177,126,204,124,234,51,261
objects:
track:
- person
- cat
- bicycle
- bird
Relevant log output
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-11-25 17:35:14] frigate.app INFO : Starting Frigate (0.11.1-2eada21)
[2022-11-25 17:35:14] frigate.app INFO : Creating directory: /tmp/cache
Starting migrations
[2022-11-25 17:35:14] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2022-11-25 17:35:14] peewee_migrate INFO : There is nothing to migrate
[2022-11-25 17:35:14] frigate.app INFO : Output process started: 217
[2022-11-25 17:35:14] ws4py INFO : Using epoll
[2022-11-25 17:35:14] detector.coral INFO : Starting detection process: 216
[2022-11-25 17:35:14] frigate.edgetpu INFO : Attempting to load TPU as usb
[2022-11-25 17:35:14] frigate.app INFO : Camera processor started for reolink: 223
[2022-11-25 17:35:14] frigate.app INFO : Capture process started for reolink: 227
[2022-11-25 17:35:15] ws4py INFO : Using epoll
[2022-11-25 17:35:21] frigate.edgetpu INFO : TPU found
[2022-11-25 17:35:34] watchdog.reolink INFO : No frames received from reolink in 20 seconds. Exiting ffmpeg...
[2022-11-25 17:35:34] watchdog.reolink INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-25 17:36:05] watchdog.reolink INFO : FFmpeg didnt exit. Force killing...
[2022-11-25 17:36:05] frigate.video ERROR : reolink: Unable to read frames from ffmpeg process.
[2022-11-25 17:36:05] frigate.video ERROR : reolink: ffmpeg process is not running. exiting capture thread...
[2022-11-25 17:36:05] frigate.record WARNING : Discarding a corrupt recording segment: reolink-20221125173527.mp4
[2022-11-25 17:36:15] watchdog.reolink ERROR : Ffmpeg process crashed unexpectedly for reolink.
[2022-11-25 17:36:15] watchdog.reolink ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-25 17:36:15] ffmpeg.reolink.detect ERROR : Error while decoding stream #0:0: Resource temporarily unavailable
[2022-11-25 17:36:35] watchdog.reolink INFO : No frames received from reolink in 20 seconds. Exiting ffmpeg...
[2022-11-25 17:36:35] watchdog.reolink INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-25 17:37:05] watchdog.reolink INFO : FFmpeg didnt exit. Force killing...
[2022-11-25 17:37:05] frigate.video ERROR : reolink: Unable to read frames from ffmpeg process.
[2022-11-25 17:37:05] frigate.video ERROR : reolink: ffmpeg process is not running. exiting capture thread...
[2022-11-25 17:37:05] frigate.record WARNING : Discarding a corrupt recording segment: reolink-20221125173631.mp4
[2022-11-25 17:37:15] watchdog.reolink ERROR : Ffmpeg process crashed unexpectedly for reolink.
[2022-11-25 17:37:15] watchdog.reolink ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-25 17:37:15] ffmpeg.reolink.detect ERROR : Error while decoding stream #0:0: Resource temporarily unavailable
FFprobe output from your camera
-
Frigate stats
{"detection_fps":0.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":10.0,"pid":216}},"reolink":{"camera_fps":0.0,"capture_pid":227,"detection_fps":0.0,"pid":223,"process_fps":0.0,"skipped_fps":0.0},"service":{"latest_version":"0.11.1","storage":{"/dev/shm":{"free":810.0,"mount_type":"tmpfs","total":810.3,"used":0.3},"/media/frigate/clips":{"free":204634.1,"mount_type":"ext4","total":235527.2,"used":21282.0},"/media/frigate/recordings":{"free":204634.6,"mount_type":"ext4","total":235527.2,"used":21281.5},"/tmp/cache":{"free":809.4,"mount_type":"tmpfs","total":810.3,"used":0.9}},"temperatures":{},"uptime":10,"version":"0.11.1-2eada21"}}
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Network connection
Wired
Camera make and model
Reolink RLC-811A
Running on Rasbperry Pi 4 2gb
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:28
Top Results From Across the Web
Frigate NVR Add On Crashing Supervisor
Recently, however, my Frigate NVR has been crashing the HA supervisor. HA restarts and will quickly end up restarting again.
Read more >Frigate stops processing, but crash is not detected by HA ...
Describe the bug Frigate stops processing, but this is not detected by HA supervisor, most likely because the container doesn't stop.
Read more >Frigate in HA - constant crashes : r/homeassistant - Reddit
I've been trying to get frigate to work with HA for the last couple of days and keep failing again and again with...
Read more >Frigate Crashing :: No Man's Sky General Discussion
Anyone still getting freezes/crashes when interacting with frigate missions or the fleet list? It's getting kind of annoying right now.
Read more >[SUPPORT] blakeblackshear - Frigate - Page 9
I'm trying to get the new frigate RC4 running and I just can't seem to get it. I pulled that tag and it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try 1024 and see what happens
I believe so but I of course can’t say for sure.