Hair drawing crash with NVIDIA GPU under macOS 10.15 #78175

Closed
opened 2020-06-23 20:56:16 +02:00 by Stefan Werner · 8 comments
Member

Starting with revision beef67d1, hair in the OpenGL viewport crashes on my Late 2013 MacBook Pro with NVIDIA GT750M graphics running macOS 10.15.This can be reproduced by launching Blender with the default cube and creating a hair particle system on it.

I am not aware of this happening on AMD GPUs and have no information about Intel GPUs.

Turning on the # define USE_TRANSFORM_FEEDBACK in draw_hair.c, line 44 for macOS appears to resolve the issue for me.

- 0	  ___lldb_unnamed_symbol11655$$GeForceGLDriver ()
- 1	  ___lldb_unnamed_symbol11656$$GeForceGLDriver ()
- 2	  gpumGetTextureLevelInfo ()
- 3	  gldGetTextureLevelInfo ()
- 4	  glGetTexLevelParameteriv_Exec ()
- 5	  gpu_texture_check_capacity at blender/source/blender/gpu/intern/gpu_texture.c:742
- 6	  gpu_texture_try_alloc at blender/source/blender/gpu/intern/gpu_texture.c:761
- 7	  GPU_texture_create_nD at blender/source/blender/gpu/intern/gpu_texture.c:914
- 8	  GPU_texture_create_2d at blender/source/blender/gpu/intern/gpu_texture.c:1240
- 9	  GPU_viewport_texture_pool_query at blender/source/blender/gpu/intern/gpu_viewport.c:384
- 10	  DRW_texture_pool_query_2d at blender/source/blender/draw/intern/draw_manager_texture.c:141
- 11	  DRW_hair_update at blender/source/blender/draw/intern/draw_hair.c:295
- 12	  DRW_draw_render_loop_ex at blender/source/blender/draw/intern/draw_manager.c:1514
- 13	  DRW_draw_view at blender/source/blender/draw/intern/draw_manager.c:1402
- 14	  view3d_draw_view at blender/source/blender/editors/space_view3d/view3d_draw.c:1608
- 15	  view3d_main_region_draw at blender/source/blender/editors/space_view3d/view3d_draw.c:1632
- 16	  ED_region_do_draw at blender/source/blender/editors/screen/area.c:538
- 17	  wm_draw_window_offscreen at blender/source/blender/windowmanager/intern/wm_draw.c:688
- 18	  wm_draw_window at blender/source/blender/windowmanager/intern/wm_draw.c:809
- 19	  wm_draw_update at blender/source/blender/windowmanager/intern/wm_draw.c:1012
- 20	  WM_main at blender/source/blender/windowmanager/intern/wm.c:481
- 21	  main at blender/source/creator/creator.c:532
#22	  start ()
Starting with revision beef67d1, hair in the OpenGL viewport crashes on my Late 2013 MacBook Pro with NVIDIA GT750M graphics running macOS 10.15.This can be reproduced by launching Blender with the default cube and creating a hair particle system on it. I am not aware of this happening on AMD GPUs and have no information about Intel GPUs. Turning on the `# define USE_TRANSFORM_FEEDBACK` in draw_hair.c, line 44 for macOS appears to resolve the issue for me. ``` - 0 ___lldb_unnamed_symbol11655$$GeForceGLDriver () - 1 ___lldb_unnamed_symbol11656$$GeForceGLDriver () - 2 gpumGetTextureLevelInfo () - 3 gldGetTextureLevelInfo () - 4 glGetTexLevelParameteriv_Exec () - 5 gpu_texture_check_capacity at blender/source/blender/gpu/intern/gpu_texture.c:742 - 6 gpu_texture_try_alloc at blender/source/blender/gpu/intern/gpu_texture.c:761 - 7 GPU_texture_create_nD at blender/source/blender/gpu/intern/gpu_texture.c:914 - 8 GPU_texture_create_2d at blender/source/blender/gpu/intern/gpu_texture.c:1240 - 9 GPU_viewport_texture_pool_query at blender/source/blender/gpu/intern/gpu_viewport.c:384 - 10 DRW_texture_pool_query_2d at blender/source/blender/draw/intern/draw_manager_texture.c:141 - 11 DRW_hair_update at blender/source/blender/draw/intern/draw_hair.c:295 - 12 DRW_draw_render_loop_ex at blender/source/blender/draw/intern/draw_manager.c:1514 - 13 DRW_draw_view at blender/source/blender/draw/intern/draw_manager.c:1402 - 14 view3d_draw_view at blender/source/blender/editors/space_view3d/view3d_draw.c:1608 - 15 view3d_main_region_draw at blender/source/blender/editors/space_view3d/view3d_draw.c:1632 - 16 ED_region_do_draw at blender/source/blender/editors/screen/area.c:538 - 17 wm_draw_window_offscreen at blender/source/blender/windowmanager/intern/wm_draw.c:688 - 18 wm_draw_window at blender/source/blender/windowmanager/intern/wm_draw.c:809 - 19 wm_draw_update at blender/source/blender/windowmanager/intern/wm_draw.c:1012 - 20 WM_main at blender/source/blender/windowmanager/intern/wm.c:481 - 21 main at blender/source/creator/creator.c:532 #22 start () ```
Stefan Werner self-assigned this 2020-06-23 20:56:16 +02:00
Author
Member

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

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

Added subscribers: @Stefan_Werner, @fclem

Added subscribers: @Stefan_Werner, @fclem
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Author
Member

It seems to go a bit further back than that. While simple scenes with hair (default cube) work, scenes like Fishy Cat were rendering wrong since cecda64e2e

Likewise, enabling USE_TRANSFORM_FEEDBACK on macOS in the latest master fixes the crashes with the default cube, but still crashes Fishy Cat.

It seems to go a bit further back than that. While simple scenes with hair (default cube) work, scenes like Fishy Cat were rendering wrong since cecda64e2ead502a052f9bea5ffde39e4a46bf90 Likewise, enabling `USE_TRANSFORM_FEEDBACK` on macOS in the latest master fixes the crashes with the default cube, but still crashes Fishy Cat.

This issue was referenced by abdaf4159f

This issue was referenced by abdaf4159ffb0c862aea7963cf95106ea2e06ae9

This issue was referenced by 8c4703127a

This issue was referenced by 8c4703127ad1bd857b8b1b39960a3da2ffa36ca6
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

8c4703127a: GPU: Apple/Nvidia Proxy check.

8c4703127a: GPU: Apple/Nvidia Proxy check.
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 & 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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & 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 project
No Assignees
3 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#78175
No description provided.