EEVEE: Hair/Curve Rendering Crash on Metal #117169

Closed
opened 2024-01-16 14:53:25 +01:00 by Jeroen Bakker · 1 comment
Member

System Information
Operating system: macOS-14.2-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Ultra 1.2

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2024-01-16 09:54, hash: c4aef9165271
Worked: (newest version of Blender that worked as expected)

Short description of error
EEVEE Next crashes on Metal when performing final image render. The reason is that the hair and curves buffers
will be updated when retrieving the cache (see #112425), which assumes that it is always updated using a
compute shader, but the pass contains a transform feedback shader. This is both for curve and hair rendering.

Could also effect other engines, but I was not able to reproduce. They might retrieve the hair/curve pass in a different way.

Exact steps for others to reproduce the error

This can also be emulated by changing the drw_hair_shader_type_get/drw_curves_shader_type_get function.

**System Information** Operating system: macOS-14.2-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Ultra 1.2 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2024-01-16 09:54, hash: `c4aef9165271` Worked: (newest version of Blender that worked as expected) **Short description of error** EEVEE Next crashes on Metal when performing final image render. The reason is that the hair and curves buffers will be updated when retrieving the cache (see #112425), which assumes that it is always updated using a compute shader, but the pass contains a transform feedback shader. This is both for curve and hair rendering. Could also effect other engines, but I was not able to reproduce. They might retrieve the hair/curve pass in a different way. **Exact steps for others to reproduce the error** * https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests/render/hair/hair_close_up.blend * Switch render engine to EEVEE-Next * Press F12 This can also be emulated by changing the `drw_hair_shader_type_get`/`drw_curves_shader_type_get` function.
Jeroen Bakker added this to the 4.1 milestone 2024-01-16 14:53:25 +01:00
Jeroen Bakker added the
Interest
Metal
Type
Bug
Platform
macOS
Priority
High
Status
Confirmed
labels 2024-01-16 14:53:26 +01:00
Jeroen Bakker added this to the EEVEE & Viewport project 2024-01-16 14:53:28 +01:00
Miguel Pozo added the
Module
EEVEE & Viewport
label 2024-01-16 15:49:14 +01:00
Miguel Pozo added the
Interest
EEVEE
label 2024-01-23 16:10:12 +01:00

Have a fix for this ready. It appears to be caused by the disconnect in use cases where hair refine uses compute vs transform feedback. Metal was still opting in to using transform feedback, as this generally out-performed compute, however, due to the diverging implementations, will instead look into optimizing the compute-based refinement solution and only using this one.

Have a fix for this ready. It appears to be caused by the disconnect in use cases where hair refine uses compute vs transform feedback. Metal was still opting in to using transform feedback, as this generally out-performed compute, however, due to the diverging implementations, will instead look into optimizing the compute-based refinement solution and only using this one.
Brecht Van Lommel modified the milestone from 4.1 to 4.2 LTS 2024-01-24 20:23:12 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-01-25 05:02:33 +01:00
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 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#117169
No description provided.