Image sequence render just stops on Cycles on MacOS Metal #107153

Closed
opened 2023-04-20 03:04:54 +02:00 by Michael-Pallazola · 16 comments

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

Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b
Worked: none, tried 2.93, 3.3

Short description of error
after about 100 or so frames render just stops, Blender is still responsive, its not frozen or crashed, render bar just sits at %0. I'm doing motion tracking to get some kitbashed 3d elements into the scene. Plays fine in Eevee in the viewport. This is the error I get: CommandBuffer Failed: cycles_metal_shader_eval_displace. Attached ram usage for last 24 hours, I still have plenty of ram!

Exact steps for others to reproduce the error
I've closed the file and retried, several times, never got a render all the way through.

**System Information** Operating system: macOS-13.3.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Ultra 1.2 **Blender Version** Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` Worked: none, tried 2.93, 3.3 **Short description of error** after about 100 or so frames render just stops, Blender is still responsive, its not frozen or crashed, render bar just sits at %0. I'm doing motion tracking to get some kitbashed 3d elements into the scene. Plays fine in Eevee in the viewport. This is the error I get: CommandBuffer Failed: cycles_metal_shader_eval_displace. Attached ram usage for last 24 hours, I still have plenty of ram! **Exact steps for others to reproduce the error** I've closed the file and retried, several times, never got a render all the way through.
Michael-Pallazola added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-04-20 03:04:55 +02:00

Restarted computer, tried again, same thing happened but got a different error:

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
Restarted computer, tried again, same thing happened but got a different error: ``` 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 ```

Thanks for the report!

Could you please confirm whether this happens with the OpenGL backend enabled instead of Metal (for viewport)? This will help us determine if the issue is caused by the presence of the Metal viewport, while rendering with Metal for Cycles.

Alternatively, would you be able to share the asset you have so we can reproduce locally?

I also notice you are using an add-on which relies on deprecated OpenGL API, I'm curious if running with the Metal backend could mean the add-on is disabled and certain operations or data are missing where they may be expected.

Thanks!

cc @Michael-Jones

Thanks for the report! Could you please confirm whether this happens with the OpenGL backend enabled instead of Metal (for viewport)? This will help us determine if the issue is caused by the presence of the Metal viewport, while rendering with Metal for Cycles. Alternatively, would you be able to share the asset you have so we can reproduce locally? I also notice you are using an add-on which relies on deprecated OpenGL API, I'm curious if running with the Metal backend could mean the add-on is disabled and certain operations or data are missing where they may be expected. Thanks! cc @Michael-Jones
Iliya Katushenock added the
Interest
Cycles
Interest
Render Pipeline
labels 2023-04-20 14:05:56 +02:00

Ok, so I changed to OpenGL backend and the render still stopped (got to frame 202 this time). I had disabled the addons that were throwing errors in the logs a few tries ago and I'm still having the same problem.
I didn't think the scene was very demanding it has: "Verts:99,192 | Faces: 104,058 | Tris:191,053 | Objects:0/36"

Oddly the switch to OpenGL backend made each frame render 4-5 sec faster

I also got the attached error when I tried to open Preferences after the render stopped.

I tried it out on my laptop as well, 14" Macbook Pro M2MAX, and had the same problem with the render just stopping and throwing one of the same Metal errors from above.

I will try removing objects one by one to see if there is something there causing the problem, but this isn't the only file I've had do this recently. Both have motion tracking with camera solves, both have 400-600+ frames. I do feel that I haven't encountered this problem before because I haven't been rendering more than 100 frames at a time at the very most. The large frame count renders seem to exacerbate what ever Metal errors that are popping up.

Saved: '/Users/mike/Documents/localDaniel/swamp/0202.png'
 Time: 00:14.08 (Saving: 00:00.13)

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
Ok, so I changed to OpenGL backend and the render still stopped (got to frame 202 this time). I had disabled the addons that were throwing errors in the logs a few tries ago and I'm still having the same problem. I didn't think the scene was very demanding it has: "_Verts:99,192 | Faces: 104,058 | Tris:191,053 | Objects:0/36_" Oddly the switch to OpenGL backend made each frame render 4-5 sec faster I also got the attached error when I tried to open Preferences after the render stopped. I tried it out on my laptop as well, 14" Macbook Pro M2MAX, and had the same problem with the render just stopping and throwing one of the same Metal errors from above. I will try removing objects one by one to see if there is something there causing the problem, but this isn't the only file I've had do this recently. Both have motion tracking with camera solves, both have 400-600+ frames. I do feel that I haven't encountered this problem before because I haven't been rendering more than 100 frames at a time at the very most. The large frame count renders seem to exacerbate what ever Metal errors that are popping up. ``` Saved: '/Users/mike/Documents/localDaniel/swamp/0202.png' Time: 00:14.08 (Saving: 00:00.13) 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 ```

still happening on 3.5.1!
This is on my laptop, M2 Max MacBook Pro
Metal GPU Backend on.

error is: CommandBuffer Failed: cycles_metal_shader_eval_displace

**still happening on 3.5.1!** This is on my laptop, M2 Max MacBook Pro Metal GPU Backend on. error is: **CommandBuffer Failed: cycles_metal_shader_eval_displace**

I also still have these (see attached photo) processes hanging around when I have to force quit Blender after the crash.

I also still have these (see attached photo) processes hanging around when I have to force quit Blender after the crash.

Hi @Michael-Pallazola, I've tried to reproduce it on Blender 3.6 beta using the classroom scene, but so far no luck in getting the crash (M1 Max / macOS 13.0). Perhaps it's fixed already, or perhaps there is something different about our setups - are you able to share the .blend file with us? How long does it typically take for it to hang? (I'm guessing 10 or so minutes from your log output)

Hi @Michael-Pallazola, I've tried to reproduce it on Blender 3.6 beta using the classroom scene, but so far no luck in getting the crash (M1 Max / macOS 13.0). Perhaps it's fixed already, or perhaps there is something different about our setups - are you able to share the .blend file with us? How long does it typically take for it to hang? (I'm guessing 10 or so minutes from your log output)

One interesting detail - I noticed that you have sporadic "Context leak detected, msgtracer returned -1" messages in your log output which I do not see when rendering out Cycles animations in Blender 3.6. Would you be able to try again using the 3.6 beta in case there was a temporary issue?

One interesting detail - I noticed that you have sporadic "Context leak detected, msgtracer returned -1" messages in your log output which I do not see when rendering out Cycles animations in Blender 3.6. Would you be able to try again using the 3.6 beta in case there was a temporary issue?
Member
  • Are you able to share the .blend file with us?
  • Would you be able to try again using the 3.6 beta in case there was a temporary issue?

@Michael-Pallazola hi , any updates on this?

> - Are you able to share the .blend file with us? > - Would you be able to try again using the 3.6 beta in case there was a temporary issue? @Michael-Pallazola hi , any updates on this?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-06-21 08:35:25 +02:00

@Michael-Pallazola , assuming this is still occurring in Blender 3.6 on macOS 13.x, would it be possible to test if it still occurs in macOS 14 / Sonoma? There is a known driver bug in macOS 13.x that can cause random command buffer failures in long running compute workloads - it has been fixed in 14.

@Michael-Pallazola , assuming this is still occurring in Blender 3.6 on macOS 13.x, would it be possible to test if it still occurs in macOS 14 / Sonoma? There is a known driver bug in macOS 13.x that can cause random command buffer failures in long running compute workloads - it has been fixed in 14.

Ok, I have a Sonoma beta machine, I’ll test that tonight.

Ok, I have a Sonoma beta machine, I’ll test that tonight.

Hi! I have this problem also. Mac Studio M1 Ultra. Render animation just stops after a few hundred frames, and I have to force quit Blender. Let me know if I can help/test something . . .

Hi! I have this problem also. Mac Studio M1 Ultra. Render animation just stops after a few hundred frames, and I have to force quit Blender. Let me know if I can help/test something . . .
Member

Ok, I have a Sonoma beta machine, I’ll test that tonight.

@Michael-Pallazola , any updates?
@Brallan , may or may not be related to this. I'd suggest to open a new report where we can have more information about the issue you're observing.

> Ok, I have a Sonoma beta machine, I’ll test that tonight. @Michael-Pallazola , any updates? @Brallan , may or may not be related to this. I'd suggest to open a new report where we can have more information about the issue you're observing.
Member

Hi, any updates?

Hi, any updates?

Hi, this is not a problem for me anymore. Rendering works just fine on the M1 Ultra. I wish I had an M3 though. :-) Sorry for not reporting.

Hi, this is not a problem for me anymore. Rendering works just fine on the M1 Ultra. I wish I had an M3 though. :-) Sorry for not reporting.
Member

Thanks. Will wait for @Michael-Pallazola

Thanks. Will wait for @Michael-Pallazola

I just opened up the old project file I had the problem with and rendered out 600 frames with no problems, no crashes! It's fixed! Yay! Thanks!

I just opened up the old project file I had the problem with and rendered out 600 frames with no problems, no crashes! It's fixed! Yay! Thanks!
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-03-01 14:58:10 +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
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#107153
No description provided.