Blender on Mac freezes when working on shader nodes #106551

Closed
opened 2023-04-04 16:49:51 +02:00 by Chainzee · 10 comments

System Information
Operating system: Mac OS 13.1 (22C65)
Graphics card: AMD Radeon Pro 5300M 4 GB and Intel UHD Graphics 630 1536 MB

Blender Version
Broken: 3.5.0, 3.4.1
Worked: 3.3.1

Short description of error
Blender freezes when working on shader nodes

Exact steps for others to reproduce the error
Try attaching Anisotropic Shader with Shader Mix.
Basically doing any other modifications to nodes freezes it.
Changing the object to a simple cube doesn't make a difference.
Appending material to a different clean file doesn't help.

**System Information** Operating system: Mac OS 13.1 (22C65) Graphics card: AMD Radeon Pro 5300M 4 GB and Intel UHD Graphics 630 1536 MB **Blender Version** Broken: 3.5.0, 3.4.1 Worked: 3.3.1 **Short description of error** Blender freezes when working on shader nodes **Exact steps for others to reproduce the error** Try attaching Anisotropic Shader with Shader Mix. Basically doing any other modifications to nodes freezes it. Changing the object to a simple cube doesn't make a difference. Appending material to a different clean file doesn't help.
Chainzee added the
Severity
Normal
Status
Needs Triage
Type
Report
labels 2023-04-04 16:49:51 +02:00

This "freezing", would it be something that lasts a few seconds? If so, I don't think it's a bug, just the shader compiling.

Please try the latest daily build: https://builder.blender.org/download/

Tried on:

Operating system: macOS-13.2.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 1.2
This "freezing", would it be something that lasts a few seconds? If so, I don't think it's a bug, just the shader compiling. Please try the latest daily build: https://builder.blender.org/download/ Tried on: ``` Operating system: macOS-13.2.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 1.2 ```
Germano Cavalcante added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-04-05 19:54:04 +02:00
Author

Sorry I wasn't clear enough.
It freezes completely. 30 min of waiting and still dead. I have to kill the process.
Daily does not solve the issue.
When it freezes Blender stays only at about 3% of the CPU load.

Sorry I wasn't clear enough. It freezes completely. 30 min of waiting and still dead. I have to kill the process. Daily does not solve the issue. When it freezes Blender stays only at about 3% of the CPU load.
Germano Cavalcante added
Status
Needs Triage
Platform
macOS
and removed
Status
Needs Information from User
labels 2023-04-06 15:11:39 +02:00
Member

Hi, thanks for the report. I'm not able to redo the issue on Windows (Blender 3.5)
Does it happen with Viewport Metal backend?

**System Information**
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.78
Hi, thanks for the report. I'm not able to redo the issue on Windows (Blender 3.5) Does it happen with Viewport Metal backend? ``` **System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.78 ```
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-04-07 07:35:24 +02:00

Have been able to verify this issue with the Metal backend on AMD platforms, likely also the same root cause as #106360

There is an issue in that EEVEE material shaders sometimes get stuck spinning on the GPU and trigger a GPU timeout, depending on the exact makeup of the nodegraph. I am currently investigating a fix.

Corruption or freezing of viewport is caused by the blocking of future GPU work submissions, though the CPU side of the application continues to run.

Have been able to verify this issue with the Metal backend on AMD platforms, likely also the same root cause as https://projects.blender.org/blender/blender/issues/106360 There is an issue in that EEVEE material shaders sometimes get stuck spinning on the GPU and trigger a GPU timeout, depending on the exact makeup of the nodegraph. I am currently investigating a fix. Corruption or freezing of viewport is caused by the blocking of future GPU work submissions, though the CPU side of the application continues to run.
Pratik Borhade added
Status
Confirmed
and removed
Status
Needs Information from User
labels 2023-04-07 10:39:39 +02:00
Author

The issue happens only on Metal, OpenGL works fine.
It also happens when Eevee is enabled, even when in wireframe view mode.
Cycles works fine.

Surprisingly switching to OpenGL and then back to Metal, let Blender work normally for some minutes, but after 5 or so it crashes again.

The issue happens only on Metal, OpenGL works fine. It also happens when Eevee is enabled, even when in wireframe view mode. Cycles works fine. Surprisingly switching to OpenGL and then back to Metal, let Blender work normally for some minutes, but after 5 or so it crashes again.

I believe this may be caused by the material preview rendering path (which happens intermittently during material graph editing), rather than the main EEVEE viewport itself.

Continuing to investigate a fix, though would consider raising the priority on this. If it is indeed caused by material preview rendering, then identifying a workaround should be reasonable.

I believe this may be caused by the material preview rendering path (which happens intermittently during material graph editing), rather than the main EEVEE viewport itself. Continuing to investigate a fix, though would consider raising the priority on this. If it is indeed caused by material preview rendering, then identifying a workaround should be reasonable.
Jason Fielder added
Severity
High
and removed
Severity
Normal
labels 2023-04-11 16:30:31 +02:00
Jeroen Bakker added the
Interest
Metal
label 2023-04-13 08:38:45 +02:00
Jeroen Bakker added this to the 3.5 milestone 2023-04-13 08:38:50 +02:00
Jeroen Bakker added this to the Viewport & EEVEE project 2023-04-13 08:38:53 +02:00
Jeroen Bakker added the
Module
Viewport & EEVEE
label 2023-04-13 08:39:11 +02:00

I tested Daniel Bystedts Tree Creature Scene with different Blender versions on my iMac Pro Vega64, Ventura 13.3.1 (22E261):
Steps to reproduce: Open Tree Creature Scene and switch to rendered view. GPU Backend is set to Metal.

3.5.0 Alpha, branch: master, commit date: 2023-01-30 22:48, hash: rBea8fd343eb2c -> Shaders finish compiling, but no screen space reflections (The Lens is not transparent, instead black)

3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b -> MacOS gets completely stuck, Log Out after some Minutes.

3.5.1 Release Candidate, branch: blender-v3.5-release, commit date: 2023-04-13 15:44, hash: 268d826a7601 -> MacOS unresponsive for 30 seconds (clock stops), then again responsive, but Blender gets stuck without CPU or GPU load according to Activity Monitor. No Messages in Terminal. I waited 10 minutes, then force quit Blender. (I opened Blender 3.5.1 from Terminal with --factory-startup;)

I tested Daniel Bystedts Tree Creature Scene with different Blender versions on my iMac Pro Vega64, Ventura 13.3.1 (22E261): Steps to reproduce: Open Tree Creature Scene and switch to rendered view. GPU Backend is set to Metal. 3.5.0 Alpha, branch: master, commit date: 2023-01-30 22:48, hash: `rBea8fd343eb2c` -> Shaders finish compiling, but no screen space reflections (The Lens is not transparent, instead black) 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` -> MacOS gets completely stuck, Log Out after some Minutes. 3.5.1 Release Candidate, branch: blender-v3.5-release, commit date: 2023-04-13 15:44, hash: `268d826a7601` -> MacOS unresponsive for 30 seconds (clock stops), then again responsive, but Blender gets stuck without CPU or GPU load according to Activity Monitor. No Messages in Terminal. I waited 10 minutes, then force quit Blender. (I opened Blender 3.5.1 from Terminal with --factory-startup;)
Thomas Dinges removed this from the 3.5 milestone 2023-05-03 16:06:00 +02:00

This should now be resolved by #109358 please could you verify if you are still experiencing the same issue? (Edit: several issues are quoted in this, this PR targets a fix for EEVEE on AMD-Metal platforms that would have affected 3.5+, but not the Intel/3.4.1 issues.)

Thanks!

This should now be resolved by https://projects.blender.org/blender/blender/pulls/109358 please could you verify if you are still experiencing the same issue? (Edit: several issues are quoted in this, this PR targets a fix for EEVEE on AMD-Metal platforms that would have affected 3.5+, but not the Intel/3.4.1 issues.) Thanks!

Just tested the Tree Creature Scene with version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: c7fc78b81ecb

aaaand...

IT WORKS, Thank you!

Just tested the Tree Creature Scene with version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: `c7fc78b81ecb` aaaand... IT WORKS, Thank you!
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-06-28 16:50:35 +02:00
Author

Seems to be working now.
BIG thanks!

Seems to be working now. BIG thanks!
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
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 Assignees
5 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#106551
No description provided.