Blender crashes on open when using Metal GPU Backend #103521

Closed
opened 2022-12-28 20:07:46 +01:00 by Austin Berenyi · 27 comments

System Information
Operating system: macOS Version 13.2 Beta (22D5027d)
Graphics card: Apple M1 Ultra

Blender Version
Broken: 3.5 Alpha Master d7dad425c0 December 29, 02:22:32

Short description of error
After setting GPU backend to Metal and restarting Blender, Blender crashes a couple seconds after landing on splash screen.

Exact steps for others to reproduce the error
Open Blender
Set GPU Backend to Metal
Quit Blender
Reopen Blender
Blender Crashes 1-2 seconds after landing on splash screen.

If I open a project file instead of opening Blender itself I do not get the crash.

**System Information** Operating system: macOS Version 13.2 Beta (22D5027d) Graphics card: Apple M1 Ultra **Blender Version** Broken: 3.5 Alpha Master d7dad425c0d0 December 29, 02:22:32 **Short description of error** After setting GPU backend to Metal and restarting Blender, Blender crashes a couple seconds after landing on splash screen. **Exact steps for others to reproduce the error** Open Blender Set GPU Backend to Metal Quit Blender Reopen Blender Blender Crashes 1-2 seconds after landing on splash screen. If I open a project file instead of opening Blender itself I do not get the crash.
Author

Added subscriber: @Austin-Berenyi

Added subscriber: @Austin-Berenyi

#103817 was marked as duplicate of this issue

#103817 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

The steps to reproduce the bug are a bit conflicting.

Does the crash occur right after changing the GPU Backend to Metal or when starting up Blender?

I cannot reproduce this.

Please try the latest daily build: https://builder.blender.org/download/

Go to File → Defaults → Load Factory Settings and then change the GPU Backend to Metal to see if you still can reproduce this issue.

If the problem persists, please give us more clear instructions on how to reproduce it from scratch.

The steps to reproduce the bug are a bit conflicting. Does the crash occur right after changing the GPU Backend to Metal or when starting up Blender? I cannot reproduce this. Please try the latest daily build: https://builder.blender.org/download/ Go to File → Defaults → Load Factory Settings and then change the GPU Backend to Metal to see if you still can reproduce this issue. If the problem persists, please give us more clear instructions on how to reproduce it from scratch.
Author

@mano-wii I updated the description of the error to be more clear about what is happening. I also loaded factory settings, saved the startup file, and attempted to open Blender again. The crash persists. Is there any file I can attach that would give you more details?

@mano-wii I updated the description of the error to be more clear about what is happening. I also loaded factory settings, saved the startup file, and attempted to open Blender again. The crash persists. Is there any file I can attach that would give you more details?

Added subscriber: @Nurb2Kea

Added subscriber: @Nurb2Kea

https://developer.blender.org/T103393
Regression: 100%+ render time with GPU rendering
Confirmed, HighPublic

https://developer.blender.org/T103393 Regression: 100%+ render time with GPU rendering Confirmed, HighPublic

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Author

Blender-2023-01-01-140743.ips

I was able to generate this crash report after installing the latest daily build: 614704f90c January 01, 02:19:54

[Blender-2023-01-01-140743.ips](https://archive.blender.org/developer/F14105208/Blender-2023-01-01-140743.ips) I was able to generate this crash report after installing the latest daily build: 614704f90c32 January 01, 02:19:54

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

In #103521#1467859, @Austin-Berenyi wrote:
Blender-2023-01-01-140743.ips

I was able to generate this crash report after installing the latest daily build: 614704f90c January 01, 02:19:54

This crash happened in a Python code, probably due to some addon.
Functions to highlight: pygpu_shader_attrs_info_get PyUnicode_InternFromString

Can you disable the addons, and re-enable them one by one to identify which one causes the crash?

> In #103521#1467859, @Austin-Berenyi wrote: > [Blender-2023-01-01-140743.ips](https://archive.blender.org/developer/F14105208/Blender-2023-01-01-140743.ips) > > I was able to generate this crash report after installing the latest daily build: 614704f90c32 January 01, 02:19:54 This crash happened in a Python code, probably due to some addon. Functions to highlight: `pygpu_shader_attrs_info_get` `PyUnicode_InternFromString` Can you disable the addons, and re-enable them one by one to identify which one causes the crash?
Author

The add-on responsible for the crash is 3D View: BlenderKit Online Asset Library. After disabling that add-on, Blender opens without crashing. Likewise, if I re-enable the add-on Blender immediately crashes.

The add-on responsible for the crash is 3D View: BlenderKit Online Asset Library. After disabling that add-on, Blender opens without crashing. Likewise, if I re-enable the add-on Blender immediately crashes.

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'

In that case you must report the problem in the bug report channel for this add-on:
https://www.blenderkit.com/report-bug/

The problem is certainly in the shaders of this add-on.
As Metal is a relatively new feature in Blender, this problem must be recurring there.

In that case you must report the problem in the bug report channel for this add-on: https://www.blenderkit.com/report-bug/ The problem is certainly in the shaders of this add-on. As Metal is a relatively new feature in Blender, this problem must be recurring there.

If this is the right decision to archive, I don't know. !?
I'm not using this addon, neither is it enabled !

If this is the right decision to archive, I don't know. !? I'm not using this addon, neither is it enabled !

@Nurb2Kea, your problem is probably something else and should be reported separately.

@Nurb2Kea, your problem is probably something else and should be reported separately.

It is reported and confirmed High, See above comment of mine.

https://developer.blender.org/T103393

And probably related, That's why I mentioned it here.

It is reported and confirmed High, See above comment of mine. https://developer.blender.org/T103393 And probably related, That's why I mentioned it here.
Member

Added subscribers: @Kent-Davis, @PratikPB2123, @hlorus

Added subscribers: @Kent-Davis, @PratikPB2123, @hlorus

I already use latest daily build already same time I send report to your ticket.

There Blender 3.4.1 doesn't make crash.
Blender 3.5.0 make bad crash worst
You must use Mac to take test and Blender 3.5.0 need to fix code correct for GPU Back End [METAL] during active Screencast Key is on.

I already use latest daily build already same time I send report to your ticket. There Blender 3.4.1 doesn't make crash. Blender 3.5.0 make bad crash worst You must use Mac to take test and Blender 3.5.0 need to fix code correct for GPU Back End [METAL] during active Screencast Key is on.

There is not ADD-ONS
There real BLENDER 3.5.0 see picture
image.png

There is not ADD-ONS There real BLENDER 3.5.0 see picture ![image.png](https://archive.blender.org/developer/F14148767/image.png)
Member

There is not ADD-ONS

@Kent-Davis hi, you've mentioned that you are using screencast key add-on.

There Blender 3.4.1 doesn't make crash.

Because metal backend is added in 3.5
I guess crash with these add-ons for metal backend will be fixed with #103863 (Metal Backend: Add fallback for Add-ons that use BGL or Incorrect shader-code with GPU module.)

> There is not ADD-ONS @Kent-Davis hi, you've mentioned that you are using screencast key add-on. > There Blender 3.4.1 doesn't make crash. Because metal backend is added in 3.5 I guess crash with these add-ons for metal backend will be fixed with #103863 (Metal Backend: Add fallback for Add-ons that use BGL or Incorrect shader-code with GPU module.)

Ok.

Ok.
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Yes add-ons that use open gl directly won’t work on metal. Currently they crash. The idea is that the OpenGL calls will be accepted, but will not do anything when metal is active.

Addon developers, but also contrib addons have to be ported to use the gpu module in stead in order to work correctly.

Yes add-ons that use open gl directly won’t work on metal. Currently they crash. The idea is that the OpenGL calls will be accepted, but will not do anything when metal is active. Addon developers, but also contrib addons have to be ported to use the gpu module in stead in order to work correctly.

@Jeroen-Bakker Thanks.

Blender 3.5.0 only.
Screencast Key on System GPU Back End [Metal] = CRASH
CAD_Sketcher-main on System GPU Back End [Metal] = CRASH

@Jeroen-Bakker Thanks. Blender 3.5.0 only. Screencast Key on System GPU Back End [Metal] = CRASH CAD_Sketcher-main on System GPU Back End [Metal] = CRASH
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
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
8 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#103521
No description provided.