Blender freezes with Cycles viewport rendering and Metal Blender backend #106090

Closed
opened 2023-03-24 09:20:55 +01:00 by Alaska · 6 comments
Member

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

Blender Version
Broken version: 3.6.0 Alpha, branch: main, commit date: 2023-03-24 04:00, hash: c971adfeefb8
3.5.0
Worked: 3.4

Short description of error
Blender will freeze after using the Cycles rendered viewport for a bit on a mac with the Metal Blender backend.

Domonstration of Blender freezing with Metal backend.mp4

Exact steps for others to reproduce the error

  1. Get a Mac.
  2. Open Blender.
  3. Open User Preferences, ensure Metal is selected as your GPU backend. (Note: This is the GPU backend for Blender. NOT the Cycles render device)
  4. Restart Blender if you had to change the GPU backend setting.
  5. Change the render engine to Cycles.
  6. Enter the Cycles rendered viewport, start moving the camera around, duplicating objects, moving objects, etc.
  7. After a short while, Blender should freeze. this is the bug I am reporting.

This issue does not occur if the OpenGL GPU backend is used. At least from my testing.

**System Information** Operating system: macOS-13.2.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Pro 1.2 **Blender Version** Broken version: 3.6.0 Alpha, branch: main, commit date: 2023-03-24 04:00, hash: `c971adfeefb8` 3.5.0 Worked: 3.4 **Short description of error** Blender will freeze after using the Cycles rendered viewport for a bit on a mac with the Metal Blender backend. [Domonstration of Blender freezing with Metal backend.mp4](/attachments/1a1396b7-45a4-4e27-8be9-7475f635fca4) **Exact steps for others to reproduce the error** 1. Get a Mac. 2. Open Blender. 3. Open `User Preferences`, ensure Metal is selected as your GPU backend. (Note: This is the GPU backend for Blender. NOT the Cycles render device) 4. Restart Blender if you had to change the GPU backend setting. 5. Change the render engine to Cycles. 6. Enter the Cycles rendered viewport, start moving the camera around, duplicating objects, moving objects, etc. 7. After a short while, Blender should freeze. this is the bug I am reporting. This issue does not occur if the OpenGL GPU backend is used. At least from my testing.
Alaska added the
Priority
Normal
Platform
macOS
Status
Needs Triage
Type
Report
labels 2023-03-24 09:20:55 +01:00
Member

@mano-wii , can you check?

@mano-wii , can you check?

How long more or less does it take for it to crash while you rotate the view, move and duplicate the Cubes?

Does it make any difference to use CPU or GPU in Cycles?

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

Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue.


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

Blender Version
Broken: version: 3.5.0 Release Candidate, branch: blender-v3.5-release, commit date: 2023-03-27 18:51, hash: ba4442ef41cb

How long more or less does it take for it to crash while you rotate the view, move and duplicate the Cubes? Does it make any difference to use CPU or GPU in Cycles? Please try the latest daily build: https://builder.blender.org/download/ Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue. --- **System Information** Operating system: macOS-13.2.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 1.2 **Blender Version** Broken: version: 3.5.0 Release Candidate, branch: blender-v3.5-release, commit date: 2023-03-27 18:51, hash: `ba4442ef41cb`
Germano Cavalcante added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-03-28 04:19:23 +02:00
Author
Member

The issue has kind of gone away for me. I will explain what I mean by "kind of gone away" down below.

Should we close this report? Or should we leave it open just in case I get more information?


How long more or less does it take for it to crash while you rotate the view, move and duplicate the Cubes?
Does it make any difference to use CPU or GPU in Cycles?

Blender usually freezes after 10-30 seconds of using the Cycles viewport. And it didn't matter if I was using the CPU or GPU for rendering in Cycles. All that mattered was I was using the Metal backend for the Blender interface.

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

Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue.

I did try downloading the latest version of Blender from the Blender website (3.6.0, commit date: 2023-03-27 23:56, hash: 16576beb222a), and loading factory defaults, this did not fix the issue.

I then rebooted my Mac and tested again. The issue was gone.


Extra information

This issue first started a few weeks ago, but other issues were occurring on my Mac unrelated to Blender, and I hadn't seen anyone else report this issue, so I factory reset the Mac in hope that this issue and the other ones go away.

After the factory reset, the freezing issue continued and I made this bug report.

I have rebooted my Mac a few times between first making the report and now, and it hasn't resolved the issue before.

Based on my testing, it seems the issue might be with the Metal GPU drivers or something? I don't know if there's much that can be done on the Blender side.

The issue has kind of gone away for me. I will explain what I mean by "kind of gone away" down below. Should we close this report? Or should we leave it open just in case I get more information? --- > How long more or less does it take for it to crash while you rotate the view, move and duplicate the Cubes? > Does it make any difference to use CPU or GPU in Cycles? Blender usually freezes after 10-30 seconds of using the Cycles viewport. And it didn't matter if I was using the CPU or GPU for rendering in Cycles. All that mattered was I was using the Metal backend for the Blender interface. > Please try the latest daily build: https://builder.blender.org/download/ > > Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue. I did try downloading the latest version of Blender from the Blender website (3.6.0, commit date: 2023-03-27 23:56, hash: `16576beb222a`), and loading factory defaults, this did not fix the issue. I then rebooted my Mac and tested again. The issue was gone. --- Extra information This issue first started a few weeks ago, but other issues were occurring on my Mac unrelated to Blender, and I hadn't seen anyone else report this issue, so I factory reset the Mac in hope that this issue and the other ones go away. After the factory reset, the freezing issue continued and I made this bug report. I have rebooted my Mac a few times between first making the report and now, and it hasn't resolved the issue before. Based on my testing, it seems the issue might be with the Metal GPU drivers or something? I don't know if there's much that can be done on the Blender side.

There was a recent fix that caused Mac to freeze.
I'm not sure if the 2023-03-24 build already had the fixes, but it's a possibility.

Should we close this report? Or should we leave it open just in case I get more information?

If it has no activity for more than 1 week, it will be closed.

There was a recent fix that caused Mac to freeze. I'm not sure if the 2023-03-24 build already had the fixes, but it's a possibility. > Should we close this report? Or should we leave it open just in case I get more information? If it has no activity for more than 1 week, it will be closed.
Author
Member

I've kind of found out what's causing the issue. There's a intense GPU app that I've been running in the background. The issue with Blender freezing only occurs while that app is also running. (This issue may occur with other apps as well, but I don't have many intense GPU apps on my Mac)

I have decided to build a debug version of Blender and run it through Xcode to see if I could get more useful information out of it when it freezes.

Once Blender freezes, this error message appears in Xcode and keeps repeating.

2023-03-29 07:48:46.938856+1300 Blender[12065:196200] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOGPUCommandBufferCallbackErrorTimeout)

Blender version: 3.6.0 Alpha, branch: main, commit date: 2023-03-28 14:33, hash: 8d16e8f7261b

This could be a driver bug, or it could be a issue with Blender that's exposed by the strain put on the system by the other app, I'm not sure which.

If there's anything else I could help out with in trying to pin point this issue, please let me know.

Note: I'm not a confident developer or proficient debugging. If you would like me to get more information for you, please provide step by step instructions.

I've kind of found out what's causing the issue. There's a intense GPU app that I've been running in the background. The issue with Blender freezing only occurs while that app is also running. (This issue may occur with other apps as well, but I don't have many intense GPU apps on my Mac) I have decided to build a debug version of Blender and run it through Xcode to see if I could get more useful information out of it when it freezes. Once Blender freezes, this error message appears in Xcode and keeps repeating. > 2023-03-29 07:48:46.938856+1300 Blender[12065:196200] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOGPUCommandBufferCallbackErrorTimeout) Blender version: 3.6.0 Alpha, branch: main, commit date: 2023-03-28 14:33, hash: `8d16e8f7261b` This could be a driver bug, or it could be a issue with Blender that's exposed by the strain put on the system by the other app, I'm not sure which. If there's anything else I could help out with in trying to pin point this issue, please let me know. Note: I'm not a confident developer or proficient debugging. If you would like me to get more information for you, please provide step by step instructions.
Author
Member

I will close the report as #106401 is a similar report, and was fixed, and I couldn't reproduce the issue with my limited testing.

I will close the report as #106401 is a similar report, and was fixed, and I couldn't reproduce the issue with my limited testing.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-04-06 03:30:26 +02: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 project
No Assignees
3 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#106090
No description provided.