Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support]: Fatal Python error: Bus error #6832

Closed
zestysoft opened this issue Jun 18, 2023 · 4 comments
Closed

[Support]: Fatal Python error: Bus error #6832

zestysoft opened this issue Jun 18, 2023 · 4 comments

Comments

@zestysoft
Copy link

zestysoft commented Jun 18, 2023

Describe the problem you are having

Somewhat randomly, frigate will loose all camera inputs but otherwise function fine. Logs show a bus error, followed by a bunch of threading debug output (see below).

Version

ghcr.io/blakeblackshear/frigate:0.12.1

Frigate config file

(password / lines that have rtmp or rtsp redacted)
detectors:
  coral:
    type: edgetpu
    device: usb
mqtt:
  host: ha-mqtt
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: frigate
  stats_interval: 60
database:
  path: /db/frigate.db
logger:
  default: info
ffmpeg:
  global_args: -hide_banner -loglevel warning
  hwaccel_args:
    - -hwaccel
    - qsv
    - -qsv_device
    - /dev/dri/renderD128
  output_args:
    record: preset-record-generic-audio-copy
objects:
  track:
    - person
    - dog
    - cat
    - bird
    - bicycle
  filters:
    person:
      min_area: 5000
      max_area: 100000
  enabled: False
birdseye:
  enabled: True
  width: 1024
  height: 768
  quality: 1
  mode: continuous
snapshots:
  enabled: True
cameras:
  side-gate-camera:
    ffmpeg:
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
      inputs:
          roles:
            - record
          roles:
            - detect
    detect:
      width: 640
      height: 480
      fps: 15
    record:
      enabled: True
      retain:
        days: 2
        mode: all
      events:
        retain:
          default: 14
          mode: active_objects
    mqtt:
      enabled: True
      timestamp: False
      bounding_box: False
      crop: True
      height: 500
      quality: 100
      required_zones: []
    zones:
      side-gate-path-zone:
        coordinates: 0,480,450,480,314,49,162,53
        objects:
          - person
          - dog
          - cat
          - bird
  backyard-camera:
    ffmpeg:
      input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rw_timeout 5000000 -use_wallclock_as_timestamps 1 -f live_flv
      inputs:
          roles:
            - record
          roles:
            - detect
    detect:
      width: 640
      height: 480
      fps: 15
    record:
      enabled: True
      retain:
        days: 2
        mode: all
      events:
        retain:
          default: 14
          mode: active_objects
    mqtt:
      enabled: True
      timestamp: False
      bounding_box: False
      crop: True
      height: 500
      quality: 100
      required_zones: []
    zones:
      backyard-flat-zone:
        coordinates: 0,480,611,480,559,229,0,91
        objects:
          - person
          - dog
          - cat
          - bird
      backyard-hill-zone:
        coordinates: 0,136,558,282,547,38,213,0
        objects:
          - person
          - dog
          - cat
          - bird
  front-yard-camera:
    ffmpeg:
      inputs:
          roles:
            - record
          roles:
            - detect
    detect:
      width: 640
      height: 480
      fps: 15
    record:
      enabled: True
      retain:
        days: 2
        mode: all
      events:
        retain:
          default: 14
          mode: active_objects
    mqtt:
      enabled: True
      timestamp: False
      bounding_box: False
      crop: True
      height: 500
      quality: 100
      required_zones: []
    motion:
      mask:
        - 364,63,640,146,640,0,404,0,140,0,138,33
        - 640,320,593,183,568,179,588,394
        - 35,480,256,480,58,262,0,302,0,390
    zones:
      front-yard-path-zone:
        coordinates: 175,327,273,288,399,166,285,123,169,181,115,292
        objects:
          - person
          - dog
          - cat
          - bird
      front-yard-driveway-zone:
        coordinates: 346,107,129,56,147,213
        objects:
          - person
          - dog
          - cat
          - bird
          - bicycle
      front-yard-sidewalk-zone:
        coordinates: 558,227,556,141,132,45,139,95
        objects:
          - person
          - cat
          - dog
          - bird
  front-camera:
    ffmpeg:
      inputs:
          roles:
            - record
          roles:
            - detect
    detect:
      width: 1920
      height: 536
      fps: 15
    record:
      enabled: True
      retain:
        days: 2
        mode: all
      events:
        retain:
          default: 14
          mode: active_objects
    mqtt:
      enabled: True
      timestamp: False
      bounding_box: False
      crop: True
      height: 500
      quality: 100
      required_zones: []

Relevant log output

2023-06-17 23:35:11.423709697  [INFO] Starting Frigate...
2023-06-17 23:35:12.376518066  [2023-06-17 23:35:12] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-06-17 23:35:12.419235066  [2023-06-17 23:35:12] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-06-17 23:35:12.421031373  [2023-06-17 23:35:12] peewee_migrate                 INFO    : Starting migrations
2023-06-17 23:35:12.521724175  [2023-06-17 23:35:12] peewee_migrate                 INFO    : There is nothing to migrate
2023-06-17 23:35:12.535820296  [2023-06-17 23:35:12] detector.coral                 INFO    : Starting detection process: 428
2023-06-17 23:35:12.537654785  [2023-06-17 23:35:12] frigate.app                    INFO    : Output process started: 430
2023-06-17 23:35:12.542290974  [2023-06-17 23:35:12] frigate.app                    INFO    : Camera processor started for side-gate-camera: 436
2023-06-17 23:35:12.546170872  [2023-06-17 23:35:12] frigate.app                    INFO    : Camera processor started for backyard-camera: 437
2023-06-17 23:35:12.554753115  [2023-06-17 23:35:12] frigate.app                    INFO    : Camera processor started for front-yard-camera: 438
2023-06-17 23:35:12.558544156  [2023-06-17 23:35:12] frigate.app                    INFO    : Camera processor started for front-camera: 439
2023-06-17 23:35:12.558634790  [2023-06-17 23:35:12] frigate.app                    INFO    : Capture process started for side-gate-camera: 440
2023-06-17 23:35:12.562589334  [2023-06-17 23:35:12] frigate.app                    INFO    : Capture process started for backyard-camera: 443
2023-06-17 23:35:12.567191441  [2023-06-17 23:35:12] frigate.app                    INFO    : Capture process started for front-yard-camera: 447
2023-06-17 23:35:12.571151527  [2023-06-17 23:35:12] frigate.app                    INFO    : Capture process started for front-camera: 452
2023-06-17 23:35:13.502666635  [2023-06-17 23:35:13] frigate.util                   ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
2023-06-17 23:35:13.502670374  
2023-06-17 23:35:15.191147587  [2023-06-17 23:35:12] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-06-17 23:35:15.210117455  [2023-06-17 23:35:15] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-06-17 23:36:22.929348076  [2023-06-17 23:36:22] frigate.util                   ERROR   : Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied)
2023-06-17 23:36:22.929351981  
2023-06-18 02:21:58.460455392  [2023-06-18 02:21:58] frigate.output                 WARNING : Unable to copy frame side-gate-camera1687054864.900349 to birdseye.
2023-06-18 03:58:44.978540800  Fatal Python error: Bus error
2023-06-18 03:58:44.978550076  
2023-06-18 03:58:44.978555242  Thread 0x00007f2b920a76c0 (most recent call first):
2023-06-18 03:58:44.978748758    File "/usr/lib/python3.9/threading.py", line 312 in wait
2023-06-18 03:58:44.979042356    File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
2023-06-18 03:58:44.979251260    File "/usr/lib/python3.9/threading.py", line 892 in run
2023-06-18 03:58:44.979531217    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:44.979806430    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:44.979845806  
2023-06-18 03:58:44.979850707  Thread 0x00007f2b988a86c0 (most recent call first):
2023-06-18 03:58:44.980018721    File "/opt/frigate/frigate/log.py", line 86 in run
2023-06-18 03:58:44.980298002    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:44.980553969    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:44.980557902  
2023-06-18 03:58:44.980594794  Current thread 0x00007f2bb61fb6c0 (most recent call first):
2023-06-18 03:58:44.980845512    File "/opt/frigate/frigate/video.py", line 179 in capture_frames
2023-06-18 03:58:44.981074046    File "/opt/frigate/frigate/video.py", line 394 in run
2023-06-18 03:58:46.983235899    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.983246213    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.983250950  
2023-06-18 03:58:46.983256148  Thread 0x00007f2bb11f96c0 (most recent call first):
2023-06-18 03:58:46.983269666    File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
2023-06-18 03:58:46.983276262    File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
2023-06-18 03:58:46.983309025    File "/opt/frigate/frigate/video.py", line 253 in run
2023-06-18 03:58:46.983315959    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.983321125    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.983325041  
2023-06-18 03:58:46.983330521  Thread 0x00007f2bab37f6c0 (most recent call first):
2023-06-18 03:58:46.983334951    File "/opt/frigate/frigate/log.py", line 86 in run
2023-06-18 03:58:46.983384276    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.983389304    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.983423276  
2023-06-18 03:58:46.983428032  Thread 0x00007f2bc2558740 (most recent call first):
2023-06-18 03:58:46.983432934    File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
2023-06-18 03:58:46.983437912    File "/usr/lib/python3.9/threading.py", line 1033 in join
2023-06-18 03:58:46.983442769    File "/opt/frigate/frigate/video.py", line 429 in capture_camera
2023-06-18 03:58:46.983447856    File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
2023-06-18 03:58:46.983452819    File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
2023-06-18 03:58:46.983492032    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
2023-06-18 03:58:46.983497284    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
2023-06-18 03:58:46.983502065    File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
2023-06-18 03:58:46.983507212    File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
2023-06-18 03:58:46.983511930    File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
2023-06-18 03:58:46.983516916    File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
2023-06-18 03:58:46.983615526    File "/opt/frigate/frigate/app.py", line 383 in start
2023-06-18 03:58:46.983624563    File "/opt/frigate/frigate/__main__.py", line 16 in <module>
2023-06-18 03:58:46.983632197    File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
2023-06-18 03:58:46.983640460    File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
2023-06-18 03:58:46.983648703  Fatal Python error: Bus error
2023-06-18 03:58:46.983654964  
2023-06-18 03:58:46.983660220  Thread 0x00007f2b920a76c0 (most recent call first):
2023-06-18 03:58:46.983664964    File "/usr/lib/python3.9/threading.py", line 312 in wait
2023-06-18 03:58:46.983669808    File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
2023-06-18 03:58:46.983674678    File "/usr/lib/python3.9/threading.py", line 892 in run
2023-06-18 03:58:46.983679604    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.983684149    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.983687754  
2023-06-18 03:58:46.983692226  Thread 0x00007f2b988a86c0 (most recent call first):
2023-06-18 03:58:46.983696667    File "/opt/frigate/frigate/log.py", line 86 in run
2023-06-18 03:58:46.983760179    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.983764917    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.983768670  
2023-06-18 03:58:46.983773150  Current thread 0x00007f2bb61fb6c0 (most recent call first):
2023-06-18 03:58:46.983777624    File "/opt/frigate/frigate/video.py", line 179 in capture_frames
2023-06-18 03:58:46.983781993    File "/opt/frigate/frigate/video.py", line 394 in run
2023-06-18 03:58:46.983787279    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.983791993    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.983795671  
2023-06-18 03:58:46.983800185  Thread 0x00007f2bb11f96c0 (most recent call first):
2023-06-18 03:58:46.983804961    File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
2023-06-18 03:58:46.983809940    File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
2023-06-18 03:58:46.983814431    File "/opt/frigate/frigate/video.py", line 253 in run
2023-06-18 03:58:46.983881687    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.983886519    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.983890135  
2023-06-18 03:58:46.983894544  Thread 0x00007f2bab37f6c0 (most recent call first):
2023-06-18 03:58:46.983898910    File "/opt/frigate/frigate/log.py", line 86 in run
2023-06-18 03:58:46.983904041    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_Fatal Python error: inBus errorn
2023-06-18 03:58:46.983907822  
2023-06-18 03:58:46.983911489  er
2023-06-18 03:58:46.983916193    File "/uThread 0xs00007f2b920a76c0r/ (most recent call first):
2023-06-18 03:58:46.983921802  li  File b/"py/tuhsorn3/.l9i/bt/hrpeyatdihnogn.3p.y9/threadin"g, line .912p in y_b"o, line ot312s in trwaapi
2023-06-18 03:58:46.983925620  t
2023-06-18 03:58:46.983929562  Thread 0x
2023-06-18 03:58:46.983934078  00007f2bc2558740  File  (most recent call first):
2023-06-18 03:58:46.983939817    File ""//uussrr//lliibb//pyptyhtohnon3.39./9/mtuhlrteiadpirnogc.epys"s, line i1049n in g_/wqaiute_ufeosr_.tpsyt"at, line e233_ in l_ocfke
2023-06-18 03:58:46.983943567  e  File d"
2023-06-18 03:58:46.983948948  /  File us"r//ulisbr//lib/pyptythhoonn33..99//thtrheraediandgi.npgy"., line p1033y in "j, line oi892n in 
2023-06-18 03:58:46.983952886  ru  File n"
2023-06-18 03:58:46.983958338  /  File op"t//ufsrir/ligba/tpe/yftrhiognat3e./9v/itdheor.epayd"i, line n429 in gc.appyt"ur, line e954_ in c_abmeoroat
2023-06-18 03:58:46.983962823  st  File r"a/pu_sirn/lniebr/
2023-06-18 03:58:46.983968338  p  File yt"h/ouns3r/lib/p.y9t/hmounlt3i.p9r/otchesrseiandgi/pnrgo.cpesys"., line p912y" in , line _108b in oruont
2023-06-18 03:58:46.983972344  s  File t"/ruaspr/
2023-06-18 03:58:46.983976046  l
2023-06-18 03:58:46.983980490  iThread 0xb/00007f2b988a86c0p (most recent call first):
2023-06-18 03:58:46.983985963  yt  File ho"n/3o.9p/tm/uflrtiipgraotcees/sfirngi/gpartocee/slso.gp.y"p, line y315" in , line _86bo in ortusnt
2023-06-18 03:58:46.983989796  ra  File p"
2023-06-18 03:58:46.983995247  /usr  File /"l/ib/pythouns3r./9li/bt/hpryetahodni3n.g9/.mpuyl"ti, line p954r in o_cebsosoitnsg/tproappe_n_ifnoner
2023-06-18 03:58:46.983999648  r  File k."p/yu"s, line r71/ in l_liabu/ncphy
2023-06-18 03:58:46.984004620  tho  File n"3/.us9r//tlhirbe/paydtihnogn3..p9y/"mu, line l912ti in p_rbooceostssintgr/apopp
2023-06-18 03:58:46.984092996  e
2023-06-18 03:58:46.984100418  Current thread 0x00007f2bb61fb6c0 (most recent call first):
2023-06-18 03:58:46.984106759    File "n/_ofpotr/kf.rpiyg"a, line t19e in /_f_riingiatt_e_/
2023-06-18 03:58:46.984115014  vid  File e"o/.upsyr"/, line l179i in bc/appyttuhroen_3f.r9a/mmeusl
2023-06-18 03:58:46.984121576  tipr  File o"c/eospsti/nfgr/icgoanttee/xftr.ipgya"t, line e277/ in v_iPdoepoe.np
2023-06-18 03:58:46.984127237  y  File "", line /394u in srru/nl
2023-06-18 03:58:46.984134402  i  File b"//puystrh/olni3b./9p/ython3.9m/utlhtriepardociensgsi.ngp/cyo"nt, line e954xt in ._pby"o, line o224t in s_tProappe_ni
2023-06-18 03:58:46.984139674  nne  File r"
2023-06-18 03:58:46.984147316    File "/u/surs/rl/ilbi/bp/yptyhtohonn33..99//mtuhlrtiepardoicensgs.ipnyg/"p, line r912o in ce_sbso.opty"s, line t121r in aspt
2023-06-18 03:58:46.984152441  ar
2023-06-18 03:58:46.984157760  tThread 0x
2023-06-18 03:58:46.984191469  00007f2bb11f96c0 (most recent call first):
2023-06-18 03:58:46.984200206    File   File "/usr/"l/iobpt//pfyrtighaotne3/.fr9i/gmautle/taippp.rpoyc"e, line s286s in isntagr/ts_cyanmecrhar_ocanpitzuer.e_ppyr"oc, line e261s in swesa
2023-06-18 03:58:46.984205428  i  File t"
2023-06-18 03:58:46.984211752  /o  File p"t//ufrsirg/altie/bf/rpiygtatheo/na3p.p.9p/ym"u, line 383l in tsitparrto
2023-06-18 03:58:46.984218428  cessing/syn  File c"/horpto/fnriizgaet.ep/fyr"ig, line a349te in /w_a_imati
2023-06-18 03:58:46.984225088  n_  File _"./poyp"t, line /16f in r<imgateo/dfurlieg>a
2023-06-18 03:58:46.984231620  te/v  File i"d/euos.rp/yl"i, line b253/ in pryutnh
2023-06-18 03:58:46.984240333  o  File n"3/.u9s/rr/ulnipby/.ppyyt"h, line o87n in 3_.r9u/nt_hcroedaed
2023-06-18 03:58:46.984246707  ing.py", line   File 954 in _bootst"r/aups_ri/nlniebr/
2023-06-18 03:58:46.984254734  p  File y"t/huosnr3/.l9i/br/upnyptyh.opny3"., line 9197/ in t_hrurne_maoddiunleg_.aps_ym"a, line i912n
2023-06-18 03:58:46.984260537   in _bootstrap
2023-06-18 03:58:46.984368107  
2023-06-18 03:58:46.984375847  Thread 0x00007f2bab37f6c0 (most recent call first):
2023-06-18 03:58:46.984383233    File "/opt/frigate/frigate/log.py", line 86 in run
2023-06-18 03:58:46.984390031    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.984396445    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.984401716  
2023-06-18 03:58:46.984409144  Thread 0x00007f2bc2558740 (most recent call first):
2023-06-18 03:58:46.984417446    File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
2023-06-18 03:58:46.984425221    File "/usr/lib/python3.9/threading.py", line 1033 in join
2023-06-18 03:58:46.984433451    File "/opt/frigate/frigate/video.py", line 429 in capture_camera
2023-06-18 03:58:46.984441929    File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
2023-06-18 03:58:46.984450724    File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
2023-06-18 03:58:46.984458757    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
2023-06-18 03:58:46.984465630    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
2023-06-18 03:58:46.984584231    File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
2023-06-18 03:58:46.984592145    File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
2023-06-18 03:58:46.984599428    File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
2023-06-18 03:58:46.984606914    File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
2023-06-18 03:58:46.984615143    File "/opt/frigate/frigate/app.py", line 383 in start
2023-06-18 03:58:46.984621736    File "/opt/frigate/frigate/__main__.py", line 16 in <module>
2023-06-18 03:58:46.984628710    File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
2023-06-18 03:58:46.984635666    File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
2023-06-18 03:58:46.984642510  Fatal Python error: Bus error
2023-06-18 03:58:46.984648111  
2023-06-18 03:58:46.984654631  Thread 0x00007f2b920a76c0 (most recent call first):
2023-06-18 03:58:46.984661140    File "/usr/lib/python3.9/threading.py", line 312 in wait
2023-06-18 03:58:46.984668196    File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
2023-06-18 03:58:46.984676127    File "/usr/lib/python3.9/threading.py", line 892 in run
2023-06-18 03:58:46.984685220    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.984832234    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.984838268  
2023-06-18 03:58:46.984845018  Thread 0x00007f2b988a86c0 (most recent call first):
2023-06-18 03:58:46.984851814    File "/opt/frigate/frigate/log.py", line 86 in run
2023-06-18 03:58:46.984858936    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.984865964    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.984871495  
2023-06-18 03:58:46.984879325  Current thread 0x00007f2bb61fb6c0 (most recent call first):
2023-06-18 03:58:46.984887661    File "/opt/frigate/frigate/video.py", line 179 in capture_frames
2023-06-18 03:58:46.984895371    File "/opt/frigate/frigate/video.py", line 394 in run
2023-06-18 03:58:46.985005395    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.985011222    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.985015217  
2023-06-18 03:58:46.985022538  Thread 0x00007f2bb11f96c0 (most recent call first):
2023-06-18 03:58:46.985030738    File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
2023-06-18 03:58:46.985038272    File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
2023-06-18 03:58:46.985043909    File "/opt/frigate/frigate/video.py", line 253 in run
2023-06-18 03:58:46.985050443    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.985057114    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.985062102  
2023-06-18 03:58:46.985068426  Thread 0x00007f2bab37f6c0 (most recent call first):
2023-06-18 03:58:46.985075098    File "/opt/frigate/frigate/log.py", line 86 in run
2023-06-18 03:58:46.985082208    File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
2023-06-18 03:58:46.985089036    File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
2023-06-18 03:58:46.985094290  
2023-06-18 03:58:46.985100635  Thread 0x00007f2bc2558740 (most recent call first):
2023-06-18 03:58:46.985107370    File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
2023-06-18 03:58:46.985114240    File "/usr/lib/python3.9/threading.py", line 1033 in join
2023-06-18 03:58:46.985120865    File "/opt/frigate/frigate/video.py", line 429 in capture_camera
2023-06-18 03:58:46.985127673    File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
2023-06-18 03:58:46.985136057    File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
2023-06-18 03:58:46.985142978    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
2023-06-18 03:58:46.985150328    File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
2023-06-18 03:58:46.985156865    File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
2023-06-18 03:58:46.985164079    File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
2023-06-18 03:58:46.985171219    File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
2023-06-18 03:58:46.985178318    File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
2023-06-18 03:58:46.985185778    File "/opt/frigate/frigate/app.py", line 383 in start
2023-06-18 03:58:46.985191131    File "/opt/frigate/frigate/__main__.py", line 16 in <module>
2023-06-18 03:58:46.985195648    File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
2023-06-18 03:58:46.985200215    File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main

FFprobe output from your camera

n/a -- restarting the container fixes the problem

Frigate stats

No response

Operating system

Other Linux

Install method

Docker CLI

Coral version

USB

Network connection

Wired

Camera make and model

n/a -- restarting the container fixes the problem

Any other information that may be helpful

ps aux output (width truncated):

root          16  0.0  0.0    204    60 ?        S    Jun17   0:00 s6-supervise s6-linux-init-shutdownd
root          17  0.0  0.0    192     4 ?        Ss   Jun17   0:00 /package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B
root          25  0.0  0.0    204    60 ?        S    Jun17   0:00 s6-supervise frigate
root          26  0.0  0.0    204    56 ?        S    Jun17   0:00 s6-supervise s6rc-fdholder
root          27  0.0  0.0    204    64 ?        S    Jun17   0:00 s6-supervise go2rtc-log
root          28  0.0  0.0    204    60 ?        S    Jun17   0:00 s6-supervise frigate-log
root          29  0.0  0.0    204    60 ?        S    Jun17   0:00 s6-supervise go2rtc
root          30  0.0  0.0    204    60 ?        S    Jun17   0:00 s6-supervise nginx-log
root          31  0.0  0.0    204    60 ?        S    Jun17   0:00 s6-supervise nginx
root          32  0.0  0.0    204    56 ?        S    Jun17   0:00 s6-supervise go2rtc-healthcheck
root          33  0.0  0.0    204    64 ?        S    Jun17   0:00 s6-supervise s6rc-oneshot-runner
root          40  0.0  0.0    516   140 ?        Ss   Jun17   0:00 /package/admin/s6-2.11.3.0/command/s6-fdholderd -1 -i data/rules
root          45  0.0  0.0    180     4 ?        Ss   Jun17   0:00 /package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E
nobody        80  0.0  0.0    268     4 ?        Ss   Jun17   0:00 s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx
nobody        81  0.0  0.0    268    68 ?        Ss   Jun17   0:00 s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc
nobody        83  0.0  0.0    300   160 ?        Ss   Jun17   0:00 s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate
root          99  0.0  0.0 725884 16036 ?        Ssl  Jun17   0:00 /usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml
root         109  0.0  0.0   3884  2152 ?        Ss   Jun17   0:00 bash ./run.user go2rtc-healthcheck
root         111  7.9  1.2 3297632 405880 ?      Ssl  Jun17  24:46 python3 -u -m frigate
root         119  0.0  0.0 581672  9024 ?        Ss   Jun17   0:00 nginx: master process nginx
root         134  0.0  0.0 844740  4752 ?        Sl   Jun17   0:00 nginx: worker process
root         135  0.0  0.0 844740  5272 ?        Sl   Jun17   0:00 nginx: worker process
root         136  0.0  0.0 844740  4776 ?        Sl   Jun17   0:00 nginx: worker process
root         137  0.0  0.0 844740  5312 ?        Sl   Jun17   0:00 nginx: worker process
root         138  0.0  0.0 844740  5300 ?        Sl   Jun17   0:00 nginx: worker process
root         140  0.0  0.0 844380  4172 ?        Sl   Jun17   0:00 nginx: worker process
root         147  0.0  0.0 844380  4768 ?        Sl   Jun17   0:01 nginx: worker process
root         154  0.1  0.0 844380  4236 ?        Sl   Jun17   0:20 nginx: worker process
root         421  0.0  0.2 921012 78596 ?        S    Jun17   0:02 frigate.logger
root         427  1.1  0.0  14248  8116 ?        S    Jun17   3:37 /usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(34)
root         428  2.3  0.3 1212484 98616 ?       Sl   Jun17   7:11 frigate.detector.coral
root         430 23.3  0.3 1942056 99764 ?       Sl   Jun17  72:58 frigate.output
root         436  2.2  0.2 1497876 90848 ?       Sl   Jun17   6:56 frigate.process:side-gate-camera
root         437  1.7  0.2 1497736 91220 ?       Sl   Jun17   5:24 frigate.process:backyard-camera
root         438  3.1  0.2 1495632 90036 ?       Sl   Jun17   9:53 frigate.process:front-yard-camera
root         439 11.6  0.2 1497228 91788 ?       Sl   Jun17  36:28 frigate.process:front-camera
root         440  2.6  0.0      0     0 ?        Z    Jun17   8:23 [frigate.capture] <defunct>
root         443  2.6  0.0      0     0 ?        Z    Jun17   8:22 [frigate.capture] <defunct>
root         447  2.7  0.0      0     0 ?        Z    Jun17   8:34 [frigate.capture] <defunct>
root         448  0.0  0.0 126812  8052 ?        Ss   Jun17   0:00 ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpe
root         452  6.4  0.0      0     0 ?        Z    Jun17  20:03 [frigate.capture] <defunct>
root         460  3.0  0.0 329680 25024 ?        Ssl  Jun17   9:33 ffmpeg -hide_banner -loglevel warning -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative
root         463  0.0  0.0 126812  8180 ?        Ss   Jun17   0:00 ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpe
root         499  5.1  0.0 331152 25924 ?        Ssl  Jun17  15:56 ffmpeg -hide_banner -loglevel warning -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative
root         501  5.0  0.0 529108 27724 ?        Ssl  Jun17  15:54 ffmpeg -hide_banner -loglevel warning -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative
root         502  3.5  0.1 539176 37952 ?        Ssl  Jun17  11:02 ffmpeg -hide_banner -loglevel warning -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative
root         559  0.0  0.0 126812  8296 ?        Ss   Jun17   0:00 ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -f mpegts -s 960x720 -codec:v mpe
root         584  0.0  0.0 126812  8084 ?        Ss   Jun17   0:00 ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x536 -i pipe: -f mpegts -s 2579x720 -codec:v m
root         601  4.0  0.1 284072 39508 ?        Ssl  Jun17  12:31 ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1024x768 -i pipe: -f mpegts -s 1024x768 -codec:v m
root       26078  0.0  0.0   4148  3320 pts/0    Ss   04:05   0:00 bash
root       29862  0.0  0.0   2480   908 ?        S    04:47   0:00 sleep 30s
root       29906  0.0  0.0   6488  1516 pts/0    R+   04:47   0:00 ps aux

This is running in a local kubernetes cluster on a node with plenty of resources. There are no memory or cpu limits set. This is new behavior afaik.

That garbled log output is interesting! I checked the log output in kubernetes too, and it's identical to what the frigate app shows in the log view.

@blakeblackshear
Copy link
Owner

https://docs.frigate.video/troubleshooting/faqs#fatal-python-error-bus-error

@zestysoft
Copy link
Author

Ugh, so sorry. Honestly I did google for this, but clearly didn't scroll down far enough.

@natevw
Copy link

natevw commented Oct 23, 2023

@zestysoft If it's any consolation this issue is now one of the top results for the crash on DuckDuckGo now, and the way I came to discover the FAQ entry via the link above! So in the end you might be saving on support in the long run 😂

@iursevla
Copy link
Contributor

iursevla commented Apr 3, 2024

@zestysoft Thanks
@natevw same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants