Apple M1 crash when rendering from UV workspace with Material Preview viewport shading #94652

Closed
opened 2022-01-05 01:15:06 +01:00 by RJ Silk · 10 comments

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

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557
Worked: (Not yet determined)

Short description of error
When viewing the default "UV Editing" workspace with the 3D Viewport shading set to Material Preview, rendering an image almost always results in a SIGSEGV crash on macOS w/Apple Silicon. Please see attached video, system-info, and Apple-generated crash report. Please let me know if I can provide any more info.

Exact steps for others to reproduce the error

  • Open Blender with the default startup file (unchanged).
  • Switch to the UV Editing tab
  • In the 3D Viewport, switch the shading to Material Preview
  • Using the Render menu, select Render Image. This almost always results in a crash on my machine.

crash_report.txt
system-info.txt
crash_recording.mov

**System Information** Operating system: macOS-12.1-arm64-arm-64bit 64 Bits Graphics card: `Apple M1 Max Apple 4.1 Metal - 76.3` **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` Worked: (Not yet determined) **Short description of error** When viewing the default "UV Editing" workspace with the 3D Viewport shading set to Material Preview, rendering an image almost always results in a SIGSEGV crash on macOS w/Apple Silicon. Please see attached video, system-info, and Apple-generated crash report. Please let me know if I can provide any more info. **Exact steps for others to reproduce the error** - Open Blender with the default startup file (unchanged). - Switch to the UV Editing tab - In the 3D Viewport, switch the shading to Material Preview - Using the Render menu, select Render Image. This almost always results in a crash on my machine. [crash_report.txt](https://archive.blender.org/developer/F12789418/crash_report.txt) [system-info.txt](https://archive.blender.org/developer/F12789419/system-info.txt) [crash_recording.mov](https://archive.blender.org/developer/F12789420/crash_recording.mov)
Author

Added subscriber: @rjsilk

Added subscriber: @rjsilk
Author

Apologies, I don't know why the above mock was attached to this report, it is not related. I don't have the ability to remove it. Sorry for the confusion.

Apologies, I don't know why the above mock was attached to this report, it is not related. I don't have the ability to remove it. Sorry for the confusion.

Added subscriber: @michael64

Added subscriber: @michael64

Thanks @rjsilk for the report! I can confirm this crash on Apple M1.

I tested this crash with P2685 applied and it looks to me like it has the same root cause as #94230.

PS: As for the attached mock this is simply because one simply writes Apple M1 and a capital M followed by a number is interpreted by the forum software Phabricator as a reference to a mock with the number following the capital M, no big deal.

Thanks @rjsilk for the report! I can confirm this crash on Apple M1. I tested this crash with [P2685](https://archive.blender.org/developer/P2685.txt) applied and it looks to me like it has the same root cause as #94230. PS: As for the attached mock this is simply because one simply writes Apple M1 and a capital M followed by a number is interpreted by the forum software Phabricator as a reference to a mock with the number following the capital M, no big deal.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Can redo on Intel HD with blender-3.0.1-candidate+v30.9d6680e7f9b7-darwin.x86_64-release.dmg
But not with blender-3.1.0-alpha+master.e69020ad0f52-darwin.x86_64-release.dmg

Here D13808#366568 it's mentioned that release build doesn't crash apparently very often and I haven't been able to check with asan

Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	    0x7ff80a362ca6 __kill + 10
1   Blender                       	       0x101f38dec sig_handle_crash + 508
2   libsystem_platform.dylib      	    0x7ff80a3aee2d _sigtramp + 29
3   ???                           	0xc141ef9e411e1062 ???
4   Blender                       	       0x10264cfe6 DRW_shader_find_from_material + 22
5   Blender                       	       0x10266dcfc eevee_material_get_ex + 60
6   Blender                       	       0x10266e112 EEVEE_material_get + 114
7   Blender                       	       0x102664992 EEVEE_materials_cache_populate + 2370
8   Blender                       	       0x10265a727 EEVEE_cache_populate + 151
9   Blender                       	       0x1026417ef drw_engines_cache_populate + 207
10  Blender                       	       0x1026404df DRW_draw_render_loop_ex + 1023
11  Blender                       	       0x1031447f8 view3d_main_region_draw + 136
12  Blender                       	       0x102c1cf61 ED_region_do_draw + 337
13  Blender                       	       0x1024c9b5d wm_draw_update + 1757
14  Blender                       	       0x1024fd3a3 ghost_event_proc + 2723
15  Blender                       	       0x103212124 GHOST_CallbackEventConsumer::processEvent(GHOST_IEvent*) + 20
16  Blender                       	       0x10321313c GHOST_EventManager::dispatchEvent() + 220
17  Blender                       	       0x103213178 GHOST_EventManager::dispatchEvents() + 24
18  Blender                       	       0x103215966 GHOST_System::dispatchEvents() + 38
19  Blender                       	       0x1024fc6b7 wm_window_process_events + 39
20  Blender                       	       0x1024c6af8 WM_main + 24
21  Blender                       	       0x101f3556b main + 907
22  dyld                          	       0x11c6104fe start + 462

Can redo on Intel HD with `blender-3.0.1-candidate+v30.9d6680e7f9b7-darwin.x86_64-release.dmg` But not with `blender-3.1.0-alpha+master.e69020ad0f52-darwin.x86_64-release.dmg` Here [D13808](https://archive.blender.org/developer/D13808)#366568 it's mentioned that release build doesn't crash apparently very often and I haven't been able to check with asan ``` Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff80a362ca6 __kill + 10 1 Blender 0x101f38dec sig_handle_crash + 508 2 libsystem_platform.dylib 0x7ff80a3aee2d _sigtramp + 29 3 ??? 0xc141ef9e411e1062 ??? 4 Blender 0x10264cfe6 DRW_shader_find_from_material + 22 5 Blender 0x10266dcfc eevee_material_get_ex + 60 6 Blender 0x10266e112 EEVEE_material_get + 114 7 Blender 0x102664992 EEVEE_materials_cache_populate + 2370 8 Blender 0x10265a727 EEVEE_cache_populate + 151 9 Blender 0x1026417ef drw_engines_cache_populate + 207 10 Blender 0x1026404df DRW_draw_render_loop_ex + 1023 11 Blender 0x1031447f8 view3d_main_region_draw + 136 12 Blender 0x102c1cf61 ED_region_do_draw + 337 13 Blender 0x1024c9b5d wm_draw_update + 1757 14 Blender 0x1024fd3a3 ghost_event_proc + 2723 15 Blender 0x103212124 GHOST_CallbackEventConsumer::processEvent(GHOST_IEvent*) + 20 16 Blender 0x10321313c GHOST_EventManager::dispatchEvent() + 220 17 Blender 0x103213178 GHOST_EventManager::dispatchEvents() + 24 18 Blender 0x103215966 GHOST_System::dispatchEvents() + 38 19 Blender 0x1024fc6b7 wm_window_process_events + 39 20 Blender 0x1024c6af8 WM_main + 24 21 Blender 0x101f3556b main + 907 22 dyld 0x11c6104fe start + 462 ```

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I cannot replicate the problem. Maybe it's random. But @ankitm's call stack indicates it's the same root as #94230 (Crash rendering with EEVEE in mesh edit-mode). So I'll merge the reports.

I cannot replicate the problem. Maybe it's random. But @ankitm's call stack indicates it's the same root as #94230 (Crash rendering with EEVEE in mesh edit-mode). So I'll merge the reports.

Closed as duplicate of #94230

Closed as duplicate of #94230
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#94652
No description provided.