Camera perspective, corrupt 3D view in one workspace tab. #67052

Closed
opened 2019-07-16 13:23:18 +02:00 by CarlG · 13 comments

System Information
Operating system: Linux-4.15.0-51-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: Radeon RX Vega (VEGA10, DRM 3.23.0, 4.15.0-51-generic, LLVM 8.0.0) X.Org 4.5 (Core Profile) Mesa 19.0.2

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 13:50, hash: 06312c6d2d
Worked: (optional)

Short description of error
Sometimes a 3D view can become corrupted and can't show camera view.
The viewport will not show anything.
Rendered viewport will flip between Path Tracing Sample counts but nothing will get done.
Rendering an image from the camera will work, suggesting it's not the camera itself that is erroneous.
Switching to other tabs with a 3D view will also work fine, suggesting it's that specific 3D view that is corrupted.

Exact steps for others to reproduce the error
In provided file:

  • Observe that in Shading.002 tab, everything works - camera perspective and user perspective view, solid and rendered.
  • Switch to Shading tab and you get a gray wall in camera perspective, while user perspective view works. Switching to rendered view while in camera perspective, the sample counter will just flip between a couple of numbers rather than complete.

I've had this happen a couple of times now, for no apparent reason - I can't reproduce on demand.
Clicking the add workspace quickly fixes it, but the first time I lost hours trying to figure out what was going on.
Trying to search for bugs here, all I got was the error message:
Unhandled Exception ("PhutilAggregateException")

Note: In my startup, I am using two linked math libraries (bunch of material node groups); one with failing image texture links and one with updated texture links. In the original work file (completely stripped down here), I was using linked blend containing objects in instanced collections and objects regularly instanced. Some objects have textures on multiple UVs (incl BastioniLab human). That's about the only "special" things I can remember about the real file.

CameraViewBuggyShadingInterfaceBug.blend

**System Information** Operating system: Linux-4.15.0-51-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: Radeon RX Vega (VEGA10, DRM 3.23.0, 4.15.0-51-generic, LLVM 8.0.0) X.Org 4.5 (Core Profile) Mesa 19.0.2 **Blender Version** Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 13:50, hash: `06312c6d2d` Worked: (optional) **Short description of error** Sometimes a 3D view can become corrupted and can't show camera view. The viewport will not show anything. Rendered viewport will flip between Path Tracing Sample counts but nothing will get done. Rendering an image from the camera will work, suggesting it's not the camera itself that is erroneous. Switching to other tabs with a 3D view will also work fine, suggesting it's that specific 3D view that is corrupted. **Exact steps for others to reproduce the error** In provided file: * Observe that in Shading.002 tab, everything works - camera perspective and user perspective view, solid and rendered. * Switch to Shading tab and you get a gray wall in camera perspective, while user perspective view works. Switching to rendered view while in camera perspective, the sample counter will just flip between a couple of numbers rather than complete. I've had this happen a couple of times now, for no apparent reason - I can't reproduce on demand. Clicking the add workspace quickly fixes it, but the first time I lost hours trying to figure out what was going on. Trying to search for bugs here, all I got was the error message: Unhandled Exception ("PhutilAggregateException") Note: In my startup, I am using two linked math libraries (bunch of material node groups); one with failing image texture links and one with updated texture links. In the original work file (completely stripped down here), I was using linked blend containing objects in instanced collections and objects regularly instanced. Some objects have textures on multiple UVs (incl BastioniLab human). That's about the only "special" things I can remember about the real file. [CameraViewBuggyShadingInterfaceBug.blend](https://archive.blender.org/developer/F7612868/CameraViewBuggyShadingInterfaceBug.blend)
Author

Added subscriber: @CarlG

Added subscriber: @CarlG

Added subscribers: @fclem, @Jeroen-Bakker, @ZedDB

Added subscribers: @fclem, @Jeroen-Bakker, @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2019-07-17 11:51:38 +02:00

I'm getting and assert:

BLI_assert failed: /home/zed/prog/blender/source/blender/draw/intern/draw_manager_data.c:1264, draw_view_matrix_state_update(), at 'is_negative_m4(viewmat) == !is_negative_m4(winmat)'

And if I print the winmat, we can see that in contains nan values:

 -nan 0.000000 -nan 0.000000
0.000000 -nan -nan 0.000000
0.000000 0.000000 -1.000020 -0.002000
0.000000 0.000000 -1.000000 0.000000

@fclem @Jeroen-Bakker any idea what might cause this?

I'm getting and assert: ``` BLI_assert failed: /home/zed/prog/blender/source/blender/draw/intern/draw_manager_data.c:1264, draw_view_matrix_state_update(), at 'is_negative_m4(viewmat) == !is_negative_m4(winmat)' ``` And if I print the winmat, we can see that in contains nan values: ``` -nan 0.000000 -nan 0.000000 0.000000 -nan -nan 0.000000 0.000000 0.000000 -1.000020 -0.002000 0.000000 0.000000 -1.000000 0.000000 ``` @fclem @Jeroen-Bakker any idea what might cause this?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Probably totally unrelated, but I am getting this exact assert in #66745

Probably totally unrelated, but I am getting this exact assert in #66745

Ok this is because the view3D is corrupted (somehow).

rv3d->camdx and rv3d->camdy are NaN in the file for this View3D leading to incorrect matrix calculation.

Workaround : The only way to reset them seems to be the "View Camera Center" operator.

Not sure how you ended up with this as theses values are clamped. Maybe zooming too much in camera view?

Not sure how to solve it either. Maybe some underflow/overflow protection at some level?

Ok this is because the view3D is corrupted (somehow). rv3d->camdx and rv3d->camdy are NaN in the file for this View3D leading to incorrect matrix calculation. Workaround : The only way to reset them seems to be the "View Camera Center" operator. Not sure how you ended up with this as theses values are clamped. Maybe zooming too much in camera view? Not sure how to solve it either. Maybe some underflow/overflow protection at some level?

@CarlG could you try to figure out what is causing this for you?
It will be quite hard for us to fix it if we do not have a way to reproduce it.

@CarlG could you try to figure out what is causing this for you? It will be quite hard for us to fix it if we do not have a way to reproduce it.
Author

Workaround : The only way to reset them seems to be the "View Camera Center" operator.
What does the above mean? How would I execute this?

I can try zooming around, way too far and see if something happens.
Sorry, but I have no idea how it happens, and considering it only happened a couple of times I doubt it's going to be easy for me to reproduce as well.

Currently I add a new Workspace, but that ends up last and without stepwise relocating (only first and last) it's kinda annoying :)
But again, only a couple of times and not in important projects.

Workaround : The only way to reset them seems to be the "View Camera Center" operator. What does the above mean? How would I execute this? I can try zooming around, way too far and see if something happens. Sorry, but I have no idea how it happens, and considering it only happened a couple of times I doubt it's going to be easy for me to reproduce as well. Currently I add a new Workspace, but that ends up last and without stepwise relocating (only first and last) it's kinda annoying :) But again, only a couple of times and not in important projects.

@CarlG "View Camera Center" is an operator. Search for it when in camera view after pressing F3 to invoke the search operator box.

@CarlG "View Camera Center" is an operator. Search for it when in camera view after pressing F3 to invoke the search operator box.
Author

Got it, thanks.

Got it, thanks.
Clément Foucault was unassigned by Dalai Felinto 2019-12-23 16:33:42 +01:00

Added subscriber: @filibis

Added subscriber: @filibis

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Emir Sinan Gürlek self-assigned this 2020-01-11 03:19:25 +01:00

I'm closing this as exact steps to reproduce the problem cannot be provided. Also the issue has a good workaround. Reopen if necessary.

I'm closing this as exact steps to reproduce the problem cannot be provided. Also the issue has a good workaround. Reopen if necessary.
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
5 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#67052
No description provided.