Metal: Assert when drawing motion paths #120969

Open
opened 2024-04-23 11:17:55 +02:00 by Jeroen Bakker · 0 comments
Member

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

Blender Version
Broken: version: 4.2.0 Alpha, branch: Unknown, commit date: Unknown Unknown, hash: 91cf938e4087a26001d1d7c9b33abfa54898863f
Worked: (newest version of Blender that worked as expected)

Short description of error
Blender asserts when drawing the motion path overlays.
Issue doesn't trigger when motion path overlay is disabled.

Read blend: "/Users/jeroen/Downloads/mr_elephant.blend"
GPUTexture: Blender Texture Not Loaded!
0   Blender                             0x0000000105facbd8 BLI_system_backtrace + 52
1   Blender                             0x0000000105d03c1c _BLI_assert_print_backtrace + 24
2   Blender                             0x000000010d783620 _ZN7blender3gpu25mtl_convert_vertex_formatE15MTLVertexFormat15GPUVertCompTypej16GPUVertFetchModePS1_ + 2956
3   Blender                             0x000000010d78237c _ZN7blender3gpu8MTLBatch22prepare_vertex_bindingEPNS0_10MTLVertBufERNS0_32MTLRenderPipelineStateDescriptorEPKNS0_18MTLShaderInterfaceERtb + 3372
4   Blender                             0x000000010d785498 _ZN7blender3gpu8MTLBatch38prepare_vertex_descriptor_and_bindingsEPPNS0_10MTLVertBufERi + 2320
5   Blender                             0x000000010d7842ec _ZN7blender3gpu8MTLBatch4bindEj + 460
6   Blender                             0x000000010d780704 _ZN7blender3gpu8MTLBatch13draw_advancedEiiii + 156
7   Blender                             0x000000010d7805d8 _ZN7blender3gpu8MTLBatch4drawEiiii + 104
8   Blender                             0x000000010d6561e8 _Z23GPU_batch_draw_advancedPN7blender3gpu5BatchEiiii + 440
9   Blender                             0x000000010658a9f0 _ZL19draw_call_single_doP15DRWShadingGroupP16DRWCommandsStatePN7blender3gpu5BatchEjiiiib + 1768
10  Blender                             0x00000001065892d8 _ZL12draw_shgroupP15DRWShadingGroup8DRWState + 1416
11  Blender                             0x00000001065889a0 _ZL16drw_draw_pass_exP7DRWPassP15DRWShadingGroupS2_ + 416
12  Blender                             0x00000001065887e0 _Z13DRW_draw_passP7DRWPass + 64
13  Blender                             0x00000001066fd170 _Z24OVERLAY_motion_path_drawP12OVERLAY_Data + 40
14  Blender                             0x00000001066eb030 _ZL18OVERLAY_draw_scenePv + 968
15  Blender                             0x000000010657718c _ZL22drw_engines_draw_scenev + 192
16  Blender                             0x0000000106575864 _Z23DRW_draw_render_loop_exP9DepsgraphP16RenderEngineTypeP7ARegionP6View3DP11GPUViewportPK8bContext + 1496
17  Blender                             0x0000000106575234 _Z13DRW_draw_viewPK8bContext + 344
18  Blender                             0x0000000108363e40 _ZL16view3d_draw_viewPK8bContextP7ARegion + 136
19  Blender                             0x0000000108363d04 _Z23view3d_main_region_drawPK8bContextP7ARegion + 64
20  Blender                             0x0000000106dc59d8 _Z17ED_region_do_drawP8bContextP7ARegion + 364
21  Blender                             0x00000001060c5d9c _ZL24wm_draw_window_offscreenP8bContextP8wmWindowb + 1160
22  Blender                             0x00000001060c51cc _ZL14wm_draw_windowP8bContextP8wmWindow + 104
23  Blender                             0x00000001060c4d70 _Z14wm_draw_updateP8bContext + 192
24  Blender                             0x00000001060bd0bc _Z7WM_mainP8bContext + 60
25  Blender                             0x0000000104cfbc70 _ZL20callback_main_atexitPv + 0
26  dyld                                0x0000000183d860e0 start + 2360
BLI_assert failed: source/blender/gpu/metal/mtl_shader.hh:1000, mtl_convert_vertex_format(), at 'false'
  Source vertex data format is either Int, Int2, Int3, Int4 but format in shader interface is NOT compatible.

Exact steps for others to reproduce the error

NOTE: requires a build where asserts are enabled.

**System Information** Operating system: macOS-14.4.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Ultra 1.2 **Blender Version** Broken: version: 4.2.0 Alpha, branch: Unknown, commit date: Unknown Unknown, hash: `91cf938e4087a26001d1d7c9b33abfa54898863f` Worked: (newest version of Blender that worked as expected) **Short description of error** Blender asserts when drawing the motion path overlays. Issue doesn't trigger when motion path overlay is disabled. ``` Read blend: "/Users/jeroen/Downloads/mr_elephant.blend" GPUTexture: Blender Texture Not Loaded! 0 Blender 0x0000000105facbd8 BLI_system_backtrace + 52 1 Blender 0x0000000105d03c1c _BLI_assert_print_backtrace + 24 2 Blender 0x000000010d783620 _ZN7blender3gpu25mtl_convert_vertex_formatE15MTLVertexFormat15GPUVertCompTypej16GPUVertFetchModePS1_ + 2956 3 Blender 0x000000010d78237c _ZN7blender3gpu8MTLBatch22prepare_vertex_bindingEPNS0_10MTLVertBufERNS0_32MTLRenderPipelineStateDescriptorEPKNS0_18MTLShaderInterfaceERtb + 3372 4 Blender 0x000000010d785498 _ZN7blender3gpu8MTLBatch38prepare_vertex_descriptor_and_bindingsEPPNS0_10MTLVertBufERi + 2320 5 Blender 0x000000010d7842ec _ZN7blender3gpu8MTLBatch4bindEj + 460 6 Blender 0x000000010d780704 _ZN7blender3gpu8MTLBatch13draw_advancedEiiii + 156 7 Blender 0x000000010d7805d8 _ZN7blender3gpu8MTLBatch4drawEiiii + 104 8 Blender 0x000000010d6561e8 _Z23GPU_batch_draw_advancedPN7blender3gpu5BatchEiiii + 440 9 Blender 0x000000010658a9f0 _ZL19draw_call_single_doP15DRWShadingGroupP16DRWCommandsStatePN7blender3gpu5BatchEjiiiib + 1768 10 Blender 0x00000001065892d8 _ZL12draw_shgroupP15DRWShadingGroup8DRWState + 1416 11 Blender 0x00000001065889a0 _ZL16drw_draw_pass_exP7DRWPassP15DRWShadingGroupS2_ + 416 12 Blender 0x00000001065887e0 _Z13DRW_draw_passP7DRWPass + 64 13 Blender 0x00000001066fd170 _Z24OVERLAY_motion_path_drawP12OVERLAY_Data + 40 14 Blender 0x00000001066eb030 _ZL18OVERLAY_draw_scenePv + 968 15 Blender 0x000000010657718c _ZL22drw_engines_draw_scenev + 192 16 Blender 0x0000000106575864 _Z23DRW_draw_render_loop_exP9DepsgraphP16RenderEngineTypeP7ARegionP6View3DP11GPUViewportPK8bContext + 1496 17 Blender 0x0000000106575234 _Z13DRW_draw_viewPK8bContext + 344 18 Blender 0x0000000108363e40 _ZL16view3d_draw_viewPK8bContextP7ARegion + 136 19 Blender 0x0000000108363d04 _Z23view3d_main_region_drawPK8bContextP7ARegion + 64 20 Blender 0x0000000106dc59d8 _Z17ED_region_do_drawP8bContextP7ARegion + 364 21 Blender 0x00000001060c5d9c _ZL24wm_draw_window_offscreenP8bContextP8wmWindowb + 1160 22 Blender 0x00000001060c51cc _ZL14wm_draw_windowP8bContextP8wmWindow + 104 23 Blender 0x00000001060c4d70 _Z14wm_draw_updateP8bContext + 192 24 Blender 0x00000001060bd0bc _Z7WM_mainP8bContext + 60 25 Blender 0x0000000104cfbc70 _ZL20callback_main_atexitPv + 0 26 dyld 0x0000000183d860e0 start + 2360 BLI_assert failed: source/blender/gpu/metal/mtl_shader.hh:1000, mtl_convert_vertex_format(), at 'false' Source vertex data format is either Int, Int2, Int3, Int4 but format in shader interface is NOT compatible. ``` **Exact steps for others to reproduce the error** * Download [mr_elephant.blend](https://download.blender.org/demo/eevee/mr_elephant/mr_elephant.blend) * Open the file * Turn on the overlays in the 3d viewport. > NOTE: requires a build where asserts are enabled.
Jeroen Bakker added this to the 4.2 LTS milestone 2024-04-23 11:17:55 +02:00
Jeroen Bakker added this to the Viewport & EEVEE project 2024-04-23 11:17:57 +02:00
Thomas Dinges removed this from the 4.2 LTS milestone 2024-07-15 10:37:22 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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 Assignees
1 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#120969
No description provided.