Camera left with zoom value 'nan' cannot have zoom state reverted #120041

Open
opened 2024-03-28 22:45:01 +01:00 by Rombout Versluijs · 3 comments

System Information
Operating system: Windows-10-10.0.26085-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 551.86

Blender Version
Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: 40a5e739e270
Worked: (newest version of Blender that worked as expected)

Short description of error
When working on an addon which saves camera data, location and rotation on a single camera so user can make different shots. I ran into this problem when testing to store data from projection. I noticed when going into camera view, everything was dark grey. Normally this mean its either zoomed in or zoomed out a lot. Using home to center, doesnt work. Checking the console showed me this error. It keeps on going as i move the cursor

WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail)
WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\

Exact steps for others to reproduce the error
01 open attached blend file
02 Go into camera mode
03 Open the console and see error message

**System Information** Operating system: Windows-10-10.0.26085-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 551.86 **Blender Version** Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: `40a5e739e270` Worked: (newest version of Blender that worked as expected) **Short description of error** When working on an addon which saves camera data, location and rotation on a single camera so user can make different shots. I ran into this problem when testing to store data from projection. I noticed when going into camera view, everything was dark grey. Normally this mean its either zoomed in or zoomed out a lot. Using home to center, doesnt work. Checking the console showed me this error. It keeps on going as i move the cursor ``` WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\gizmo_library_utils.cc:187 gizmo_window_project_2d: Gizmo "GIZMO_GT_cage_2d" of group "VIEW3D_GGT_camera_view" has matrix that could not be inverted (projection will fail) WARN (ed.gizmo.library_utils): C:\Users\blender\git\blender-v410\blender.git\source\blender\editors\gizmo_library\ ``` **Exact steps for others to reproduce the error** 01 open attached blend file 02 Go into camera mode 03 Open the console and see error message
Rombout Versluijs added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2024-03-28 22:45:02 +01:00

There is workflow to get about the same issue, but not error.
Start a blank new scene add a camera
Set it to ORTO
Set distance to 0.0
Center view using Home

Now when scrolling not shows. When you set it back to 6.0 still nothing shows. Eventually i got this Gizmo error showing above. I cant seem to reproduce the same report on a new file. But resetting the settings back doesnt return a normal camera view

The issue seems to happen when your in ORTHO view and zoom in a lot. Like so far you see the dark gray when using its. Seems like 3dview is than lost its position. Only way i could back to normal, was by adding a cube and then center view. Adding a cemera and then center view did not help

There is workflow to get about the same issue, but not error. Start a blank new scene add a camera Set it to ORTO Set distance to 0.0 Center view using Home Now when scrolling not shows. When you set it back to 6.0 still nothing shows. Eventually i got this Gizmo error showing above. I cant seem to reproduce the same report on a new file. But resetting the settings back doesnt return a normal camera view The issue seems to happen when your in ORTHO view and zoom in a lot. Like so far you see the dark gray when using its. Seems like 3dview is than lost its position. Only way i could back to normal, was by adding a cube and then center view. Adding a cemera and then center view did not help

It seems that the issue you are experiencing is not related directly to the gizmo, but rather the camera being left in a zoomed state that cannot be reversed.
If we check the value of rv3d.view_camera_zoom, we will see that it is nan, which stands for "Not a Number".

This appears to be a case of a corrupted .blend file. In order to further investigate and address this issue, it would be helpful if you could provide the steps to replicate the issue from scratch. (As seem in Bug Reporting - Complete Report (Corrupted Mesh))

But I'm confirming the report as this appears to be a case that can be avoided in code.

It seems that the issue you are experiencing is not related directly to the gizmo, but rather the camera being left in a zoomed state that cannot be reversed. If we check the value of `rv3d.view_camera_zoom`, we will see that it is `nan`, which stands for "Not a Number". This appears to be a case of a corrupted .blend file. In order to further investigate and address this issue, it would be helpful if you could provide the steps to replicate the issue from scratch. (As seem in [Bug Reporting - Complete Report (Corrupted Mesh)](https://developer.blender.org/docs/handbook/bug_reports/triaging_playbook/#complete-report-but-corrupted-mesh)) But I'm confirming the report as this appears to be a case that can be avoided in code.
Germano Cavalcante changed title from Gizmo cage error going into camera view [v4.1] to Camera left with zoom value 'nan' cannot have zoom state reverted 2024-03-29 00:19:49 +01:00

Can is ask where rv3d is, is that in scene or other space. Im i think perhaps due to the code it got some how mangled because the code works now but the same scene still shows nothing from camera view in 3dview. But when i render, it renders fine

EDIT
okay found it. Used a simple operator to reset it to 1 with simply script. I could not find anything to reset the zoom factor.
Though i wonder, i did not manually change the zoom. Must be because i had issues when i used to set the Onto cam and some setting went berserk. It show Inf m for scale factor

Can is ask where rv3d is, is that in scene or other space. Im i think perhaps due to the code it got some how mangled because the code works now but the same scene still shows nothing from camera view in 3dview. But when i render, it renders fine EDIT okay found it. Used a simple operator to reset it to 1 with simply script. I could not find anything to reset the zoom factor. Though i wonder, i did not manually change the zoom. Must be because i had issues when i used to set the Onto cam and some setting went berserk. It show Inf m for scale factor
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120041
No description provided.