Crash using EEVEE and selecting Material Preview or Rendered #116761

Closed
opened 2024-01-03 18:33:18 +01:00 by Guillermo Venegas · 9 comments
Contributor

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

Blender Version
Broken: version: 4.1.0 Alpha, branch: test-dnd-fh, commit date: 2024-01-02 20:54, hash: a3d305ec60b5
Worked: (newest version of Blender that worked as expected)

Short description of error
Crash using EEVEE and selecting Material Preview or Rendered

Exact steps for others to reproduce the error
Select EEVEE and selecting Material Preview or Rendered crash will happen
Sometimes this output shows:
: Not a TIFF or MDI file, bad magic number 12150 (0x2f76).

**System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: version: 4.1.0 Alpha, branch: test-dnd-fh, commit date: 2024-01-02 20:54, hash: `a3d305ec60b5` Worked: (newest version of Blender that worked as expected) **Short description of error** Crash using EEVEE and selecting `Material Preview` or `Rendered` **Exact steps for others to reproduce the error** Select `EEVEE` and selecting `Material Preview` or `Rendered` crash will happen Sometimes this output shows: `: Not a TIFF or MDI file, bad magic number 12150 (0x2f76).`
Guillermo Venegas added the
Status
Needs Triage
Severity
Normal
Type
Report
labels 2024-01-03 18:33:19 +01:00
Author
Contributor

image

![image](/attachments/81386002-afa6-4ee2-9886-be659967092e)
273 KiB
casey-bianco-davis added a new dependency 2024-01-03 19:32:37 +01:00
casey-bianco-davis removed a dependency 2024-01-03 19:32:42 +01:00

I do see assert triggered in debugger BLI_assert(STREQ(name, name_buffer_ + inputs[i].name_offset)); in

libc.so.6!__pthread_kill_implementation(int no_tid, int signo, pthread_t threadid) (pthread_kill.c:44)
libc.so.6!__pthread_kill_internal(int signo, pthread_t threadid) (pthread_kill.c:78)
libc.so.6!__GI___pthread_kill(pthread_t threadid, int signo) (pthread_kill.c:89)
libc.so.6!__GI_raise(int sig) (raise.c:26)
libc.so.6!__GI_abort() (abort.c:79)
_BLI_assert_abort() (/home/me/blender-git/1/source/blender/blenlib/intern/BLI_assert.c:48)
blender::gpu::ShaderInterface::input_lookup(const blender::gpu::ShaderInterface * const this, const blender::gpu::ShaderInput * const inputs, const uint inputs_len, const char * name) (/home/me/blender-git/1/source/blender/gpu/intern/gpu_shader_interface.hh:296)
blender::gpu::ShaderInterface::constant_get(const blender::gpu::ShaderInterface * const this, const char * name) (/home/me/blender-git/1/source/blender/gpu/intern/gpu_shader_interface.hh:123)
GPU_shader_get_constant(GPUShader * shader, const char * name) (/home/me/blender-git/1/source/blender/gpu/intern/gpu_shader.cc:616)
blender::draw::detail::PassBase<blender::draw::command::DrawCommandBuf>::specialize_constant(blender::draw::detail::PassBase<blender::draw::command::DrawCommandBuf> * const this, GPUShader * shader, const char * constant_name, const bool & constant_value) (/home/me/blender-git/1/source/blender/draw/intern/draw_pass.hh:1303)
blender::eevee::DeferredLayer::end_sync(blender::eevee::DeferredLayer * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_pipeline.cc:618)
blender::eevee::DeferredPipeline::end_sync(blender::eevee::DeferredPipeline * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_pipeline.cc:853)
blender::eevee::PipelineModule::end_sync(blender::eevee::PipelineModule * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_pipeline.hh:732)
blender::eevee::Instance::end_sync(blender::eevee::Instance * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_instance.cc:294)
eevee_cache_finish(void * vedata) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_engine.cc:129)
drw_engines_cache_finish() (/home/me/blender-git/1/source/blender/draw/intern/draw_manager_c.cc:1104)
DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) (/home/me/blender-git/1/source/blender/draw/intern/draw_manager_c.cc:1737)
DRW_draw_view(const bContext * C) (/home/me/blender-git/1/source/blender/draw/intern/draw_manager_c.cc:1635)
view3d_draw_view(const bContext * C, ARegion * region) (/home/me/blender-git/1/source/blender/editors/space_view3d/view3d_draw.cc:1596)
view3d_main_region_draw(const bContext * C, ARegion * region) (/home/me/blender-git/1/source/blender/editors/space_view3d/view3d_draw.cc:1630)

You report this in branch, but changes seem unrelated to this issue, so I will confirm. Though we may see 2 different issues as well.
Build from bot does not crash here on Linux with RTX3060

I do see assert triggered in debugger `BLI_assert(STREQ(name, name_buffer_ + inputs[i].name_offset));` in ``` libc.so.6!__pthread_kill_implementation(int no_tid, int signo, pthread_t threadid) (pthread_kill.c:44) libc.so.6!__pthread_kill_internal(int signo, pthread_t threadid) (pthread_kill.c:78) libc.so.6!__GI___pthread_kill(pthread_t threadid, int signo) (pthread_kill.c:89) libc.so.6!__GI_raise(int sig) (raise.c:26) libc.so.6!__GI_abort() (abort.c:79) _BLI_assert_abort() (/home/me/blender-git/1/source/blender/blenlib/intern/BLI_assert.c:48) blender::gpu::ShaderInterface::input_lookup(const blender::gpu::ShaderInterface * const this, const blender::gpu::ShaderInput * const inputs, const uint inputs_len, const char * name) (/home/me/blender-git/1/source/blender/gpu/intern/gpu_shader_interface.hh:296) blender::gpu::ShaderInterface::constant_get(const blender::gpu::ShaderInterface * const this, const char * name) (/home/me/blender-git/1/source/blender/gpu/intern/gpu_shader_interface.hh:123) GPU_shader_get_constant(GPUShader * shader, const char * name) (/home/me/blender-git/1/source/blender/gpu/intern/gpu_shader.cc:616) blender::draw::detail::PassBase<blender::draw::command::DrawCommandBuf>::specialize_constant(blender::draw::detail::PassBase<blender::draw::command::DrawCommandBuf> * const this, GPUShader * shader, const char * constant_name, const bool & constant_value) (/home/me/blender-git/1/source/blender/draw/intern/draw_pass.hh:1303) blender::eevee::DeferredLayer::end_sync(blender::eevee::DeferredLayer * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_pipeline.cc:618) blender::eevee::DeferredPipeline::end_sync(blender::eevee::DeferredPipeline * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_pipeline.cc:853) blender::eevee::PipelineModule::end_sync(blender::eevee::PipelineModule * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_pipeline.hh:732) blender::eevee::Instance::end_sync(blender::eevee::Instance * const this) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_instance.cc:294) eevee_cache_finish(void * vedata) (/home/me/blender-git/1/source/blender/draw/engines/eevee_next/eevee_engine.cc:129) drw_engines_cache_finish() (/home/me/blender-git/1/source/blender/draw/intern/draw_manager_c.cc:1104) DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) (/home/me/blender-git/1/source/blender/draw/intern/draw_manager_c.cc:1737) DRW_draw_view(const bContext * C) (/home/me/blender-git/1/source/blender/draw/intern/draw_manager_c.cc:1635) view3d_draw_view(const bContext * C, ARegion * region) (/home/me/blender-git/1/source/blender/editors/space_view3d/view3d_draw.cc:1596) view3d_main_region_draw(const bContext * C, ARegion * region) (/home/me/blender-git/1/source/blender/editors/space_view3d/view3d_draw.cc:1630) ``` You report this in branch, but changes seem unrelated to this issue, so I will confirm. Though we may see 2 different issues as well. Build from bot does not crash here on Linux with RTX3060
Richard Antalik added
Module
Viewport & EEVEE
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-01-03 20:59:27 +01:00

Same as #116623 ?

Same as #116623 ?
Member

Possibly related, yes.

Sometimes this output shows:
: Not a TIFF or MDI file, bad magic number 12150 (0x2f76).

Not sure about this. Haven't got this myself but seen in logs of some other reports

Possibly related, yes. > Sometimes this output shows: : Not a TIFF or MDI file, bad magic number 12150 (0x2f76). Not sure about this. Haven't got this myself but seen in logs of some other reports

That "TIFF" spew will be cleaned up by me a bit later in the week. It is harmless.

That "TIFF" spew will be cleaned up by me a bit later in the week. It is harmless.

Getting this crash on my desktop as well

Getting this crash on my desktop as well[](url)

Still crashing but with different error
Windows 10 Pro

Read prefs: "C:\Users\john\AppData\Roaming\Blender Foundation\Blender\4.1\config\userpref.blend"
ERROR (gpu.shader): eevee_deferred_planar_eval FragShader:
|
4842 | return reduce_add(vec4(not(equal(closure_types, uvec4(0u)))));
|
| eevee_gbuffer_lib.glsl:721:0: Error: C7011: implicit cast from "float" to "uint"
|
4852 | int closure_type = CLOSURE_NONE_ID;
|
| eevee_gbuffer_lib.glsl:731:0: Error: C7011: implicit cast from "uint" to "int"
|
4855 | closure_type = CLOSURE_BSDF_DIFFUSE_ID;
|
| eevee_gbuffer_lib.glsl:734:0: Error: C7011: implicit cast from "uint" to "int"
|
4859 | closure_type = CLOSURE_BSDF_TRANSLUCENT_ID;
|
| eevee_gbuffer_lib.glsl:738:0: Error: C7011: implicit cast from "uint" to "int"
|
4863 | closure_type = CLOSURE_BSSRDF_BURLEY_ID;
|
| eevee_gbuffer_lib.glsl:742:0: Error: C7011: implicit cast from "uint" to "int"
|
4868 | closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID;
|
| eevee_gbuffer_lib.glsl:747:0: Error: C7011: implicit cast from "uint" to "int"
|
4873 | closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID;
|
| eevee_gbuffer_lib.glsl:752:0: Error: C7011: implicit cast from "uint" to "int"

EEVEE: error: Could not compile static shader "eevee_deferred_planar_eval"
Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF7F25B2D54
Module : blender.exe
Thread : 00009a88
Writing: C:\Users\john\AppData\Local\Temp\blender.crash.txt

Still crashing but with different error Windows 10 Pro Read prefs: "C:\Users\john\AppData\Roaming\Blender Foundation\Blender\4.1\config\userpref.blend" ERROR (gpu.shader): eevee_deferred_planar_eval FragShader: | 4842 | return reduce_add(vec4(not(equal(closure_types, uvec4(0u))))); | | eevee_gbuffer_lib.glsl:721:0: Error: C7011: implicit cast from "float" to "uint" | 4852 | int closure_type = CLOSURE_NONE_ID; | | eevee_gbuffer_lib.glsl:731:0: Error: C7011: implicit cast from "uint" to "int" | 4855 | closure_type = CLOSURE_BSDF_DIFFUSE_ID; | | eevee_gbuffer_lib.glsl:734:0: Error: C7011: implicit cast from "uint" to "int" | 4859 | closure_type = CLOSURE_BSDF_TRANSLUCENT_ID; | | eevee_gbuffer_lib.glsl:738:0: Error: C7011: implicit cast from "uint" to "int" | 4863 | closure_type = CLOSURE_BSSRDF_BURLEY_ID; | | eevee_gbuffer_lib.glsl:742:0: Error: C7011: implicit cast from "uint" to "int" | 4868 | closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID; | | eevee_gbuffer_lib.glsl:747:0: Error: C7011: implicit cast from "uint" to "int" | 4873 | closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID; | | eevee_gbuffer_lib.glsl:752:0: Error: C7011: implicit cast from "uint" to "int" EEVEE: error: Could not compile static shader "eevee_deferred_planar_eval" Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF7F25B2D54 Module : blender.exe Thread : 00009a88 Writing: C:\Users\john\AppData\Local\Temp\blender.crash.txt

On Ubuntu 22.04, with Blender 4.1 from Snap, I have the same error as John.

ERROR (gpu.shader): eevee_deferred_planar_eval FragShader: 
      | 
 4842 |   return reduce_add(vec4(not(equal(closure_types, uvec4(0u)))));
      |   ^
      | eevee_gbuffer_lib.glsl:721:3: Error: could not implicitly convert return value to uint, in function `gbuffer_closure_count'
      | 
 4852 |     int closure_type = CLOSURE_NONE_ID;
      |   ^
      | eevee_gbuffer_lib.glsl:731:3: Error: initializer of type uint cannot be assigned to variable of type int
      | 
 4855 |         closure_type = CLOSURE_BSDF_DIFFUSE_ID;
      |   ^
      | eevee_gbuffer_lib.glsl:734:3: Error: value of type uint cannot be assigned to variable of type int
      | 
 4859 |         closure_type = CLOSURE_BSDF_TRANSLUCENT_ID;
      |   ^
      | eevee_gbuffer_lib.glsl:738:3: Error: value of type uint cannot be assigned to variable of type int
      | 
 4863 |         closure_type = CLOSURE_BSSRDF_BURLEY_ID;
      |   ^
      | eevee_gbuffer_lib.glsl:742:3: Error: value of type uint cannot be assigned to variable of type int
      | 
 4868 |         closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID;
      |   ^
      | eevee_gbuffer_lib.glsl:747:3: Error: value of type uint cannot be assigned to variable of type int
      | 
 4873 |         closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID;
      |   ^
      | eevee_gbuffer_lib.glsl:752:3: Error: value of type uint cannot be assigned to variable of type int

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

The crash file doesn't seem to contain anything useful:

# Blender 4.1.0, Commit date: 2024-01-07 19:37, Hash 268f93d7639b
bpy.context.scene.render.engine = 'BLENDER_EEVEE_NEXT'  # Property

# backtrace
/snap/blender/4431/blender() [0xedece0]
/snap/blender/4431/blender() [0x826cac]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fbacce42520]
/snap/blender/4431/blender() [0x563e801]
/snap/blender/4431/blender() [0x1150617]
/snap/blender/4431/blender() [0x1125da0]
/snap/blender/4431/blender() [0x10c8b19]
/snap/blender/4431/blender() [0x10cb7dd]
/snap/blender/4431/blender() [0x1ef8915]
/snap/blender/4431/blender() [0x1569cf7]
/snap/blender/4431/blender() [0xf28652]
/snap/blender/4431/blender() [0xf23d60]
/snap/blender/4431/blender() [0x713aed]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fbacce29d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7fbacce29e40]
/snap/blender/4431/blender() [0x822bce]

# Python backtrace

Is it the same issue?

On Ubuntu 22.04, with Blender 4.1 from Snap, I have the same error as John. ``` ERROR (gpu.shader): eevee_deferred_planar_eval FragShader: | 4842 | return reduce_add(vec4(not(equal(closure_types, uvec4(0u))))); | ^ | eevee_gbuffer_lib.glsl:721:3: Error: could not implicitly convert return value to uint, in function `gbuffer_closure_count' | 4852 | int closure_type = CLOSURE_NONE_ID; | ^ | eevee_gbuffer_lib.glsl:731:3: Error: initializer of type uint cannot be assigned to variable of type int | 4855 | closure_type = CLOSURE_BSDF_DIFFUSE_ID; | ^ | eevee_gbuffer_lib.glsl:734:3: Error: value of type uint cannot be assigned to variable of type int | 4859 | closure_type = CLOSURE_BSDF_TRANSLUCENT_ID; | ^ | eevee_gbuffer_lib.glsl:738:3: Error: value of type uint cannot be assigned to variable of type int | 4863 | closure_type = CLOSURE_BSSRDF_BURLEY_ID; | ^ | eevee_gbuffer_lib.glsl:742:3: Error: value of type uint cannot be assigned to variable of type int | 4868 | closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID; | ^ | eevee_gbuffer_lib.glsl:747:3: Error: value of type uint cannot be assigned to variable of type int | 4873 | closure_type = CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID; | ^ | eevee_gbuffer_lib.glsl:752:3: Error: value of type uint cannot be assigned to variable of type int EEVEE: error: Could not compile static shader "eevee_deferred_planar_eval" Writing: /tmp/blender.crash.txt Segmentation fault (core dumped) ``` The crash file doesn't seem to contain anything useful: ``` # Blender 4.1.0, Commit date: 2024-01-07 19:37, Hash 268f93d7639b bpy.context.scene.render.engine = 'BLENDER_EEVEE_NEXT' # Property # backtrace /snap/blender/4431/blender() [0xedece0] /snap/blender/4431/blender() [0x826cac] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fbacce42520] /snap/blender/4431/blender() [0x563e801] /snap/blender/4431/blender() [0x1150617] /snap/blender/4431/blender() [0x1125da0] /snap/blender/4431/blender() [0x10c8b19] /snap/blender/4431/blender() [0x10cb7dd] /snap/blender/4431/blender() [0x1ef8915] /snap/blender/4431/blender() [0x1569cf7] /snap/blender/4431/blender() [0xf28652] /snap/blender/4431/blender() [0xf23d60] /snap/blender/4431/blender() [0x713aed] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fbacce29d90] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7fbacce29e40] /snap/blender/4431/blender() [0x822bce] # Python backtrace ``` Is it the same issue?
Author
Contributor

Already fixed on main

Already fixed on main
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-01-08 15:02:15 +01:00
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
8 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#116761
No description provided.