Regression: Crash on EEVEE when launch with --debug-gpu-force-workarounds #103313
Labels
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#103313
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: Radeon RX 570 Series ATI Technologies Inc. 4.5.0 Core Profile Context 22.11.2.221130
Blender Version
Broken: version: 3.5.0 Alpha, branch: master, commit date: 2022-12-17 02:15, hash:
6797de4e10
Worked: 3.5 2022-12-08 02:10, hash:
04693f9074
Caused by
6b8bb26c45
Based on daily builds I have on my PC, it's between 2022-12-08 02:10, hash:
04693f9074
and 2022-12-10 12:43, hash:fe30856d83
.Short description of error
Blender crashes on EEVEE (Material Preview, Render Preview) when it was launched with
blender_debug_gpu_glitchworkaround
.blender_system_info.txt
blender_debug_output.txt
blender.crash.txt
Exact steps for others to reproduce the error
blender_debug_gpu_glitchworkaround
.Added subscriber: @persun
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Confirmed'
Hi, thanks for the report. I can confirm.
got assert hit in debug build at
GPU_material_status(mat) == GPU_MAT_SUCCESS
Added subscribers: @Michael-Parkin-White-Apple, @fclem
First bad commit:
6b8bb26c45
cc @Michael-Parkin-White-Apple
cc @fclem
Crash on EEVEE when launch with --debug-gpu-force-workaroundsto Regression: Crash on EEVEE when launch with --debug-gpu-force-workaroundsFrom a quick scan, looks like there has been an issue with the
cubemap_lib
fallback path for whenGPU_ARB_texture_cube_map_array
is undefined., following the changes to make EEVEE utilise CreateInfo.One immediate cause of the vetted shader errors comes from the prevalence of pass-specific resources. Even for cases where the cube maps aren't sampled in the vertex shader, as the shader resources are declared in all cases, this can cause an error if cubemap_lib is missing when generating shaders with cube map resource declarations. Previously, those declarations may not be present in the vertex shader, unless included via a library, which would have had the correct include for
cubemap_lib.glsl
.Second issue is that shader library dependencies get injected after resource declaration, so even if cubemap_lib is present, the sampler type declaration will exist above resource declarations. For this, I propose moving the cube map type declaration to
glsl_shader_defines.glsl
, such that it exists at the very top of the code. Then, cubemap_lib can still be included as-is, as dependent functions will still retain correct order.Will submit a sample patch once errors are fixed locally.
This issue was referenced by
dedca2c994
Changed status from 'Confirmed' to: 'Resolved'