Skip to content

frigate: crash with semantic_search enabled #476181

Closed

Description

@rajil

Nixpkgs version

  • Unstable (26.05)

Describe the bug

Turning on semantic search in the frigate package leads to crash.

Steps to reproduce

This causes crash

      semantic_search = {
        enabled = true;
        reindex = false;
      };

Expected behaviour

Frigate will run

Screenshots

log.txt

Relevant log output

Jan 02 14:30:30 nas frigate[627980]: [2026-01-02 14:30:30] frigate.api.fastapi_app        INFO    : FastAPI started
Jan 02 14:30:31 nas frigate[630438]: Fatal Python error: Segmentation fault
Jan 02 14:30:31 nas frigate[630438]: Thread 0x00007fa83dc586c0 (most recent call first):
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 359 in wait
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/queue.py", line 199 in get
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/qw3fl646cs15qd11bf5k44jc3fh6xbwk-python3.13-peewee-3.18.3/lib/python3.13/site-packages/playhouse/sqliteq.py", line 162 in loop
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/qw3fl646cs15qd11bf5k44jc3fh6xbwk-python3.13-peewee-3.18.3/lib/python3.13/site-packages/playhouse/sqliteq.py", line 137 in run
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/qw3fl646cs15qd11bf5k44jc3fh6xbwk-python3.13-peewee-3.18.3/lib/python3.13/site-packages/playhouse/sqliteq.py", line 272 in run
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 994 in run
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 1043 in _bootstrap_inner
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 1014 in _bootstrap
Jan 02 14:30:31 nas frigate[630438]: Current thread 0x00007faea1797740 (most recent call first):
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/ax3adrvrc4cvbzsbh7djh0n54z0f0mag-python3.13-onnxruntime-1.22.2/lib/python3.13/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 550 in _create_inference_session
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/ax3adrvrc4cvbzsbh7djh0n54z0f0mag-python3.13-onnxruntime-1.22.2/lib/python3.13/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 472 in __init__
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/onnx/runner.py", line 51 in __init__
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/onnx/jina_v1_embedding.py", line 128 in _load_model_and_utils
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/onnx/jina_v1_embedding.py", line 76 in __init__
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/embeddings.py", line 121 in __init__
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/maintainer.py", line 85 in __init__
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/__init__.py", line 60 in manage_embeddings
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/process.py", line 108 in run
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/util/process.py", line 41 in run_wrapper
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/process.py", line 313 in _bootstrap
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/popen_fork.py", line 74 in _launch
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/popen_fork.py", line 20 in __init__
Jan 02 14:30:31 nas frigate[630438]:   File "__init__", line ??? in __init__
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/context.py", line 282 in _Popen
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/context.py", line 224 in _Popen
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/process.py", line 121 in start
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/util/process.py", line 30 in start
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/app.py", line 267 in init_embeddings_manager
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/app.py", line 649 in start
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/__main__.py", line 104 in main
Jan 02 14:30:31 nas frigate[630438]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/__main__.py", line 108 in <module>
Jan 02 14:30:31 nas frigate[630438]:   File "<frozen runpy>", line 88 in _run_code
                                              Stack trace of thread 630438:
                                              #0  0x00007faea1838aac __pthread_kill_implementation (libc.so.6 + 0x9caac)
                                              #1  0x00007faea17dd90e raise (libc.so.6 + 0x4190e)
                                              #2  0x00007faea17dd9c0 __restore_rt (libc.so.6 + 0x419c0)
                                              #3  0x00007faa87a1673c _ZN6google8protobuf11MessageLite23ParseFromZeroCopyStreamEPNS0_2io19ZeroCopyInputStreamE (libtensorflow_framework.so.2 + 0x27a373c)
                                              #4  0x00007faa57ac81a2 _ZN11onnxruntime5Model4LoadEiRN4onnx10ModelProtoE (onnxruntime_pybind11_state.so + 0xbdc1a2)
                                              #5  0x00007faa572b89a4 _ZNSt17_Function_handlerIFN11onnxruntime6common6StatusERSt10shared_ptrINS0_5ModelEEEZNS0_16InferenceSession13LoadOnnxModelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEUlS6_E_E9_M_invokeERKSt9_Any_dataS6_.lto_priv.0 (onnxruntime_pybind11_state.so + 0x3cc9a4)
                                              #6  0x00007faa57298ea1 _ZN11onnxruntime16InferenceSession14LoadWithLoaderESt8functionIFNS_6common6StatusERSt10shared_ptrINS_5ModelEEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE (onnxruntime_pybind11_state.so + 0x3acea1)
                                              #7  0x00007faa572a4532 _ZN11onnxruntime16InferenceSession4LoadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE (onnxruntime_pybind11_state.so + 0x3b8532)
                                              #8  0x00007faa57e38382 _ZZN11onnxruntime6python16addObjectMethodsERN8pybind117module_ESt8functionIFvPNS_16InferenceSessionERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISD_EERKSt13unordered_mapISD_SI_ISD_SD_St4hashISD_ESt8equal_toISD_ESaISt4pairIKSD_SD_EEESK_SM_SaISN_ISO_SR_EEEEEENKUlRK17OrtSessionOptionsSD_bbE_clES11_SD_bb.isra.0 (onnxruntime_pybind11_state.so + 0xf4c382)
                                              #9  0x00007faa5724623b _ZZN8pybind1112cpp_function10initializeIZNOS_6detail8initimpl7factoryIZN11onnxruntime6python16addObjectMethodsERNS_7module_ESt8functionIFvPNS5_16InferenceSessionERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISI_EERKSt13unordered_mapISI_SN_ISI_SI_St4hashISI_ESt8equal_toISI_ESaISt4pairIKSI_SI_EEESP_SR_SaISS_IST_SW_EEEEEEUlRK17OrtSessionOptionsSI_bbE_PFNS2_9void_typeEvEFSt10unique_ptrINS6_18PyInferenceSessionESt14default_deleteIS1C_EES16_SI_bbES19_E7executeINS_6class_IS1C_JEEEJEEEvRT_DpRKT0_EUlRNS2_16value_and_holderES16_SI_bbE_vJS1S_S16_SI_bbEJNS_4nameENS_9is_methodENS_7siblingENS2_24is_new_style_constructorEEEEvOS1L_PFT0_DpT1_EDpRKT2_ENUlRNS2_13function_callEE_4_FUNES29_.lto_priv.0 (onnxruntime_pybind11_state.so + 0x35a23b)
                                              #10 0x00007faa571d1957 _ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_ (onnxruntime_pybind11_state.so + 0x2e5957)
                                              #11 0x00007faea1d3592c cfunction_call (libpython3.13.so.1.0 + 0x27592c)
                                              #12 0x00007faea1c43a46 _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x183a46)
                                              #13 0x00007faea1d2c6da method_vectorcall (libpython3.13.so.1.0 + 0x26c6da)
                                              #14 0x00007faea1c58b2d slot_tp_init (libpython3.13.so.1.0 + 0x198b2d)
                                              #15 0x00007faea1c166b7 type_call (libpython3.13.so.1.0 + 0x1566b7)
                                              #16 0x00007faa571d021b pybind11_meta_call (onnxruntime_pybind11_state.so + 0x2e421b)
                                              #17 0x00007faea1c43a46 _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x183a46)
                                              #18 0x00007faea1e840c2 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c40c2)
                                              #19 0x00007faea1c43cc7 _PyObject_VectorcallDictTstate (libpython3.13.so.1.0 + 0x183cc7)
                                              #20 0x00007faea1c58a63 slot_tp_init (libpython3.13.so.1.0 + 0x198a63)
                                              #21 0x00007faea1c166b7 type_call (libpython3.13.so.1.0 + 0x1566b7)
                                              #22 0x00007faea1c43a46 _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x183a46)
                                              #23 0x00007faea1e87226 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c7226)
                                              #24 0x00007faea1c43c16 _PyObject_VectorcallDictTstate (libpython3.13.so.1.0 + 0x183c16)
                                              #25 0x00007faea1c58a63 slot_tp_init (libpython3.13.so.1.0 + 0x198a63)
                                              #26 0x00007faea1c166b7 type_call (libpython3.13.so.1.0 + 0x1566b7)
                                              #27 0x00007faea1c43a46 _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x183a46)
                                              #28 0x00007faea1e840c2 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c40c2)
                                              #29 0x00007faea1c43cc7 _PyObject_VectorcallDictTstate (libpython3.13.so.1.0 + 0x183cc7)
                                              #30 0x00007faea1c58a63 slot_tp_init (libpython3.13.so.1.0 + 0x198a63)
                                              #31 0x00007faea1c166b7 type_call (libpython3.13.so.1.0 + 0x1566b7)
                                              #32 0x00007faea1c43a46 _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x183a46)
                                              #33 0x00007faea1e87226 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c7226)
                                              #34 0x00007faea1c43c16 _PyObject_VectorcallDictTstate (libpython3.13.so.1.0 + 0x183c16)
                                              #35 0x00007faea1c58a63 slot_tp_init (libpython3.13.so.1.0 + 0x198a63)
                                              #36 0x00007faea1c166b7 type_call (libpython3.13.so.1.0 + 0x1566b7)
                                              #37 0x00007faea1c43a46 _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x183a46)
                                              #38 0x00007faea1e840c2 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c40c2)
                                              #39 0x00007faea1c43c16 _PyObject_VectorcallDictTstate (libpython3.13.so.1.0 + 0x183c16)
                                              #40 0x00007faea1c58a63 slot_tp_init (libpython3.13.so.1.0 + 0x198a63)
                                              #41 0x00007faea1c166b7 type_call (libpython3.13.so.1.0 + 0x1566b7)
                                              #42 0x00007faea1c43a46 _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x183a46)
                                              #43 0x00007faea1e840c2 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c40c2)
                                              #44 0x00007faea1d2c78a method_vectorcall (libpython3.13.so.1.0 + 0x26c78a)
                                              #45 0x00007faea1e837a9 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c37a9)
                                              #46 0x00007faea1d2c78a method_vectorcall (libpython3.13.so.1.0 + 0x26c78a)
                                              #47 0x00007faea1e837a9 _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c37a9)
                                              #48 0x00007faea1e95ae7 PyEval_EvalCode (libpython3.13.so.1.0 + 0x3d5ae7)
                                              #49 0x00007faea1eab22f builtin_exec (libpython3.13.so.1.0 + 0x3eb22f)
                                              #50 0x00007faea1c3bca0 cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.13.so.1.0 + 0x17bca0)
                                              #51 0x00007faea1e83eab _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x3c3eab)
                                              #52 0x00007faea1e7e7a3 pymain_run_module (libpython3.13.so.1.0 + 0x3be7a3)
                                              #53 0x00007faea1ea124a Py_RunMain (libpython3.13.so.1.0 + 0x3e124a)
                                              #54 0x00007faea17c64d8 __libc_start_call_main (libc.so.6 + 0x2a4d8)
                                              #55 0x00007faea17c659b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a59b)
                                              #56 0x00005571e80b9085 _start (/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/bin/python3.13 + 0x1085)

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.17.13, NixOS, 26.05 (Yarara), 26.05.20251228.c0b0e0f
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.2+1
  • channels(root): "home-manager-24.11.tar.gz, nixos-24.11"
  • nixpkgs: /nix/store/xzl5dhddgjxp2p18h5qpkhvlkp8128j1-source

Notify maintainers

@mweinelt

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    on Jan 2, 2026
  2. mweinelt commented on Jan 4, 2026

    @mweinelt
    Member

    Can't repro this on a blank instance, wondering if I need any data to trigger.

      services.frigate = {
        enable = true;
        hostname = "frigate.local";
        settings = {
          cameras = { };
          semantic_search = {
            enabled = true;
            reindex = false;
          };
        };
      };
    frigate[1455978]: [2026-01-04 22:06:59] frigate.api.fastapi_app        INFO    : Starting FastAPI app
    frigate[1455978]: [2026-01-04 22:06:59] frigate.api.fastapi_app        INFO    : FastAPI started
    frigate[1455978]: [2026-01-04 22:07:09] frigate.util.downloader        INFO    : Downloading complete: https://huggingface.co/jinaai/jina-clip-v1/resolve/main/onnx/vision_model_quantized.onnx
    frigate[1455978]: [2026-01-04 22:07:09] frigate.util.downloader        INFO    : Downloading model file from: https://huggingface.co/jinaai/jina-clip-v1/resolve/main/preprocessor_config.json
    frigate[1455978]: [2026-01-04 22:07:09] frigate.util.downloader        INFO    : Downloading complete: https://huggingface.co/jinaai/jina-clip-v1/resolve/main/preprocessor_config.json
    frigate[1455978]: [2026-01-04 22:07:20] frigate.util.downloader        INFO    : Downloading complete: https://huggingface.co/jinaai/jina-clip-v1/resolve/main/onnx/text_model_fp16.onnx
    frigate[1455978]: [2026-01-04 22:07:20] frigate.embeddings.onnx.jina_v1_embedding INFO    : Downloading jinaai/jina-clip-v1 tokenizer
    
  3. rajil commented on Jan 5, 2026

    @rajil
    Author

    I dont see any models being downloaded,

    Jan 05 05:47:43 nas systemd[1]: Started frigate.service.
    Jan 05 05:47:44 nas frigate[4115892]: 2026-01-05 05:47:44.979506: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
    Jan 05 05:47:44 nas frigate[4115892]: To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : Checking if frigate config needs migration...
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : copying config as backup...
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : Migrating frigate config from 0.13 to 0.14...
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : Migrating export file names...
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : Migrating frigate config from 0.14 to 0.15-0...
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : Migrating frigate config from 0.15-0 to 0.15-1...
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : Migrating frigate config from 0.15-1 to 0.16-0...
    Jan 05 05:47:53 nas frigate[4115892]: [2026-01-05 05:47:53] frigate.util.config            INFO    : Finished frigate config migration...
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : Starting Frigate (0.16.3)
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] peewee_migrate.logs            INFO    : Starting migrations
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] peewee_migrate.logs            INFO    : There is nothing to migrate
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : Recording process started: 4121762
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : Review process started: 4121770
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : go2rtc process pid: 3291005
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : go2rtc process pid: 4037471
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] detector.coral                 INFO    : Starting detection process: 4121806
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : Embedding process started: 4121809
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : Output process started: 4121834
    Jan 05 05:48:54 nas frigate[4115892]: [2026-01-05 05:48:54] frigate.app                    INFO    : Camera processor started for bedroomback: 4121856
    Jan 05 05:48:56 nas frigate[4121809]: Fatal Python error: Segmentation fault
    Jan 05 05:48:56 nas frigate[4121809]: Thread 0x00007f3287b576c0 (most recent call first):
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 359 in wait
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/queue.py", line 199 in get
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/qw3fl646cs15qd11bf5k44jc3fh6xbwk-python3.13-peewee-3.18.3/lib/python3.13/site-packages/playhouse/sqliteq.py", line 162 in loop
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/qw3fl646cs15qd11bf5k44jc3fh6xbwk-python3.13-peewee-3.18.3/lib/python3.13/site-packages/playhouse/sqliteq.py", line 137 in run
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/qw3fl646cs15qd11bf5k44jc3fh6xbwk-python3.13-peewee-3.18.3/lib/python3.13/site-packages/playhouse/sqliteq.py", line 272 in run
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 994 in run
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 1043 in _bootstrap_inner
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/threading.py", line 1014 in _bootstrap
    Jan 05 05:48:56 nas frigate[4121809]: Current thread 0x00007f38eaf97740 (most recent call first):
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/ax3adrvrc4cvbzsbh7djh0n54z0f0mag-python3.13-onnxruntime-1.22.2/lib/python3.13/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 550 in _create_inference_session
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/ax3adrvrc4cvbzsbh7djh0n54z0f0mag-python3.13-onnxruntime-1.22.2/lib/python3.13/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 472 in __init__
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/onnx/runner.py", line 51 in __init__
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/onnx/jina_v1_embedding.py", line 128 in _load_model_and_utils
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/onnx/jina_v1_embedding.py", line 76 in __init__
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/embeddings.py", line 121 in __init__
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/maintainer.py", line 85 in __init__
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/embeddings/__init__.py", line 60 in manage_embeddings
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/process.py", line 108 in run
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/util/process.py", line 41 in run_wrapper
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/process.py", line 313 in _bootstrap
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/popen_fork.py", line 74 in _launch
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/popen_fork.py", line 20 in __init__
    Jan 05 05:48:56 nas frigate[4121809]:   File "__init__", line ??? in __init__
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/context.py", line 282 in _Popen
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/context.py", line 224 in _Popen
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/multiprocessing/process.py", line 121 in start
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/util/process.py", line 30 in start
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/app.py", line 267 in init_embeddings_manager
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/app.py", line 649 in start
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/__main__.py", line 104 in main
    Jan 05 05:48:56 nas frigate[4121809]:   File "/nix/store/n5vr4gj2qj67gfvkzgyz4n722hdrvxqk-frigate-0.16.3/lib/python3.13/site-packages/frigate/__main__.py", line 108 in <module>
    Jan 05 05:48:56 nas frigate[4121809]:   File "<frozen runpy>", line 88 in _run_code
    Jan 05 05:48:56 nas frigate[4121809]:   File "<frozen runpy>", line 198 in _run_module_as_main
    Jan 05 05:48:56 nas frigate[4121809]: Extension modules: _ruamel_yaml, psutil._psutil_linux, playhouse._sqlite_ext, numpy._core._multiarray_umath, numpy.linalg._umath_linalg, _cffi_backend, _brotli, charset_normalizer.md, requests.packages.charset_normalizer.md, requests.packages.chardet.md, google._upb._message, h5py._errors, h5py.defs, h5py._objects, h5py.h5, h5py.utils, h5py.h5t, h5py.h5s, h5py.h5ac, h5py.h5p, h5py.h5r, h5py._npystrings, h5py._proxy, h5py._conv, h5py.h5z, h5py.h5a, h5py.h5d, h5py.h5ds, h5py.h5g, h5py.h5i, h5py.h5o, h5py.h5f, h5py.h5fd, h5py.h5pl, h5py.h5l, h5py._selector, scipy._lib._ccallback_c, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._pcg64, numpy.random._mt19937, numpy.random._generator, numpy.random._philox, numpy.random._sfc64, numpy.random.mtrand, scipy.sparse._sparsetools, _csparsetools, _cyutility, scipy._cyutility, scipy.sparse._csparsetools, PIL._imaging, greenlet._greenlet, zope.interface._zope_interface_coptimizations, gevent.libev.corecext, gevent._gevent_c_greenlet_primitives, gevent._gevent_c_hub_local, gevent._gevent_c_waiter, gevent._gevent_c_hub_primitives, gevent._gevent_c_ident, gevent._gevent_cgreenlet, gevent._gevent_c_abstract_linkable, gevent._gevent_cevent, gevent._gevent_clocal, gevent._gevent_cqueue, markupsafe._speedups, regex._regex, setproctitle._setproctitle, zmq.backend.cython._zmq, rapidfuzz._feature_detector_cpp, rapidfuzz.distance._initialize_cpp, rapidfuzz.distance.metrics_cpp_avx2, rapidfuzz.fuzz_cpp_avx2, rapidfuzz.process_cpp_impl, rapidfuzz.utils_cpp, Levenshtein.levenshtein_cpp, pyclipper._pyclipper, shapely.lib, shapely._geos, shapely._geometry_helpers, scipy.spatial._ckdtree, scipy._lib.messagestream, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.linalg._cythonized_array_utils, scipy.linalg._solve_toeplitz, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_schur_sqrtm, scipy.linalg._matfuncs_expm, scipy.linalg._linalg_pythran, scipy.linalg.cython_blas, scipy.linalg._decomp_update, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.special._ufuncs_cxx, scipy.special._ellip_harm_2, scipy.special._special_ufuncs, scipy.special._gufuncs, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.spatial._hausdorff, scipy.spatial._distance_wrap, scipy.spatial.transform._rotation, scipy.spatial.transform._rigid_transform, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.linalg._propack._spropack, scipy.sparse.linalg._propack._dpropack, scipy.sparse.linalg._propack._cpropack, scipy.sparse.linalg._propack._zpropack, scipy.optimize._group_columns, scipy.optimize._trlib._trlib, scipy.optimize._lbfgsb, _moduleTNC, scipy.optimize._moduleTNC, scipy.optimize._slsqplib, scipy.optimize._minpack, scipy.optimize._lsq.givens_elimination, scipy.optimize._zeros, scipy._lib._uarray._uarray, scipy.linalg._decomp_interpolative, scipy.optimize._bglu_dense, scipy.optimize._lsap, scipy.optimize._direct, scipy.integrate._odepack, scipy.integrate._quadpack, scipy.integrate._vode, scipy.integrate._dop, scipy.integrate._lsoda, scipy.interpolate._fitpack, scipy.interpolate._dfitpack, scipy.interpolate._dierckx, scipy.interpolate._ppoly, scipy.interpolate._interpnd, scipy.interpolate._rbfinterp_pythran, scipy.interpolate._rgi_cython, scipy.special.cython_special, scipy.stats._stats, scipy.stats._biasedurn, scipy.stats._stats_pythran, scipy.stats._levy_stable.levyst, scipy.stats._ansari_swilk_statistics, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.stats._sobol, scipy.stats._qmc_cy, scipy.stats._rcont.rcont, scipy.stats._qmvnt_cy, scipy.ndimage._nd_image, scipy.ndimage._rank_filter_1d, _ni_label, scipy.ndimage._ni_label, yaml._yaml, multidict._multidict, yarl._quoting_c, propcache._helpers_c, backports.zstd._zstd, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket.mask, aiohttp._websocket.reader_c, frozenlist._frozenlist, lxml._elementpath, lxml.etree, lxml.builder, ciso8601, pandas._libs.tslibs.ccalendar, pandas._libs.tslibs.np_datetime, pandas._libs.tslibs.dtypes, pandas._libs.tslibs.base, pandas._libs.tslibs.nattype, pandas._libs.tslibs.timezones, pandas._libs.tslibs.fields, pandas._libs.tslibs.timedeltas, pandas._libs.tslibs.tzconversion, pandas._libs.tslibs.timestamps, pandas._libs.properties, pandas._libs.tslibs.offsets, pandas._libs.tslibs.strptime, pandas._libs.tslibs.parsing, pandas._libs.tslibs.conversion, pandas._libs.tslibs.period, pandas._libs.tslibs.vectorized, pandas._libs.ops_dispatch, pandas._libs.missing, pandas._libs.hashtable, pandas._libs.algos, pandas._libs.interval, pandas._libs.lib, pandas._libs.ops, pandas._libs.hashing, pandas._libs.arrays, pandas._libs.tslib, pandas._libs.sparse, pandas._libs.internals, pandas._libs.indexing, pandas._libs.index, pandas._libs.writers, pandas._libs.join, pandas._libs.window.aggregations, pandas._libs.window.indexers, pandas._libs.reshape, pandas._libs.groupby, pandas._libs.json, pandas._libs.parsers, pandas._libs.testing (total: 213)
    Jan 05 05:48:56 nas frigate[4115892]: [2026-01-05 05:48:56] frigate.api.fastapi_app        INFO    : Starting FastAPI app
    Jan 05 05:48:56 nas frigate[4115892]: [2026-01-05 05:48:56] frigate.api.fastapi_app        INFO    : FastAPI started
    Jan 05 05:48:57 nas frigate[4115892]: [2026-01-05 05:48:57] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
    Jan 05 05:48:57 nas frigate[4121806]: INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
    Jan 05 05:49:01 nas systemd-coredump[4122416]: [🡕] Process 4121809 (frigate.embeddi) of user 985 dumped core.
    
  4. mweinelt commented on Jan 5, 2026

    @mweinelt
    Member

    Because you downloaded them during a prior startup.

  5. rajil commented on Jan 5, 2026

    @rajil
    Author

    Where are they stored? I have been deleting /var/lib/frigate as i am testing the package.

  6. mweinelt commented on Jan 5, 2026

    @mweinelt
    Member

    Downloaded stuff is considered cached, so /var/cache/frigate.

  7. rajil commented on Jan 5, 2026

    @rajil
    Author

    Thanks, i see them now.

    # ls /var/cache/frigate/model_cache/jinaai/jina-clip-v1/ -lh
    total 345M
    -rw-r----- 1 frigate frigate  527 Dec 31 23:38 preprocessor_config.json
    -rw-r----- 1 frigate frigate 262M Dec 31 23:38 text_model_fp16.onnx
    drwxr-x--- 4 frigate frigate    8 Dec 31 23:38 tokenizer
    -rw-r----- 1 frigate frigate  84M Dec 31 23:38 vision_model_quantized.onnx
    
  8. mweinelt commented on Jan 5, 2026

    @mweinelt
    Member

    I think we're at the point were only source built Tensorflow might save us.

    Onnxruntime and Tensorflow introducing two different protobuf versions, which, although they originate from the same version, might very well not be ABI compatible.

  9. added 4 commits that reference this issue on Jan 15, 2026
    92c8394
    4f11f47
    72daf05
    6259a4d
  10. mweinelt commented on Feb 2, 2026

    @mweinelt
    Member

    This was solved by migrating to ai-edge-litert.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions