[Detector Support]: OpenVino crashes #11137
-
Describe the problem you are havingHi, I am trying to setup frigate on a privileged lxc on latest proxmox 8.2. I have installed docker on that lxc and passed through my intel 12th gen igpu for use in the container. Frigate crashes repeatedly complaining about a my "environment". See log at the end. In addition to the crash I can see another two messages in the log which doesn't seem good. I can't tell which is the cause of these and how to fix them.
I have a very similar setup on another proxmox host with the same cpu/gpu. In that other lxc, everything seem to work ok, but I cannot replicate the setup to my new proxox host. Any help welcome. Version0.13.2-6476f8a Frigate config filemqtt:
enabled: False
detectors:
ov:
type: openvino
device: GPU
model:
path: /openvino-model/ssdlite_mobilenet_v2.xml
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
ffmpeg:
hwaccel_args: preset-vaapi
detect:
fps: 8
objects:
track:
- person
- car
timestamp_style:
format: "%d/%m/%Y %H:%M:%S"
cameras:
OfficeIndoor:
ffmpeg:
inputs:
- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@192.168.40.103:554/Streaming/Channels/101
roles:
- record
- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@192.168.40.103:554/Streaming/Channels/103
roles:
- detect
output_args:
record: preset-record-generic-audio-copy docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "128mb" # update for your cameras based on calculation above
devices:
- /dev/dri/renderD128:/dev/dri/renderD128 # For intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./surveillance:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "************" Relevant log output2024-04-28 17:57:19.166963684 [INFO] Preparing Frigate...
2024-04-28 17:57:19.172108018 [INFO] Starting Frigate...
2024-04-28 17:57:19.967154451 [2024-04-28 17:57:19] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-04-28 17:57:19.983121271 [rtsp @ 0x438fbc0] method DESCRIBE failed: 401 Unauthorized
2024-04-28 17:57:19.986841533 [2024-04-28 17:57:19] frigate.config WARNING : Customizing more than a detector model path is unsupported.
2024-04-28 17:57:19.990066938 [2024-04-28 17:57:19] peewee_migrate.logs INFO : Starting migrations
2024-04-28 17:57:19.992286273 [2024-04-28 17:57:19] peewee_migrate.logs INFO : There is nothing to migrate
2024-04-28 17:57:19.994559517 [2024-04-28 17:57:19] frigate.app INFO : Recording process started: 564
2024-04-28 17:57:19.995598059 [2024-04-28 17:57:19] frigate.app INFO : go2rtc process pid: 89
2024-04-28 17:57:20.004527802 [2024-04-28 17:57:20] detector.ov INFO : Starting detection process: 573
2024-04-28 17:57:20.005535060 [2024-04-28 17:57:20] frigate.app INFO : Output process started: 575
2024-04-28 17:57:20.014224706 [2024-04-28 17:57:20] frigate.app INFO : Camera processor started for OfficeIndoor: 580
2024-04-28 17:57:20.014833371 [2024-04-28 17:57:20] frigate.app INFO : Capture process started for OfficeIndoor: 581
2024-04-28 17:57:20.230772208 Process detector:ov:
2024-04-28 17:57:20.232207727 Traceback (most recent call last):
2024-04-28 17:57:20.232244691 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-04-28 17:57:20.232250038 self.run()
2024-04-28 17:57:20.232253295 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-04-28 17:57:20.232260476 self._target(*self._args, **self._kwargs)
2024-04-28 17:57:20.232264208 File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-04-28 17:57:20.232289707 object_detector = LocalObjectDetector(detector_config=detector_config)
2024-04-28 17:57:20.232292531 File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-04-28 17:57:20.232295948 self.detect_api = create_detector(detector_config)
2024-04-28 17:57:20.232298404 File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-04-28 17:57:20.232300816 return api(detector_config)
2024-04-28 17:57:20.232303493 File "/opt/frigate/frigate/detectors/plugins/openvino.py", line 32, in __init__
2024-04-28 17:57:20.232332588 self.interpreter = self.ov_core.compile_model(
2024-04-28 17:57:20.232337781 File "/usr/local/lib/python3.9/dist-packages/openvino/runtime/ie_api.py", line 399, in compile_model
2024-04-28 17:57:20.232355080 super().compile_model(model, device_name, {} if config is None else config),
2024-04-28 17:57:20.232371477 RuntimeError: Failed to create plugin /usr/local/lib/python3.9/dist-packages/openvino/libs/libopenvino_intel_gpu_plugin.so for device GPU
2024-04-28 17:57:20.232373867 Please, check your environment
2024-04-28 17:57:20.232376818 Check 'error_code == 0' failed at src/plugins/intel_gpu/src/runtime/ocl/ocl_device_detector.cpp:194:
2024-04-28 17:57:20.232379619 [GPU] No supported OCL devices found or unexpected error happened during devices query.
2024-04-28 17:57:20.232382361 [GPU] Please check OpenVINO documentation for GPU drivers setup guide.
2024-04-28 17:57:20.232384809 [GPU] clGetPlatformIDs error code: -1001
2024-04-28 17:57:20.232386657
2024-04-28 17:57:20.232388344 Operating systemProxmox Install methodDocker Compose Coral versionCPU (no coral) Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
this seems like it might be a missing driver or related issue |
Beta Was this translation helpful? Give feedback.
-
I got the same error on 6.8.0-31, reverting to 6.5.7-060507-generic solved the problem. See what kernel you have. |
Beta Was this translation helpful? Give feedback.
#9574