Blender crashing when switching to the shading tab #116489

Closed
opened 2023-12-23 13:08:25 +01:00 by Emoubernoob · 5 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 531.41

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-23 05:19, hash: e18e4a1acf25
Worked: (4.1 alpha 69d22a42d0) that i was using.

Short description of error
Blender crashes to desktop when the shading tab is selected.

Exact steps for others to reproduce the error
simply clicking the shading tab.

Based on the default startup
I had rigify and node wrangler enabled, but the problem persisted after disabling both.

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 531.41 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-23 05:19, hash: `e18e4a1acf25` Worked: (4.1 alpha 69d22a42d06f) that i was using. **Short description of error** Blender crashes to desktop when the shading tab is selected. **Exact steps for others to reproduce the error** simply clicking the shading tab. Based on the default startup I had rigify and node wrangler enabled, but the problem persisted after disabling both.
Emoubernoob added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-12-23 13:08:26 +01:00

Can reproduce the issue with Eevee(Legacy) or Eevee selected as renderer when switching to "Rendered View".
Blender also crashes when Eevee(Legacy) or Eevee is selected as renderer and a new material is created or an existing material is edited. The crash does not occur when using Cycles.

System Information
Operating system: Linux-6.6.8-2-MANJARO-x86_64-with-glibc2.38 64 Bits, X11 UI
Graphics card: AMD Radeon Graphics (rembrandt, LLVM 16.0.6, DRM 3.54, 6.6.8-2-MANJARO) AMD 4.6 (Core Profile) Mesa 23.1.9-manjaro1.1

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-23 05:19, hash: e18e4a1acf25
Worked: blender-4.1.0-alpha+main.69d22a42d06f-linux.x86_64-release (maybe later versions work as well)

Console output
Using Eevee(Legacy)

ERROR (gpu.shader): GPU_material_compile VertShader: 
      | 
 1090 | typedef enum ClosureType {
      |  ^
      | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef'
      | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file

ERROR (gpu.shader): GPU_material_compile FragShader: 
      | 
 1098 | typedef enum ClosureType {
      |  ^
      | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef'
      | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file

ERROR (gpu.shader): GPU_material_compile VertShader: 
      | 
 1090 | typedef enum ClosureType {
      |  ^
      | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef'
      | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file

ERROR (gpu.shader): GPU_material_compile FragShader: 
      | 
 1098 | typedef enum ClosureType {
      |  ^
      | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef'
      | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file

Writing: /tmp/blender.crash.txt
zsh: segmentation fault (core dumped)  ./blender

Using Eevee

ERROR (gpu.shader): eevee_deferred_planar_eval FragShader: 
      | 
 3878 | typedef enum ClosureType {
      |  ^
      | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef'
      | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file

EEVEE: error: Could not compile static shader "eevee_deferred_planar_eval"
Writing: /tmp/blender.crash.txt
zsh: segmentation fault (core dumped)  ./blender

I've also attached the blender.crash.txt

Can reproduce the issue with Eevee(Legacy) or Eevee selected as renderer when switching to "Rendered View". Blender also crashes when Eevee(Legacy) or Eevee is selected as renderer and a new material is created or an existing material is edited. The crash does not occur when using Cycles. **System Information** Operating system: Linux-6.6.8-2-MANJARO-x86_64-with-glibc2.38 64 Bits, X11 UI Graphics card: AMD Radeon Graphics (rembrandt, LLVM 16.0.6, DRM 3.54, 6.6.8-2-MANJARO) AMD 4.6 (Core Profile) Mesa 23.1.9-manjaro1.1 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-23 05:19, hash: `e18e4a1acf25` Worked: blender-4.1.0-alpha+main.69d22a42d06f-linux.x86_64-release (maybe later versions work as well) **Console output** Using Eevee(Legacy) ``` ERROR (gpu.shader): GPU_material_compile VertShader: | 1090 | typedef enum ClosureType { | ^ | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef' | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file ERROR (gpu.shader): GPU_material_compile FragShader: | 1098 | typedef enum ClosureType { | ^ | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef' | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file ERROR (gpu.shader): GPU_material_compile VertShader: | 1090 | typedef enum ClosureType { | ^ | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef' | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file ERROR (gpu.shader): GPU_material_compile FragShader: | 1098 | typedef enum ClosureType { | ^ | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef' | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file Writing: /tmp/blender.crash.txt zsh: segmentation fault (core dumped) ./blender ``` Using Eevee ``` ERROR (gpu.shader): eevee_deferred_planar_eval FragShader: | 3878 | typedef enum ClosureType { | ^ | gpu_shader_codegen_lib.glsl:131:2: Error: illegal use of reserved word `typedef' | gpu_shader_codegen_lib.glsl:131:2: Error: syntax error, unexpected ERROR_TOK, expecting end of file EEVEE: error: Could not compile static shader "eevee_deferred_planar_eval" Writing: /tmp/blender.crash.txt zsh: segmentation fault (core dumped) ./blender ``` I've also attached the blender.crash.txt

I'm experiencing the exact same issue, crashes every time I switch to shader view with either Eevee, Eevee (legacy) or Cycles.

System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-23 05:19, hash: e18e4a1acf25

I'm experiencing the exact same issue, crashes every time I switch to shader view with either Eevee, Eevee (legacy) or Cycles. **System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-23 05:19, hash: `e18e4a1acf25`
Contributor

f4275cc4df
^^ @fclem broke material and render previews for EEVEE (both) and Cycles

My guess is enum is not fully supported in glsl? gpu_shader_codegen_lib.glsl#L131

f4275cc4df ^^ @fclem broke material and render previews for EEVEE (both) and Cycles My guess is enum is not fully supported in glsl? [gpu_shader_codegen_lib.glsl#L131](https://projects.blender.org/blender/blender/src/commit/f4275cc4dfbe268ba5f6f14402117e00be7ee1e2/source/blender/gpu/shaders/gpu_shader_codegen_lib.glsl#L131)
Member

I experienced it with blender-4.1.0-alpha+main.e18e4a1acf25-windows.amd64-release.zip

blender-4.1.0-alpha+main.db8d381f7159-windows.amd64-release.zip works fine

I experienced it with blender-4.1.0-alpha+main.e18e4a1acf25-windows.amd64-release.zip blender-4.1.0-alpha+main.db8d381f7159-windows.amd64-release.zip works fine
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-12-24 08:18:16 +01:00

continue to crash with eevee next with the new release.

continue to crash with eevee next with the new release.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
6 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#116489
No description provided.