set_fov: Condition "p_fov < 1 || p_fov > 179" is true.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Macryc

Hi All, my debug gets spammed with this error as of Godot 4 Beta 3. It’s to do with Camera3d. Full error message is:

E 0:00:22:0090 set_fov: Condition “p_fov < 1 || p_fov > 179” is true.
<C++ Source> scene/3d/camera_3d.cpp:588 @ set_fov()

Anyone seen this? I can’t infer from the source code what the error is…

Can you post the code you used?

Gangster53 YT | 2022-10-18 15:08

If you used “set_fov(…)” in your code, try “fov = …”. Example: “Camera.fov = value”

My godot version: 3.4.4

Gangster53 YT | 2022-10-18 15:13

i’m not using .fov in code at all. It just spams this error from the very first second the game runs. It’s Godot 4 tho.

Macryc | 2022-10-18 15:15

From what I understood from the error then:
(Condition “pfov < 1 || pfov > 179” is true.) Is the camera’s fov less than 1 and greater than 179? Check it out.

Gangster53 YT | 2022-10-18 15:59

It’s not either of that at any point. The camera’s fov is set to 75 and it doesn’t change.

Macryc | 2022-11-04 21:39

:bust_in_silhouette: Reply From: saschaP

Had this message after importing multiple .dae files. They’re containing each a own camera. After clearing up the source files the Error Messages gone.

Godot 4.0.3