Render crashes – metal related #111441

Closed
opened 2023-08-23 16:56:17 +02:00 by horatio_engelmann · 7 comments

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

Blender Version
Broken: version: 3.6.2, branch: blender-v3.6-release, commit date: 2023-08-16 16:43, hash: e53e55951e7a

Short description of error
I get some of these intermittently: Context leak detected, msgtracer returned -1
render ultimately fails (always at around frame 400) with this:

CommandBuffer Failed: cycles_metal_integrator_reset

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

CommandBuffer Failed: cycles_metal_integrator_init_from_camera

Exact steps for others to reproduce the error

  • download and extract the files attached to this issue
  • run render.sh + wait until blender crashes

using the opengl backend, it works just fine

**System Information** Operating system: macOS-13.5.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M2 Pro 1.2 **Blender Version** Broken: version: 3.6.2, branch: blender-v3.6-release, commit date: 2023-08-16 16:43, hash: `e53e55951e7a` **Short description of error** I get some of these intermittently: `Context leak detected, msgtracer returned -1` render ultimately fails (always at around frame 400) with this: ``` CommandBuffer Failed: cycles_metal_integrator_reset Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html CommandBuffer Failed: cycles_metal_integrator_init_from_camera ``` **Exact steps for others to reproduce the error** - download and extract the files attached to this issue - run `render.sh` + wait until blender crashes ~~using the opengl backend, it works just fine~~
horatio_engelmann added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-08-23 16:56:18 +02:00

potentially related: #107153

potentially related: https://projects.blender.org/blender/blender/issues/107153

Thanks for the report, @horatio_engelmann.

This description is a bit confusing. OpenGL Backend is used only for drawing the interface and for the engines Workbench and Eevee. It's not much related to Cycles.

Could it be that you meaning to compare CPU vs GPU(Metal) rendering?

Note also this bug report could potentially be a duplicate of:
#106900: Blender 3.5 and 3.5.1 are crashing while using Metal as backend.

Thanks for the report, @horatio_engelmann. This description is a bit confusing. OpenGL Backend is used only for drawing the interface and for the engines Workbench and Eevee. It's not much related to Cycles. Could it be that you meaning to compare CPU vs GPU(Metal) rendering? Note also this bug report could potentially be a duplicate of: #106900: Blender 3.5 and 3.5.1 are crashing while using Metal as backend.
horatio_engelmann changed title from Render crashes when using metal backend to Render crashes – metal related 2023-08-23 22:29:20 +02:00

ok, weird. during my tests I was using --gpu-backend opengl once, in which case it rendered all the way through.
that was just a coincidence then, I suppose.
just ran it again, and this time I was getting the same error.

ok, weird. during my tests I was using `--gpu-backend opengl` _once_, in which case it rendered all the way through. that was just a coincidence then, I suppose. just ran it again, and this time I was getting the same error.
Germano Cavalcante added the
Module
Render & Cycles
Platform
macOS
Interest
Metal
labels 2023-08-23 22:33:15 +02:00

OK. I haven't been able to test yet to see if I can replicate the problem. But those error message looks descriptive.

@Michael-Parkin-White-Apple, are those error messages something you're familiar with?

OK. I haven't been able to test yet to see if I can replicate the problem. But those error message looks descriptive. @Michael-Parkin-White-Apple, are those error messages something you're familiar with?

Thanks Germano, this one will be better known for the other Michael, @Michael-Jones, he may know more about what to look into for this.

Thanks Germano, this one will be better known for the other Michael, @Michael-Jones, he may know more about what to look into for this.
Iliya Katushenock added
Interest
Render & Cycles
and removed
Module
Render & Cycles
labels 2023-08-24 17:36:20 +02:00

Thanks for the report @horatio_engelmann . To confirm: I am able to reproduce this, and will report back with further information in due course.

Thanks for the report @horatio_engelmann . To confirm: I am able to reproduce this, and will report back with further information in due course.

This should be fixed in Blender 4.0 (see https://projects.blender.org/blender/blender/commit/4e3ee4f and also #114153)

This should be fixed in Blender 4.0 (see https://projects.blender.org/blender/blender/commit/4e3ee4f and also #114153)
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-10-31 12:44:21 +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 project
No Assignees
4 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#111441
No description provided.