Regression: Crash when hair curve shader uses attributes in Eevee and hair object animated #119787

Closed
opened 2024-03-22 13:58:00 +01:00 by Ben · 1 comment

System Information
Operating system: Windows-10-10.0.19045-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 Beta, branch: blender-v4.1-release, commit date: 2024-03-09 11:27, hash: 0f1e93e78a85
Worked: version: 4.1.0 Beta, branch: blender-v4.1-release, commit date: 2024-03-07 18:37, hash: e0c6db81ea0e

Caused by: 1cca960677

Short description of error
When a shader on hair curves uses an attribute, like the surface_normal attribute in the example file, Blender can crash when the hair object is moved or animated.

It only seems to happen when the hair object is selected in Eevee render or material preview.

Exact steps for others to reproduce the error

  1. Open attached file. Make sure the hair object is selected. Switch to rendered view and then play the animation. Blender should crash within a few seconds.
  2. Playing the animation while shaders and still compiling crashed Blender immediately.
**System Information** Operating system: Windows-10-10.0.19045-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 Beta, branch: blender-v4.1-release, commit date: 2024-03-09 11:27, hash: `0f1e93e78a85` Worked: version: 4.1.0 Beta, branch: blender-v4.1-release, commit date: 2024-03-07 18:37, hash: `e0c6db81ea0e` Caused by: 1cca96067781f569c6bced0c4f363d71781df092 **Short description of error** When a shader on hair curves uses an attribute, like the surface_normal attribute in the example file, Blender can crash when the hair object is moved or animated. It only seems to happen when the hair object is selected in Eevee render or material preview. **Exact steps for others to reproduce the error** 1. Open attached file. Make sure the hair object is selected. Switch to rendered view and then play the animation. Blender should crash within a few seconds. 2. Playing the animation while shaders and still compiling crashed Blender immediately.
Ben added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2024-03-22 13:58:01 +01:00
Iliya Katushenock added this to the 4.1 milestone 2024-03-22 13:59:53 +01:00

Read after free in GPU_vertbuf_bind_as_texture

>	blender.exe!GPU_vertbuf_bind_as_texture(GPUVertBuf * verts, int binding) Line 346	C++
 	blender.exe!draw_update_uniforms(DRWShadingGroup * shgroup, DRWCommandsState * state, bool * use_tfeedback) Line 717	C++
 	blender.exe!draw_shgroup(DRWShadingGroup * shgroup, DRWState pass_state) Line 1025	C++
 	blender.exe!drw_draw_pass_ex(DRWPass * pass, DRWShadingGroup * start_group, DRWShadingGroup * end_group) Line 1219	C++
 	blender.exe!DRW_draw_pass(DRWPass * pass) Line 1259	C++
 	blender.exe!eevee_draw_scene(void * vedata) Line 311	C++
 	blender.exe!drw_engines_draw_scene() Line 1121	C++
 	blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1756	C++
 	blender.exe!DRW_draw_view(const bContext * C) Line 1626	C++
 	blender.exe!view3d_draw_view(const bContext * C, ARegion * region) Line 1569	C++
 	blender.exe!view3d_main_region_draw(const bContext * C, ARegion * region) Line 1605	C++
 	blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 533	C++
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 1007	C++
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1176	C++
 	blender.exe!wm_draw_update(bContext * C) Line 1577	C++
 	blender.exe!WM_main(bContext * C) Line 642	C++
 	blender.exe!main(int argc, const char * * __formal) Line 593	C++
 	[External Code]	

Read after free in `GPU_vertbuf_bind_as_texture` ``` > blender.exe!GPU_vertbuf_bind_as_texture(GPUVertBuf * verts, int binding) Line 346 C++ blender.exe!draw_update_uniforms(DRWShadingGroup * shgroup, DRWCommandsState * state, bool * use_tfeedback) Line 717 C++ blender.exe!draw_shgroup(DRWShadingGroup * shgroup, DRWState pass_state) Line 1025 C++ blender.exe!drw_draw_pass_ex(DRWPass * pass, DRWShadingGroup * start_group, DRWShadingGroup * end_group) Line 1219 C++ blender.exe!DRW_draw_pass(DRWPass * pass) Line 1259 C++ blender.exe!eevee_draw_scene(void * vedata) Line 311 C++ blender.exe!drw_engines_draw_scene() Line 1121 C++ blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1756 C++ blender.exe!DRW_draw_view(const bContext * C) Line 1626 C++ blender.exe!view3d_draw_view(const bContext * C, ARegion * region) Line 1569 C++ blender.exe!view3d_main_region_draw(const bContext * C, ARegion * region) Line 1605 C++ blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 533 C++ blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 1007 C++ blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1176 C++ blender.exe!wm_draw_update(bContext * C) Line 1577 C++ blender.exe!WM_main(bContext * C) Line 642 C++ blender.exe!main(int argc, const char * * __formal) Line 593 C++ [External Code] ```
Clément Foucault self-assigned this 2024-03-22 15:31:30 +01:00
Iliya Katushenock changed title from Crash when hair curve shader uses attributes in Eevee and hair object animated to Regression: Crash when hair curve shader uses attributes in Eevee and hair object animated 2024-03-22 15:37:00 +01:00
Hans Goudey added
Type
Bug
and removed
Type
Report
labels 2024-03-22 16:52:22 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-03-22 17:20:08 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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#119787
No description provided.