Regression: Image rendering fails while viewport rendering is in progress #106657

Closed
opened 2023-04-07 09:01:16 +02:00 by John Ramirez · 20 comments

System Information
Operating system: OSX Ventura Version 13.3
Graphics card:AMD Radeon Pro Vega II Duo 32 GB

Blender Version
Broken: 3.5.0 Date 2023-03-29 02:56 Hash: 1be25cfff1
Worked: 3.4.1 Date 2022-12-19 17:00 Hash 55485cb379
Short description of error
CommandBuffer Failed: cycles_metal_integrator_compact_shadow_states

Exact steps for others to reproduce the error

  • Load file provided
  • Set ViewPortShading to MaterialPreview
  • Then select ViewPortShading to Rendered
  • While the viewport is rendering Select Render Image.

This will often cause the error. It may take an attempt or two but more likely to happen after at least one attempt.

In some case blender will throw the error in both the viewport and in the image window. In some cases...Blender will hang and require you to force quit. At other times it will crash the OS.

The larger the scene the more drastic the failure. In this simplified file it typically will recover.

**System Information** Operating system: OSX Ventura Version 13.3 Graphics card:AMD Radeon Pro Vega II Duo 32 GB **Blender Version** Broken: 3.5.0 Date 2023-03-29 02:56 Hash: 1be25cfff18b Worked: 3.4.1 Date 2022-12-19 17:00 Hash 55485cb379f7 **Short description of error** CommandBuffer Failed: cycles_metal_integrator_compact_shadow_states **Exact steps for others to reproduce the error** * Load file provided * Set ViewPortShading to MaterialPreview * Then select ViewPortShading to Rendered * While the viewport is rendering Select Render Image. This will often cause the error. It may take an attempt or two but more likely to happen after at least one attempt. In some case blender will throw the error in both the viewport and in the image window. In some cases...Blender will hang and require you to force quit. At other times it will crash the OS. The larger the scene the more drastic the failure. In this simplified file it typically will recover.
John Ramirez added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-04-07 09:01:17 +02:00
Germano Cavalcante added the
Platform
macOS
Interest
Metal
labels 2023-04-10 16:05:42 +02:00

I can't reproduce the error on an M1.
It seems to be something with AMD GPUs.


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

I can't reproduce the error on an M1. It seems to be something with AMD GPUs. --- **System Information** Operating system: macOS-13.2.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 1.2

Can confirm. I experienced also crash when reproducing first time, but does not seem to be reproducible.

Can confirm. I experienced also crash when reproducing first time, but does not seem to be reproducible.
Richard Antalik changed title from CommandBuffer Failed: cycles_metal_integrator_compact_shadow_states to Regression: Image rendering fails while viewport rendering is in progress 2023-04-13 05:49:56 +02:00
Jeroen Bakker added this to the 3.5 milestone 2023-04-13 08:27:56 +02:00
Jeroen Bakker added this to the EEVEE & Viewport project 2023-04-13 08:27:59 +02:00

I can't reproduce this issue either on my Intel Mac

iMac (Retina 5K, 27-inch, 2020)
3.6 GHz 10-Core Intel Core i9
128 GB 2667 MHz DDR4
AMD Radeon Pro 5500 XT 8 GB

I can't reproduce this issue either on my Intel Mac iMac (Retina 5K, 27-inch, 2020) 3.6 GHz 10-Core Intel Core i9 128 GB 2667 MHz DDR4 AMD Radeon Pro 5500 XT 8 GB
Author

If there is other information you may need to track this down do not hesitate to ask. Currently Blender 3.5 crashes fairly regularly making it unusable. I have had to drop back to 3.4.1 for production work. If there are any log files or anything that you need ... happy to provide.

If there is other information you may need to track this down do not hesitate to ask. Currently Blender 3.5 crashes fairly regularly making it unusable. I have had to drop back to 3.4.1 for production work. If there are any log files or anything that you need ... happy to provide.

Can you test if it works better in the daily builds of 3.5.1 or 3.6.0?
https://builder.blender.org/download/daily/

There were various Metal related fixes. Not guaranteed to solve this particular issue, but still would be good to know.

Can you test if it works better in the daily builds of 3.5.1 or 3.6.0? https://builder.blender.org/download/daily/ There were various Metal related fixes. Not guaranteed to solve this particular issue, but still would be good to know.
Author

Blender 3.5.1. Failed: cycles_metal_integrator_queued_paths_array

BlendblendCrash Log provided via file further down in thread

Blender 3.5.1. Failed: cycles_metal_integrator_queued_paths_array BlendblendCrash Log provided via file further down in thread

@Michael-Jones, is this something you can reproduce and investigate?

From the backtrace I would guess it has something to do with the background compilation added in 3.5.

@Michael-Jones, is this something you can reproduce and investigate? From the backtrace I would guess it has something to do with the background compilation added in 3.5.
Brecht Van Lommel added
Type
Bug
and removed
Type
Report
labels 2023-04-13 18:51:00 +02:00
Author

3.6 alpha - more stable than 3.5.1 for this particular issue. Took a while to get it to crash.

Crash log in text file lower in thread.

3.6 alpha - more stable than 3.5.1 for this particular issue. Took a while to get it to crash. Crash log in text file lower in thread.

Can you attach the logs as text files instead? It's a bit difficult to read the comments otherwise.

Can you attach the logs as text files instead? It's a bit difficult to read the comments otherwise.
Author

3.5.1 crash log

3.5.1 crash log
Author

3.6 alpha crash log

3.6 alpha crash log

3.6 exhibits the same issues as 3.5.1 for me - I have had to revert to 3.4.1 as well

If I go to PREFEREFNCES => SYSTEM =>CYCLES RENDER DEVICES and uncheck (in my case) "Intel Core...." and leave ONLY the AMD PRocessor checked, it seems to work fairly well with what I have tested.

3.6 exhibits the same issues as 3.5.1 for me - I have had to revert to 3.4.1 as well If I go to PREFEREFNCES => SYSTEM =>CYCLES RENDER DEVICES and uncheck (in my case) "Intel Core...." and leave ONLY the AMD PRocessor checked, it seems to work fairly well with what I have tested.
Author

I went to Preferences > System > CYCLES RENDER DEVICES and unchecked in my case (Intel XEON W-3245 CPU # 3.20GHz) and crashed blender when I turned on the Render ViewPort. Log attached.

I went to Preferences > System > CYCLES RENDER DEVICES and unchecked in my case (Intel XEON W-3245 CPU # 3.20GHz) and crashed blender when I turned on the Render ViewPort. Log attached.

John - I am not one of the programmers, so I really don't know where to look in the logs for anthing - I am a user with similar issues to the ones you are having.

Hopefully one of the coders can dope out the issues.

John - I am not one of the programmers, so I really don't know where to look in the logs for anthing - I am a user with similar issues to the ones you are having. Hopefully one of the coders can dope out the issues.
Michael Jones (Apple) self-assigned this 2023-04-24 15:06:07 +02:00
Thomas Dinges removed this from the 3.5 milestone 2023-05-03 16:05:53 +02:00

@Michael-Jones can you check this report?

@Michael-Jones can you check this report?
Author

just check in 3.6 Beta and unfortunately...still causing crashes.

just check in 3.6 Beta and unfortunately...still causing crashes.

I think may be a Vega specific issue as this exact issue doesn't seem to occur on the Navi cards. We're trying to narrow down a root cause.

I think may be a Vega specific issue as this exact issue doesn't seem to occur on the Navi cards. We're trying to narrow down a root cause.

Any updates here?

Any updates here?
Author

I just tested in Blender Version 3.5.1 (3.5.1 2023-04-25)

Tried rendering and get the following errors:

CommandBuffer Failed: cycles_metal_prefix_sum
CommandBuffer Failed: cycles_metal_integrator_queued_shadow_paths_array

The good news is Blender is not crashing. It will now just skip the render and display the error or render the scene without the volumetric object.

Thank you for your continued help.

I just tested in Blender Version 3.5.1 (3.5.1 2023-04-25) Tried rendering and get the following errors: CommandBuffer Failed: cycles_metal_prefix_sum CommandBuffer Failed: cycles_metal_integrator_queued_shadow_paths_array The good news is Blender is not crashing. It will now just skip the render and display the error or render the scene without the volumetric object. Thank you for your continued help.
Brecht Van Lommel added
Priority
Normal
and removed
Priority
High
labels 2023-09-06 18:11:17 +02:00
Author

Good news. Blender 4.1 resolves the issue. AMD GPU no longer crashing Blender.

Good news. Blender 4.1 resolves the issue. AMD GPU no longer crashing Blender.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-03-30 05:14:06 +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
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#106657
No description provided.