Eevee rendered viewport asserts if a sunlights shadow 'clip end' is set lower than 'clip start' #66745

Closed
opened 2019-07-12 10:34:44 +02:00 by Philipp Oeser · 6 comments
Member

System Information
Operating system: fedora 30, 5.1.16-300.fc30.x86_64
Graphics card: nvidia 970m, 430.26 drivers

Blender Version
Broken: 7ad21c3876, master, 2019-07-11
Worked: (optional)

Short description of error
Eevee rendered viewport asserts if a sunlights shadow 'clip end' is set lower than 'clip start'

Exact steps for others to reproduce the error
eevee_clip_end_crash.blend

  • open file
  • set viewport to rendered
  • on the selected sun light, in the Properties Editor > Light > Shadow, set End to 4m (Clip Start is 5m -- anything below 5m should assert...)

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

backtrace

1  raise                                                  0x7ffff1b5be75 
2  abort                                                  0x7ffff1b46895 
3  draw_view_matrix_state_update draw_manager_data.c 1262 0x28edf1c      
4  DRW_view_update               draw_manager_data.c 1349 0x28ee393      
5  DRW_view_create               draw_manager_data.c 1296 0x28ee100      
6  eevee_ensure_cascade_views    eevee_lights.c      1327 0x29242b8      
7  EEVEE_draw_shadows            eevee_lights.c      1496 0x2924c28      
8  eevee_draw_background         eevee_engine.c      226  0x2915ff2      
9  drw_engines_draw_background   draw_manager.c      1163 0x28e5121      
10 DRW_draw_render_loop_ex       draw_manager.c      1653 0x28e64bc      
11 DRW_draw_view                 draw_manager.c      1544 0x28e5fa0      
12 view3d_draw_view              view3d_draw.c       1459 0x2dff354      
13 view3d_main_region_draw       view3d_draw.c       1483 0x2dff3f9      
14 ED_region_do_draw             area.c              567  0x2ebe719      
15 wm_draw_window_offscreen      wm_draw.c           616  0x23c6497      
16 wm_draw_window                wm_draw.c           752  0x23c6a16      
17 wm_draw_update                wm_draw.c           934  0x23c6fe2      
18 WM_main                       wm.c                423  0x23c2ff2      
19 main                          creator.c           500  0x1d7e266  
**System Information** Operating system: fedora 30, 5.1.16-300.fc30.x86_64 Graphics card: nvidia 970m, 430.26 drivers **Blender Version** Broken: 7ad21c3876c2453f11fd509a0157639d615567fc, master, 2019-07-11 Worked: (optional) **Short description of error** Eevee rendered viewport asserts if a sunlights shadow 'clip end' is set lower than 'clip start' **Exact steps for others to reproduce the error** [eevee_clip_end_crash.blend](https://archive.blender.org/developer/F7601856/eevee_clip_end_crash.blend) - open file - set viewport to rendered - on the selected sun light, in the `Properties Editor` > `Light` > `Shadow`, set `End` to 4m (`Clip Start` is 5m -- anything below 5m should assert...) `BLI_assert failed: /blender/source/blender/draw/intern/draw_manager_data.c:1262, draw_view_matrix_state_update(), at 'is_negative_m4(viewmat) == !is_negative_m4(winmat)'` backtrace ``` 1 raise 0x7ffff1b5be75 2 abort 0x7ffff1b46895 3 draw_view_matrix_state_update draw_manager_data.c 1262 0x28edf1c 4 DRW_view_update draw_manager_data.c 1349 0x28ee393 5 DRW_view_create draw_manager_data.c 1296 0x28ee100 6 eevee_ensure_cascade_views eevee_lights.c 1327 0x29242b8 7 EEVEE_draw_shadows eevee_lights.c 1496 0x2924c28 8 eevee_draw_background eevee_engine.c 226 0x2915ff2 9 drw_engines_draw_background draw_manager.c 1163 0x28e5121 10 DRW_draw_render_loop_ex draw_manager.c 1653 0x28e64bc 11 DRW_draw_view draw_manager.c 1544 0x28e5fa0 12 view3d_draw_view view3d_draw.c 1459 0x2dff354 13 view3d_main_region_draw view3d_draw.c 1483 0x2dff3f9 14 ED_region_do_draw area.c 567 0x2ebe719 15 wm_draw_window_offscreen wm_draw.c 616 0x23c6497 16 wm_draw_window wm_draw.c 752 0x23c6a16 17 wm_draw_update wm_draw.c 934 0x23c6fe2 18 WM_main wm.c 423 0x23c2ff2 19 main creator.c 500 0x1d7e266 ```
Author
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Clément Foucault was assigned by Philipp Oeser 2019-07-12 10:39:13 +02:00
Author
Member

Added subscriber: @fclem

Added subscriber: @fclem
Author
Member

@fclem: not sure if this is rather harmless? (release builds seems to survive, but this sounds as if it might have unwanted consequences...)

possible solutions:

  • clamp this in code
  • let RNA handle start/end similar to what is done for scene frame_start, frame_end (in that: setting end < start will decrement start as well; setting start > end will increment end as well...)

feel free to throw back at me, I think I could do both...

@fclem: not sure if this is rather harmless? (release builds seems to survive, but this sounds as if it might have unwanted consequences...) possible solutions: - clamp this in code - let RNA handle start/end similar to what is done for scene `frame_start`, `frame_end` (in that: setting end < start will decrement start as well; setting start > end will increment end as well...) feel free to throw back at me, I think I could do both...
Clément Foucault removed their assignment 2019-07-12 10:47:19 +02:00
Philipp Oeser was assigned by Clément Foucault 2019-07-12 10:47:19 +02:00

Yes you can do both.

Yes you can do both.
Philipp Oeser was unassigned by Dalai Felinto 2019-12-23 16:33:48 +01:00

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Clément Foucault self-assigned this 2020-01-23 14:56:55 +01:00

Sun shadows don't have clipstart/end anymore. The shadow bounds are computed automatically.

Sun shadows don't have clipstart/end anymore. The shadow bounds are computed automatically.
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#66745
No description provided.