Repository navigation
Closed
Labels
0.kind: bugSomething is broken
Description
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
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
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken
Activity
mweinelt commentedon Jan 4, 2026
Can't repro this on a blank instance, wondering if I need any data to trigger.
rajil commentedon Jan 5, 2026
I dont see any models being downloaded,
mweinelt commentedon Jan 5, 2026
Because you downloaded them during a prior startup.
rajil commentedon Jan 5, 2026
Where are they stored? I have been deleting /var/lib/frigate as i am testing the package.
mweinelt commentedon Jan 5, 2026
Downloaded stuff is considered cached, so /var/cache/frigate.
rajil commentedon Jan 5, 2026
Thanks, i see them now.
mweinelt commentedon Jan 5, 2026
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.
frigate: migrate to ai-edge-litert interpreter
frigate: migrate to ai-edge-litert interpreter
frigate: migrate to ai-edge-litert interpreter
frigate: migrate to ai-edge-litert interpreter
mweinelt commentedon Feb 2, 2026
This was solved by migrating to ai-edge-litert.