Closed akien-mga closed 4 weeks ago
CC @pkowal1982
So I must have been testing this while in a meeting yesterday with my webcam enabled. If my webcam is off I don't reproduce the issue.
I adjusted the steps to reproduce. We may consider that this isn't a bug, but the error message should likely be improved to make it clear that the webcam is busy, instead of a cryptic "cannot set format" error.
Additionally, I wonder whether it's correct that we attempt to initialize a camera feed on start even when there's no usage of any camera API in the project. This seems like a potential significant privacy issue here, which my freak out some users, even if we're just checking whether we can use the camera.
@akien-mga Thanks for giving it another try. I can reproduce this behavior on Ubuntu, it will be easier to analyze now.
Fixing the error I've noticed that CameraFeed::get_format() is not exposed in the APIs. If it was not intentional probably there should be another small PR for this.
Tested versions
System information
Godot v4.4.dev (2834dd6a2) - Fedora Linux 40 (KDE Plasma) on Wayland - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 threads)
Issue description
The following is printed to the terminal output when opening any project on Linux:
Steps to reproduce
Minimal reproduction project (MRP)
Any project.