I’m seeing frequent crashes and strange things in the log now.
This is running 4 cameras @ 1080p 5fps and 1 camera @ 2048*1536 5fps on the latest beta version of Frigate. It runs just fine for around 15 minutes, and then several (but not all) cameras freeze and I see gibberish in the log. The frozen cameras do not recover and require a restart of Frigate.
One thing I noticed is that detection_fps reported by Frigate appears to be locked to the sum of detection_fps of the cameras when they failed, and then increases from that figure if motion is detected on cameras that did not fail. In the example below, no motion is being detected by the working cameras:
{"south":{"camera_fps":5.0,"capture_pid":61,"detection_fps":0.0,"pid":51,"process_fps":5.0,"skipped_fps":0.0},"detection_fps":15.1,"detectors":{"coral":{"detection_start":0.0,"inference_speed":8.09,"pid":45}},"front_gate":{"camera_fps":5.0,"capture_pid":55,"detection_fps":4.8,"pid":48,"process_fps":4.5,"skipped_fps":0.0},"garage_front":{"camera_fps":5.1,"capture_pid":56,"detection_fps":0.0,"pid":49,"process_fps":5.1,"skipped_fps":0.0},"overview":{"camera_fps":5.0,"capture_pid":67,"detection_fps":2.5,"pid":53,"process_fps":4.8,"skipped_fps":0.0},"porch_beta":{"camera_fps":5.1,"capture_pid":63,"detection_fps":7.8,"pid":52,"process_fps":4.7,"skipped_fps":0.0},"rear_garden_overview":{"camera_fps":5.1,"capture_pid":71,"detection_fps":0.0,"pid":54,"process_fps":5.1,"skipped_fps":0.0}}
I’m trying to work out what exactly causes the issue (it’s likely a change I’ve made), but here’s what I’m seeing in the log:
in File r"u/nu
s File r/"li/bu/spry/tlhiobn/3p.8y/tthhorne3a.d8i/ntgh.rpeya"d, line i932n in g_.bpoyo"ts, line t932r in ap__bionontesrt
r File a"/pu_sirn/nleirb
/p File y"/thusorn3/.li8b//tphyrtehaodnin3.g8./ptyh"re, line a890d in ing_.bpoyo"tst, line ra890p in
_
Thread 0xb00007fa31cb7d700o (most recent call first):
o File ts"t/orpatp/
fr
igThread 0xate00007fa31cb7d700/ (most recent call first):
fr File ig"at/eo/pvti/dferoi.gpayte"/f, line r201i in grautne
/ File v"i/dueso.rp/yl"ib, line /201p in ytrhuonn
3. File 8"/t/hursera/dliinbg/.ppyyt"h, line o932n in 3_.b8o/otthsrteraadp_iinngne.rp
y File "", line /932u in sr/_lbiobo/tpystthroanp3_.i8n/ntehrr
e File ad"i/ngu.spry/l"i, line b890/ in p_ybtohootns3t.r8a/pt
h
rThread 0xea00007fa31f37e700d (most recent call first):
in File g.p"y"/o, line p890t in /_frbiogoattster/afpr
i
Thread 0xg00007fa31f37e700a (most recent call first):
t File e/"l/oogp.tp/fyr"ig, line a67t in e/rufnr
i File g"a/tues/rlo/gl.ipby/"py, line t67h in onr3u.n
8 File /"t/hursre/aldiibn/gp.yptyh"o, line n9323. in 8_/btoohtrsetardaipn_gin.npeyr"
, line 932 File in "/_ubosort/sltirba/pp_yitnhnoen3r
.8 File /t"/hurseard/ilnibg/.ppyy"t, line h890o in n_3b.o8o/ttshrteradaipng
.
pThread 0x00007fa34cfab740y (most recent call first):
" File , line "890/ in u_sbro/oltisbt/rpaypt
ho
nThread 0x3.00007fa34cfab7408 (most recent call first):
/t File h"r/eusard/ilnigb/.pyptyh"on3, line .10278 in /t_hwraeaidti_nfgo.pr_y"tst, line a1027t in e__wlaiotc_kf
or File _"t/sutsart/el_ilbo/cpykt
h File o"n/3u.8sr//tlhireba/dpyitnhong3..8p/yt"h, line r1011e in adjionign.
py File "", line /1011o in ptj/ofiring
at File e/"fr/oipgta/tfer/ivgiadtee/of.rpiyg"ate, line /241 in vicadepot.uprye"_c, line a241 in mecraap
tu File re_"ca/muersar
/li File b/"p/yutshorn/l3i.b8//pymtuholnt3i.p8r/ocmeuslstiiprnogc/preoscseisnsg/process.py", line 108 in run
File "/usr/lib/python3..8p/ym"ult, line i108p in rorcuesns
in File g/"p/ruoscre/slsi.bpy/"p, line y315t in ho_nb3o.o8t/smturalpt
ipro File ce"s/suisngr//plriob/cpeystsh.opny3".8, line /315m in u_lbtoiportosctersasipn
g File /po"p/euns_rf/loirbk/.ppyy"tho, line n75 in 3._8la/umnuchl
tip File r"oc/eusssri/nlgi/bp/oppyetnh_ofonr3k..8p/myu"lt, line i75p in ro_clesasiunngc/hp
op File en"_/ufosrrk/.lpiyb"/py, line 19t in ho_n_3i.n8it/_m_
ult File ipr"oc/eusssri/nlgi/pbo/ppeynt_hfono3r.k8./pmyul"t, line i19p in r_oc_esisniintg_/_c
o File nte"xt/.upsyr"/li, line b277/ in py_tPhoopne3n.
8/m File ul"ti/pursorc/elsisbi/npgy/tchoonnt3ex.t8./mpuyl", line t277i in pro_cPoepsesnin
g/ File c"o/nutserx/tl.ipby"/py, line t224h in on_3P.o8p/emnu
lt File i"p/roucsers/sliinbg/p/yctohnotne3x.t8.p/ym"ul, line ti224p in r_oPcoepsesni
ng File /"p/rusocre/ssl.ipby/"py, line t121h in on3s.ta8r/tm
ul File ti"p/roopcte/sfsriignagt/ep/rforciegsast.ep/ya"p, line p121. in psyta"rt, line
161 in File st"a/rotp_tc/farmiegraat_ec/afprtiugratee_/parppoc.epys"s, line e161s
in s File ta"r/to_ptc/afmreirgaa_tcea/pftruirgea_tper/oacpeps.psy"es, line
202 File in "s/toaprtt/
fr File iga"t/eo/fptr/ifgraiteg/aatpep/.fpryi"ga, line t202e in /_s_tmaairnt_
_ File .p"y/"opt, line /15fr in i<gamtoed/ulfer>i
gat File e"//_u_msra/inl_i_b./ppyyt"ho, line n153 in .<8m/orduunlpey>.
p File y""/, line 87u in sr_/lruinb_/cpoytdheo
n3 File .8"//ruusnrp/y.plyib"/p, line yt87h in o_nr3un._8c/roudnep
y. File py""/, line u194s in r/_lirbun/_pmyotdhuolne3_.a8s/_rmuanipny
.py", line 194 in _run_module_as_main
Fatal Python error: Bus error
Thread 0x00007fa33b43c700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 302 in wait
File "/usr/lib/python3.8/multiprocessing/queues.py", line 227 in _feed
File "/usr/lib/python3.8/threading.py", line 870 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap
Current thread 0x00007fa31a37c700 (most recent call first):
File "/opt/frigate/frigate/video.py", line 115 in capture_frames
File "/opt/frigate/frigate/video.py", line 227 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap
Thread 0x00007fa31cb7d700 (most recent call first):
File "/opt/frigate/frigate/video.py", line 201 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap
Thread 0x00007fa31f37e700 (most recent call first):
File "/opt/frigate/frigate/log.py", line 67 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap
Thread 0x00007fa34cfab740 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 1027 in _wait_for_tstate_lock
File "/usr/lib/python3.8/threading.py", line 1011 in join
File "/opt/frigate/frigate/video.py", line 241 in capture_camera
File "/usr/lib/python3.8/multiprocessing/process.py", line 108 in run
File "/usr/lib/python3.8/multiprocessing/process.py", line 315 in _bootstrap
File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 75 in _launch
File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 19 in __init__
File "/usr/lib/python3.8/multiprocessing/context.py", line 277 in _Popen
File "/usr/lib/python3.8/multiprocessing/context.py", line 224 in _Popen
File "/usr/lib/python3.8/multiprocessing/process.py", line 121 in start
File "/opt/frigate/frigate/app.py", line 161 in start_camera_capture_processes
File "/opt/frigate/frigate/app.py", line 202 in start
File "/opt/frigate/frigate/__main__.py", line 15 in <module>
File "/usr/lib/python3.8/runpy.py", line 87 in _run_code
File "/usr/lib/python3.8/runpy.py", line 194 in _run_module_as_main