Cycles GPU crash when switching to Rendered 3DViewport --MacOS 13.1-- #103327

Open
opened 2022-12-19 02:13:18 +01:00 by Guido · 39 comments

System Information

Operating system: Graphics card: Log: Report: User:
macOS-13.1-x86_64-i386-64bit 64 Bits AMD Radeon Pro 5700 XT OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.9.51 Blender-2022-12-20-125131.ips #103327 @Nurb2Kea
macOS-13.6.3-x86_64-i386-64bit 64 Bits Metal API AMD Radeon Pro Vega II Duo 1.2 os_report.rtf #116195 @DERJUNG3D

Blender Version
Broken: 3.5.0 Alpha, branch: master, commit date: 2022-12-18 20:06, hash: 50c7eb14f4
Worked: 3.5.0 Alpha, branch: master, commit date: 2022-12-16 20:43, hash: 4254810e50 (works fine)

Short description of error
Instant crash of blender when switching to rendered 3DView.

Exact steps for others to reproduce the error
Compile latest 3.5 version as of 2022-12-18 20:06, hash: 50c7eb14f4
open empty scene provided below and switch to rendered 3DView.
gpu.blend

system.jpg
xcode 14.1
latest brew updates
(cycles-cache & build-darwin folders deleted before compiling )

PS: When switching to CPU there is no crash. Only GPU !

**System Information** |Operating system:|Graphics card:|Log:|Report:|User:| |--|--|--|--|--| |macOS-13.1-x86_64-i386-64bit 64 Bits|AMD Radeon Pro 5700 XT OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.9.51|[Blender-2022-12-20-125131.ips](https://archive.blender.org/developer/F14076347/Blender-2022-12-20-125131.ips)|#103327|@Nurb2Kea| |macOS-13.6.3-x86_64-i386-64bit 64 Bits|Metal API AMD Radeon Pro Vega II Duo 1.2|[os_report.rtf](attachments/f7b535e4-3913-48a7-b167-e1764d3cf607)|#116195|@DERJUNG3D| **Blender Version** Broken: 3.5.0 Alpha, branch: master, commit date: 2022-12-18 20:06, hash: `50c7eb14f4` Worked: 3.5.0 Alpha, branch: master, commit date: 2022-12-16 20:43, hash: `4254810e50` (works fine) **Short description of error** Instant crash of blender when switching to rendered 3DView. **Exact steps for others to reproduce the error** Compile latest 3.5 version as of 2022-12-18 20:06, hash: `50c7eb14f4` open empty scene provided below and switch to rendered 3DView. [gpu.blend](https://archive.blender.org/developer/F14071250/gpu.blend) ![system.jpg](https://archive.blender.org/developer/F14071271/system.jpg) xcode 14.1 latest brew updates (cycles-cache & build-darwin folders deleted before compiling ) PS: When switching to CPU there is no crash. Only GPU !
Author

Added subscriber: @Nurb2Kea

Added subscriber: @Nurb2Kea

#103290 was marked as duplicate of this issue

#103290 was marked as duplicate of this issue

#102453 was marked as duplicate of this issue

#102453 was marked as duplicate of this issue

#103302 was marked as duplicate of this issue

#103302 was marked as duplicate of this issue
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

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

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

Can you attach the crash log created by Blender when it crashes?

Can you attach the crash log created by Blender when it crashes?
Author

Even with the terminal, you won't see anything when it crashes.
3.5 is getting worse since a month, and I'm not able to tell !

3.5.0 Alpha, branch: master, commit date: 2022-12-16 20:43, hash: 4254810e50 (the version before this one) works fine and I even can render animations again what wasn't possible a week ago...

Nothing in it:

Blender 3.5.0, Commit date: 2022-12-18 20:06, Hash 50c7eb14f4
bpy.ops.initial.settings() # Operator

backtrace

Python backtrace

Even with the terminal, you won't see anything when it crashes. 3.5 is getting worse since a month, and I'm not able to tell ! 3.5.0 Alpha, branch: master, commit date: 2022-12-16 20:43, hash: 4254810e50 (the version before this one) works fine and I even can render animations again what wasn't possible a week ago... Nothing in it: Blender 3.5.0, Commit date: 2022-12-18 20:06, Hash 50c7eb14f455 bpy.ops.initial.settings() # Operator backtrace Python backtrace
Author

Continues with : 3.5.0 Alpha, branch: master, commit date: 2022-12-19 20:56, hash: c2a8d8b18d

Continues with : 3.5.0 Alpha, branch: master, commit date: 2022-12-19 20:56, hash: `c2a8d8b18d`
Member

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

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

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

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

Can you perhaps check if you can find any relevant logs as per https://apple.stackexchange.com/questions/26480/where-can-i-find-my-crash-logs?

Can you perhaps check if you can find any relevant logs as per https://apple.stackexchange.com/questions/26480/where-can-i-find-my-crash-logs?
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Member

This is most likely the issue described here: https://blender.chat/channel/render-cycles-module?msg=BGRhNkijQJPTXbm77

This is most likely the issue described here: https://blender.chat/channel/render-cycles-module?msg=BGRhNkijQJPTXbm77
Member

Added subscriber: @LukasStockner

Added subscriber: @LukasStockner
Member

Hopefully @LukasStockner or someone else gets around to fixing it soon.

Hopefully @LukasStockner or someone else gets around to fixing it soon.
Author

That's what I found.
Blender-2022-12-20-125131.ips

That's what I found. [Blender-2022-12-20-125131.ips](https://archive.blender.org/developer/F14076347/Blender-2022-12-20-125131.ips)
Member

Added subscriber: @Kent-Davis

Added subscriber: @Kent-Davis
Member
_platform_strlen
ccl::MetalKernelPipeline::compile()
ccl::ShaderCache::compile_thread_func(int)
void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ccl::ShaderCache::load_kernel(ccl::DeviceKernel, ccl::MetalDevice*, ccl::MetalPipelineType)::$_1> >(void*)
_pthread_start
thread_start
``` _platform_strlen ccl::MetalKernelPipeline::compile() ccl::ShaderCache::compile_thread_func(int) void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ccl::ShaderCache::load_kernel(ccl::DeviceKernel, ccl::MetalDevice*, ccl::MetalPipelineType)::$_1> >(void*) _pthread_start thread_start ```
Member

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

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

Added subscriber: @iss

Added subscriber: @iss

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

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

Can confirn, same stacktrace as in #102453, but different function was compiled. Will confirm this task and merge #102453 here, since this is easier to reproduce.

With debugger code got stuck on exception in MetalKernelPipeline::compile() on printf "Error getting function"

Can confirn, same stacktrace as in #102453, but different function was compiled. Will confirm this task and merge #102453 here, since this is easier to reproduce. With debugger code got stuck on exception in MetalKernelPipeline::compile() on printf "Error getting function"

Added subscriber: @shugo

Added subscriber: @shugo
Member

Added subscribers: @DanielBrylka, @Memento

Added subscribers: @DanielBrylka, @Memento
Member

Should be fixed by 4c295276f0 in recent nightly builds. Would be great if someone could double-check so we can mark this resolved.

Should be fixed by 4c295276f0 in recent nightly builds. Would be great if someone could double-check so we can mark this resolved.
Lukas Stockner self-assigned this 2023-01-06 00:21:32 +01:00

yes, the latest build from the 6th of January (and from the last days too) does indeed compile the render kernels with two instances of MTLCompilerService on my intel 2020 iMac 27" (with 16 GB 5700-XT).
Then the workshop.blend scene renders in about 52s and uses a bit over 50% of the GPU.
This is still only half as quick as the Blender release 3.4.1 - here it takes only 28s.
What could be the reason for the slowdown?

Since the support of Metal in Blender I ran the same benchmark each time a new version or system update came out. Here are the results:

Intel iMAC 27“

Blender 3.0
iMac 27“ CPU
60s

Blender 3.1
iMac 27“ CPU
56s

Blender 3.2 Alpha (MacOS 12.3 Metal support!)
iMac 27“ GPU
30s

Blender 3.4 Alpha (MacOS 12.5)
iMac 27“ GPU
30s

Blender 3.4 Alpha (MacOS 12.6)
iMac 27“ GPU
28,4s

Blender 3.4 Alpha (MacOS 13.0)
iMac 27“ GPU
28,76s

Blender 3.5 Alpha (MacOS 13.0.1)
iMac 27“ GPU
28,23s

Blender 3.4 Release (MacOS 13.1)
iMac 27“ GPU
28s

Blender 3.4.1 Release (MacOS 13.1)
iMac 27“ GPU
28s

Blender 3.5 Alpha (MacOS 13.1)
iMac 27“ GPU
52s

I am having strange general crashes of the iMac that I cannot pinpoint. But for sure they are more often since Ventura.
I checked my machine and RAM. My uninformed guess is it has something to do with the "WindowsServer", Metal and the GPU.

Thanks for fixing the Alpha again. Best Daniel

yes, the latest build from the 6th of January (and from the last days too) does indeed compile the render kernels with two instances of MTLCompilerService on my intel 2020 iMac 27" (with 16 GB 5700-XT). Then the workshop.blend scene renders in about 52s and uses a bit over 50% of the GPU. This is still only half as quick as the Blender release 3.4.1 - here it takes only 28s. What could be the reason for the slowdown? Since the support of Metal in Blender I ran the same benchmark each time a new version or system update came out. Here are the results: Intel iMAC 27“ Blender 3.0 iMac 27“ CPU 60s Blender 3.1 iMac 27“ CPU 56s Blender 3.2 Alpha (MacOS 12.3 Metal support!) iMac 27“ GPU 30s Blender 3.4 Alpha (MacOS 12.5) iMac 27“ GPU 30s Blender 3.4 Alpha (MacOS 12.6) iMac 27“ GPU 28,4s Blender 3.4 Alpha (MacOS 13.0) iMac 27“ GPU 28,76s Blender 3.5 Alpha (MacOS 13.0.1) iMac 27“ GPU 28,23s Blender 3.4 Release (MacOS 13.1) iMac 27“ GPU 28s **Blender 3.4.1 Release (MacOS 13.1) iMac 27“ GPU 28s** Blender 3.5 Alpha (MacOS 13.1) iMac 27“ GPU 52s I am having strange general crashes of the iMac that I cannot pinpoint. But for sure they are more often since Ventura. I checked my machine and RAM. My uninformed guess is it has something to do with the "WindowsServer", Metal and the GPU. Thanks for fixing the Alpha again. Best Daniel

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Can confirm this being resolved, closing.

Can confirm this being resolved, closing.

There still bad crash during GPU Compute (Computer) on properties during Cycles render. See my other new ticket.
@DanielBrylka
@iss
#104596
Also check my youtube with my link.
There is not resolve.

There still bad crash during GPU Compute (Computer) on properties during Cycles render. See my other new ticket. @DanielBrylka @iss https://projects.blender.org/blender/blender/issues/104596 Also check my youtube with my link. There is not resolve.

Hi @Kent-Davis, I just checked on my iMac the 3.5 Alpha from the 12th of February.

I do not see any crashes for a while now and I am happy to report that at least on my configuration the render speed improved a lot again.

Blender 3.4.1 Release (MacOS 13.1)
iMac 27“ GPU
28s

Blender 3.5 Alpha (MacOS 13.2)
iMac 27“ GPU
27s

It's clear to see in the activity monitor that my Radeon Pro 5700 XT is using up to 80% while rendering.
You have a different AMD card as far I could see, right?

I hope you find a cause for your crashes soon.

Best, Daniel

Hi @Kent-Davis, I just checked on my iMac the 3.5 Alpha from the 12th of February. I do not see any crashes for a while now and I am happy to report that at least on my configuration the render speed improved a lot again. Blender 3.4.1 Release (MacOS 13.1) iMac 27“ GPU 28s Blender 3.5 Alpha (MacOS 13.2) iMac 27“ GPU 27s It's clear to see in the activity monitor that my Radeon Pro 5700 XT is using up to 80% while rendering. You have a different AMD card as far I could see, right? I hope you find a cause for your crashes soon. Best, Daniel
Author

As you can see it's one step away from crashing in video 01.
The second video shows how metal backend is displaying icons and signs when scaling the ui, what never happened in OpenGL.

System Information
Operating system: macOS-13.2.1-x86_64-i386-64bit 64 Bits
Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-02-20 22:04, hash: 07ae1feed2b9

As you can see it's one step away from crashing in video 01. The second video shows how metal backend is displaying icons and signs when scaling the ui, what never happened in OpenGL. **System Information** Operating system: macOS-13.2.1-x86_64-i386-64bit 64 Bits Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-02-20 22:04, hash: `07ae1feed2b9`
Guido reopened this issue 2023-02-22 00:47:02 +01:00
Blender Bot added
Status
Needs Triage
and removed
Status
Resolved
labels 2023-02-22 00:47:02 +01:00
Author

As you can see it's one step away from crashing in video 01.
The second video shows how metal backend is displaying icons and signs when scaling the ui, what never happened in OpenGL.

System Information
Operating system: macOS-13.2.1-x86_64-i386-64bit 64 Bits
Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-02-20 22:04, hash: 07ae1feed2b9

Edit: Complete MacOS crash & reboot with :Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-03-03 23:37, hash: d0cfbc23db81

As you can see it's one step away from crashing in video 01. The second video shows how metal backend is displaying icons and signs when scaling the ui, what never happened in OpenGL. **System Information** Operating system: macOS-13.2.1-x86_64-i386-64bit 64 Bits Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-02-20 22:04, hash: `07ae1feed2b9` Edit: Complete MacOS crash & reboot with :Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-03-03 23:37, hash: `d0cfbc23db81`

I'm not sure if is the same issue.
3.4.1 and Beta 3.5 Crashing when changing to shading viewport, still working perfect in 3.3
No matter how simple or complex files are.
I also found that Beta 3.5 was working fine for a while and then and with no reason begins crashing when F12 is pushed even with the files that worked fine before making it not usable at all in my machine.
By the way, Beta 3.5 viewport textures look weird when Viewport Metal is used

ImacPro
3,2 Ghz Xeon W 8 Cores
Radeon Pro Vega 56 8Gb
32 Gb 2666 Mhz DDR4
Ventura 13.2.1

I'm not sure if is the same issue. 3.4.1 and Beta 3.5 Crashing when changing to shading viewport, still working perfect in 3.3 No matter how simple or complex files are. I also found that Beta 3.5 was working fine for a while and then and with no reason begins crashing when F12 is pushed even with the files that worked fine before making it not usable at all in my machine. By the way, Beta 3.5 viewport textures look weird when Viewport Metal is used ImacPro 3,2 Ghz Xeon W 8 Cores Radeon Pro Vega 56 8Gb 32 Gb 2666 Mhz DDR4 Ventura 13.2.1

Check my report ticket long explain.
#105148

Check my report ticket long explain. https://projects.blender.org/blender/blender/issues/105148

Check my report ticket long explain.
#105148

Thank you. Last test with 3.5β was quite better, Having problems with some addons with viewport metal enable.
ex. KitOps was fully disable and not able to work

> Check my report ticket long explain. > https://projects.blender.org/blender/blender/issues/105148 Thank you. Last test with 3.5β was quite better, Having problems with some addons with viewport metal enable. ex. KitOps was fully disable and not able to work

@QBer You are welcome.

@QBer You are welcome.
Iliya Katushenock removed the
Module
Render & Cycles
label 2023-08-24 17:34:41 +02:00

I am confirming this issue, as it has been reported other times and may be related to these other reports:
#111408: Cycles GPU Compute 5000 x 5000 pixels render F12 crashes
#112678: Regression: Crashes when uses preview or final render modes

I am confirming this issue, as it has been reported other times and may be related to these other reports: #111408: Cycles GPU Compute 5000 x 5000 pixels render F12 crashes #112678: Regression: Crashes when uses preview or final render modes
Author

When was it reported?
Best blender mac support!!! THX
The reason I stop reporting bugs!

(we report - you fix and test - we confirm working again)
(by the time I can't test it anymore because I don't own anymore this Intel Mac setup)

When was it reported? Best blender mac support!!! THX The reason I stop reporting bugs! (we report - you fix and test - we confirm working again) (by the time I can't test it anymore because I don't own anymore this Intel Mac setup)
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
10 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#103327
No description provided.