[Bug]: Autotracking calibration crashing if zooming: disabled is set
#19785
-
Checklist
Describe the problem you are havingAutotracking calibration fails with If I attempt to do autotracking calibration with the following: wuuk:
...
onvif:
host: 1.2.3.4
port: 80
user: onvif_user
password: onvif_password
autotracking:
enabled: true
calibrate_on_startup: true
zooming: disabled
return_preset: home
track:
- person
required_zones:
- full_frameI see the following in logs, and the Steps to reproduce
Version0.16.0-a0a5aad In which browser(s) are you experiencing the issue with?No response Frigate config filego2rtc:
rtsp:
username: rtsp
password: rtsp-password
streams:
wuuk:
- rtsp://username:password@1.2.3.4/ch0
- ffmpeg:wuuk1#audio=aac
cameras:
wuuk:
enabled: true
ffmpeg:
hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/wuuk
input_args: preset-rtsp-restream-low-latency
roles:
- record
- audio
- path: rtsp://127.0.0.1:8554/wuuk2_sub
input_args: preset-rtsp-restream-low-latency
roles:
- detect
live:
streams:
Main Stream: wuuk
detect:
enabled: true
onvif:
host: 1.2.3.4
port: 80
user: username
password: password
autotracking:
enabled: true
calibrate_on_startup: true
zooming: disabled
return_preset: home
track:
- person
required_zones:
- full_frame
zones:
full_frame:
coordinates: 0,0,0,1,1,1,1,0docker-compose file or Docker CLI commandn/aRelevant Frigate log output...
frigate | 2025-08-26 22:19:05.954800719 [2025-08-26 22:19:05] frigate.ptz.autotrack INFO : Calibration for wuuk in progress: 97% complete
frigate | 2025-08-26 22:19:05.954835131 Traceback (most recent call last):
frigate | 2025-08-26 22:19:05.954836237 File "<frozen runpy>", line 198, in _run_module_as_main
frigate | 2025-08-26 22:19:05.954837175 File "<frozen runpy>", line 88, in _run_code
frigate | 2025-08-26 22:19:05.954840454 File "/opt/frigate/frigate/__main__.py", line 108, in <module>
frigate | 2025-08-26 22:19:05.954928909 main()
frigate | 2025-08-26 22:19:05.954942368 File "/opt/frigate/frigate/__main__.py", line 104, in main
frigate | 2025-08-26 22:19:05.954971392 FrigateApp(config).start()
frigate | 2025-08-26 22:19:05.954983624 File "/opt/frigate/frigate/app.py", line 655, in start
frigate | 2025-08-26 22:19:05.955101084 self.start_ptz_autotracker()
frigate | 2025-08-26 22:19:05.955102689 File "/opt/frigate/frigate/app.py", line 398, in start_ptz_autotracker
frigate | 2025-08-26 22:19:05.955103320 self.ptz_autotracker_thread = PtzAutoTrackerThread(
frigate | 2025-08-26 22:19:05.955192266 ^^^^^^^^^^^^^^^^^^^^^
frigate | 2025-08-26 22:19:05.955212374 File "/opt/frigate/frigate/ptz/autotrack.py", line 158, in __init__
frigate | 2025-08-26 22:19:05.955253450 self.ptz_autotracker = PtzAutoTracker(
frigate | 2025-08-26 22:19:05.955258262 ^^^^^^^^^^^^^^^
frigate | 2025-08-26 22:19:05.955260713 File "/opt/frigate/frigate/ptz/autotrack.py", line 230, in __init__
frigate | 2025-08-26 22:19:05.955300294 future.result()
frigate | 2025-08-26 22:19:05.955306174 File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
frigate | 2025-08-26 22:19:05.955355558 return self.__get_result()
frigate | 2025-08-26 22:19:05.955364108 ^^^^^^^^^^^^^^^^^^^
frigate | 2025-08-26 22:19:05.955367568 File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
frigate | 2025-08-26 22:19:05.955399786 raise self._exception
frigate | 2025-08-26 22:19:05.955405251 File "/opt/frigate/frigate/ptz/autotrack.py", line 338, in _autotracker_setup
frigate | 2025-08-26 22:19:05.955434717 await self._calibrate_camera(camera)
frigate | 2025-08-26 22:19:05.955439383 File "/opt/frigate/frigate/ptz/autotrack.py", line 531, in _calibrate_camera
frigate | 2025-08-26 22:19:05.955478067 self._calculate_move_coefficients(camera, True)
frigate | 2025-08-26 22:19:05.955488701 File "/opt/frigate/frigate/ptz/autotrack.py", line 588, in _calculate_move_coefficients
frigate | 2025-08-26 22:19:05.955528314 self.zoom_time[camera],
frigate | 2025-08-26 22:19:05.955543196 ~~~~~~~~~~~~~~^^^^^^^^
frigate | 2025-08-26 22:19:05.955549380 KeyError: 'wuuk'Relevant go2rtc log outputn/aOperating systemDebian Install methodDocker Compose Network connectionWired Camera make and modelWuuk (Thingino) Screenshots of the Frigate UI's System metrics pagesn/a Any other information that may be helpfulI'm pretty sure the issue is in Later, on this line, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
this was fixed in #19776 |
Beta Was this translation helpful? Give feedback.
this was fixed in #19776