Blender crash with Intel Metal rendering on macOS #102786

Closed
opened 2022-11-26 09:41:56 +01:00 by Paweł Kołodziejski · 16 comments

System Information
Operating system: macOS-13.0.1-x86_64-i386-64bit 64 Bits
Graphics card: Intel(R) Iris(TM) Plus Graphics OpenGL Engine Intel Inc. 4.1 INTEL-20.2.44
MacBookPro16,2
32GB RAM

Blender Version
Broken: version: 3.4.0 Beta, branch: blender-v3.4-release, commit date: 2022-11-24 16:55, hash: 959f3cd645
Worked: unknown, I tried several builds after Intel GPU metal is enabled in daily builds.

Short description of error
Blender crash once starts rendering. It can also trigger to system hang (not responsive GUI) and the after while system trigger reset.
Last traces when launching Blender from shell:

CommandBuffer Failed: cycles_metal_integrator_intersect_shadow

Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

-[_MTLCommandEncoder dealloc]:131: failed assertion `Command encoder released without endEncoding'
zsh: illegal hardware instruction ./Blender

From Xcode debugger:

2022-11-29 20:37:18.198099+0100 Blender[22800:105451] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout)
2022-11-29 20:37:18.198292+0100 Blender[22800:105451] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout)
CommandBuffer Failed: cycles_metal_integrator_intersect_shadow

Exact steps for others to reproduce the error

I tried few other Cycles demos: barbershop, car demo, Italian flat, lone monk, monster under bed. All same ends with Blender crash.
For car demo for a second I saw first sample result and then crash.

Default cube works however.

**System Information** Operating system: macOS-13.0.1-x86_64-i386-64bit 64 Bits Graphics card: Intel(R) Iris(TM) Plus Graphics OpenGL Engine Intel Inc. 4.1 INTEL-20.2.44 MacBookPro16,2 32GB RAM **Blender Version** Broken: version: 3.4.0 Beta, branch: blender-v3.4-release, commit date: 2022-11-24 16:55, hash: `959f3cd645` Worked: unknown, I tried several builds after Intel GPU metal is enabled in daily builds. **Short description of error** Blender crash once starts rendering. It can also trigger to system hang (not responsive GUI) and the after while system trigger reset. Last traces when launching Blender from shell: > CommandBuffer Failed: cycles_metal_integrator_intersect_shadow > > Refer to the Cycles GPU rendering documentation for possible solutions: > https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html > > -[_MTLCommandEncoder dealloc]:131: failed assertion `Command encoder released without endEncoding' > zsh: illegal hardware instruction ./Blender > From Xcode debugger: > 2022-11-29 20:37:18.198099+0100 Blender[22800:105451] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) > 2022-11-29 20:37:18.198292+0100 Blender[22800:105451] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) > CommandBuffer Failed: cycles_metal_integrator_intersect_shadow > **Exact steps for others to reproduce the error** - Load scene from https://download.blender.org/demo/test/classroom.zip - Enable only 'Intel Iris Plus Graphics' in Metal preferences - Select GPU Compute - Render Image I tried few other Cycles demos: barbershop, car demo, Italian flat, lone monk, monster under bed. All same ends with Blender crash. For car demo for a second I saw first sample result and then crash. Default cube works however.

Added subscriber: @aquadran

Added subscriber: @aquadran
Member

Added subscribers: @brecht, @PratikPB2123

Added subscribers: @brecht, @PratikPB2123
Member

Hi, thanks for the report. Crash could be related to #101787 (GPU Metal Render fails with error "CommandBuffer Failed: cycles metal integrator_ reset" on M2 MacBook Air)
As far as I understand, crash is due to out of memory in #101787, which is probably not the reason here for crash
@brecht can you check?

Hi, thanks for the report. Crash could be related to #101787 (GPU Metal Render fails with error "CommandBuffer Failed: cycles metal integrator_ reset" on M2 MacBook Air) As far as I understand, crash is due to out of memory in #101787, which is probably not the reason here for crash @brecht can you check?

Added subscribers: @mmostajab, @Michael-Jones

Added subscribers: @mmostajab, @Michael-Jones

@mmostajab @Michael-Jones, can you check? Not sure if there is an issue with Intel in general or perhaps this particular GPU.

@mmostajab @Michael-Jones, can you check? Not sure if there is an issue with Intel in general or perhaps this particular GPU.

Hi @brecht
I managed to reproduce the issue on Intel Iris GPU on a machine with 8GB ram. We think it is probably running out of memory. We will investigate it more.

Hi @brecht I managed to reproduce the issue on Intel Iris GPU on a machine with 8GB ram. We think it is probably running out of memory. We will investigate it more.
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

This issue was referenced by 2dc51fccb8

This issue was referenced by 2dc51fccb8387467e8a012b07ab148078e7c9e50

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Michael Jones (Apple) self-assigned this 2022-12-07 14:56:33 +01:00

Unfortunately fix doesn't catch memory issues and Blender crashes. Interesting that Blender from master branch works better. Sometimes works few times in row without issue, and another time keeps crashing and leads to hang system. I presume this one has lower memory footprint.

Unfortunately fix doesn't catch memory issues and Blender crashes. Interesting that Blender from master branch works better. Sometimes works few times in row without issue, and another time keeps crashing and leads to hang system. I presume this one has lower memory footprint.

Changed status from 'Resolved' to: 'Needs Triage'

Changed status from 'Resolved' to: 'Needs Triage'

Added subscriber: @Caco-Oportot

Added subscriber: @Caco-Oportot

I can not reproduce issue with Blender from master branch now, same build as before.
Still, the 3.4 release keeps crashing with fix manually applied.

I can not reproduce issue with Blender from master branch now, same build as before. Still, the 3.4 release keeps crashing with fix manually applied.
Member

Still, the 3.4 release keeps crashing with fix manually applied.

So backporting the same fix to 3.4 would not work.
@Michael-Jones , can you also verify whether it works in 3.4 branch?

> Still, the 3.4 release keeps crashing with fix manually applied. So backporting the same fix to 3.4 would not work. @Michael-Jones , can you also verify whether it works in 3.4 branch?
Thomas Dinges added this to the 3.4 milestone 2023-02-07 19:02:18 +01:00
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:04:29 +01:00
Member

Hi, 3.4-branch no longer receives bug fixes so I'm closing this report.
Feel free to reopen the ticket or open a new report if problem happens in master/3.5

Hi, 3.4-branch no longer receives bug fixes so I'm closing this report. Feel free to reopen the ticket or open a new report if problem happens in master/3.5
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-03-09 16:36:22 +01:00

With master/3.5 there is no issue.

With master/3.5 there is no issue.
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
7 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#102786
No description provided.