[Bug]: Creating a Object Masks Zone in UI moves or removes the comment lines in config file when it shouldn't #21323
Replies: 2 comments 3 replies
-
|
Based on the available documentation, I cannot find specific information about how the Frigate UI's mask/zone editor handles YAML comments in the configuration file, or any known issues related to comment preservation when using the web-based editor. The documentation describes how to use the mask/zone creator in the UI(1)(2), but doesn't address the behavior you're experiencing with comments being moved or removed when saving masks or zones through the web interface. This appears to be a bug with the YAML parser or configuration writer used by Frigate's web UI when it updates the config file. Since this isn't covered in the official documentation, you may want to:
The mask and zone coordinate format is documented(1)(2), so you can add them manually to preserve your comment structure while Frigate addresses this issue. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
This is not a bug we will look to fix, depending on a camera placement and which settings are changed we can not perfectly keep comments consistent. Realistically, this will become less and less of a problem as configuration is moved to the UI. The comments are not removed, they are just not kept consistent with their position |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the problem you are having
I have comments like this above each camera for easy read of cameras. Others may have comments for block portions of their config that may find it nice to have. BUT when one creates a Objec Masks Zone for a camera and draws it on UI, the comments in config.yaml seem to move or disappear. So it misses up the location of the comment.
Comments like below move as a chunk (3 lines in this case) or disappear all together. This probably happens for Masks and Zones too.
Steps to reproduce
...
Version
0.16-2
In which browser(s) are you experiencing the issue with?
No response
Frigate config file
NAdocker-compose file or Docker CLI command
NARelevant Frigate log output
Relevant go2rtc log output
Operating system
Debian
Install method
Docker Compose
Network connection
Wired
Camera make and model
NA
Screenshots of the Frigate UI's System metrics pages
NA
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions