Blender crashes with on Apple M1 when using Cycles with GPU Compute since rB8393ccd07634 #94711

Closed
opened 2022-01-07 11:28:30 +01:00 by Michael · 9 comments

System Information
Operating system: macOS-12.1-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 76.3

Blender Version
Broken: version: 3.1.0 Alpha, branch: master (modified), commit date: 2022-01-05 14:58, hash: 8393ccd076
Worked: 86141a75eb

Short description of error
Blender crashes on Apple M1 when using Cycles with GPU Compute

Exact steps for others to reproduce the error

  1. Have the default scene open
  2. In the Blender Preferences > System setting in the Metal tab of the Cycles Render Devices section enable Apple M1 (GPU)
  3. Set the render engine to Cycles and device to GPU compute
  4. Either hit F12 to render or switch to rendered view

Blender will immediately crash but earlier show a failed Metal kernel compilation.

The error that only affects Metal was introduced in 8393ccd076. When the number of function parameters of filter_guiding_preprocess was increased from 16 to 18 the macro magic in intern/cycles/kernel/device/metal/compat.h was missing the defines for 17 and 18 parameters.
Additionally Metal needs ccl_global qualifiers for the code that was added.

A proposed fix is in D13761.

**System Information** Operating system: macOS-12.1-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Apple 4.1 Metal - 76.3 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master (modified), commit date: 2022-01-05 14:58, hash: `8393ccd076` Worked: 86141a75eb **Short description of error** Blender crashes on Apple M1 when using Cycles with GPU Compute **Exact steps for others to reproduce the error** 1) Have the default scene open 2) In the Blender Preferences > System setting in the Metal tab of the Cycles Render Devices section enable Apple M1 (GPU) 3) Set the render engine to Cycles and device to GPU compute 4) Either hit F12 to render or switch to rendered view Blender will immediately crash but earlier show a failed Metal kernel compilation. The error that only affects Metal was introduced in 8393ccd076. When the number of function parameters of filter_guiding_preprocess was increased from 16 to 18 the macro magic in intern/cycles/kernel/device/metal/compat.h was missing the defines for 17 and 18 parameters. Additionally Metal needs ccl_global qualifiers for the code that was added. A proposed fix is in [D13761](https://archive.blender.org/developer/D13761).
Author

Added subscriber: @michael64

Added subscriber: @michael64

Added subscriber: @Memento

Added subscriber: @Memento
Member

Added subscriber: @pmoursnv

Added subscriber: @pmoursnv
Member

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

Changed status from 'Needs Triage' to: 'Resolved'
Patrick Mours self-assigned this 2022-01-07 17:29:56 +01:00
Member

Fixed in efe3d60a2c.

Fixed in efe3d60a2c.

Added subscriber: @Carter-LaSalle

Added subscriber: @Carter-LaSalle

I am also having this issue am I am using:
Blender Version: 3.2.0 Alpha, master, 2022-02-20 02:31, 1f79132287
OS: macOS-12.3-arm64-arm-64bit
GPU: Apple M1 Pro Apple 4.1 Metal - 76.3

I am also having this issue am I am using: Blender Version: 3.2.0 Alpha, master, 2022-02-20 02:31, 1f7913228779 OS: macOS-12.3-arm64-arm-64bit GPU: Apple M1 Pro Apple 4.1 Metal - 76.3

Added subscriber: @mrWonderful

Added subscriber: @mrWonderful

Yes, me too, very upsetting... CPU seems to work well.

Yes, me too, very upsetting... CPU seems to work well.
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#94711
No description provided.