Crash when you select Hair Type in Particle System on macOS #75832

Closed
opened 2020-04-17 16:23:17 +02:00 by Óscar · 30 comments

System Information
Operating system: macOS 10.13.6 Darwin-17.7.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon HD 6970M OpenGL Engine ATI Technologies Inc. 4.1 ATI-1.68.24

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-16 15:38, hash: 8cb10c124e

Short description of error
When you select Hair Type in Particle System, Blender crashed immediately.

Exact steps for others to reproduce the error

  1. Load Factory Settings.
  2. Select the Cube in the viewport and Add a Particle System.
  3. Change to Hair Type and Blender crashes immediately.
**System Information** Operating system: macOS 10.13.6 Darwin-17.7.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon HD 6970M OpenGL Engine ATI Technologies Inc. 4.1 ATI-1.68.24 **Blender Version** Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-16 15:38, hash: `8cb10c124e` **Short description of error** When you select Hair Type in Particle System, Blender crashed immediately. **Exact steps for others to reproduce the error** 1. Load Factory Settings. 2. Select the Cube in the viewport and Add a Particle System. 3. Change to Hair Type and Blender crashes immediately.
Author

Added subscriber: @Oxer-1

Added subscriber: @Oxer-1

#75905 was marked as duplicate of this issue

#75905 was marked as duplicate of this issue

#75880 was marked as duplicate of this issue

#75880 was marked as duplicate of this issue

#75843 was marked as duplicate of this issue

#75843 was marked as duplicate of this issue

#75837 was marked as duplicate of this issue

#75837 was marked as duplicate of this issue

Added subscriber: @linosia

Added subscriber: @linosia
Brecht Van Lommel changed title from Crash when you select Hair Type in Particle System to Crash when you select Hair Type in Particle System on macOS 2020-04-17 18:02:05 +02:00

Added subscribers: @fclem, @brecht

Added subscribers: @fclem, @brecht

@fclem, only happens on macOS since that doesn't use transform feedback.

GPUShader: compile error:
===== shader string 1 ====
 1  #version 330
===== shader string 2 ====
 2  #define GPU_FRAGMENT_SHADER
===== shader string 3 ====
 3  #extension GL_ARB_texture_gather: enable
 4  #define GPU_ARB_texture_gather
 5  #extension GL_ARB_texture_query_lod: enable
 6  #extension GL_ARB_texture_cube_map_array : enable
 7  #define GPU_ARB_texture_cube_map_array
===== shader string 4 ====
 8  #define GPU_INTEL
 9  #define OS_MAC
10  #define DFDX_SIGN 1.0
11  #define DFDY_SIGN 1.0
===== shader string 5 ====
12  #define HAIR_PHASE_SUBDIV
13  #define TF_WORKAROUND
===== shader string 6 ====
14
15  in vec4 finalColor;
16  out vec4 fragColor;
17
18  void main()
19  {
20    fragColor = finalColor;
21    fragColor = blender_srgb_to_framebuffer_space(fragColor);
22  }
ERROR: 0:21: Invalid call of undeclared identifier 'blender_srgb_to_framebuffer_space'

This works. But I'm not sure what the preferred solution here, or if there is perhaps a more general issue here with using these types of shaders that might pop up in more places.

diff --git a/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl
index 3a2d96c9929..51fadfb1e70 100644
--- a/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl
@@ -5,5 +5,7 @@ out vec4 fragColor;
 void main()
 {
   fragColor = finalColor;
+#ifdef blender_srgb_to_framebuffer_space
   fragColor = blender_srgb_to_framebuffer_space(fragColor);
+#endif
 }
@fclem, only happens on macOS since that doesn't use transform feedback. ``` GPUShader: compile error: ===== shader string 1 ==== 1 #version 330 ===== shader string 2 ==== 2 #define GPU_FRAGMENT_SHADER ===== shader string 3 ==== 3 #extension GL_ARB_texture_gather: enable 4 #define GPU_ARB_texture_gather 5 #extension GL_ARB_texture_query_lod: enable 6 #extension GL_ARB_texture_cube_map_array : enable 7 #define GPU_ARB_texture_cube_map_array ===== shader string 4 ==== 8 #define GPU_INTEL 9 #define OS_MAC 10 #define DFDX_SIGN 1.0 11 #define DFDY_SIGN 1.0 ===== shader string 5 ==== 12 #define HAIR_PHASE_SUBDIV 13 #define TF_WORKAROUND ===== shader string 6 ==== 14 15 in vec4 finalColor; 16 out vec4 fragColor; 17 18 void main() 19 { 20 fragColor = finalColor; 21 fragColor = blender_srgb_to_framebuffer_space(fragColor); 22 } ERROR: 0:21: Invalid call of undeclared identifier 'blender_srgb_to_framebuffer_space' ``` This works. But I'm not sure what the preferred solution here, or if there is perhaps a more general issue here with using these types of shaders that might pop up in more places. ``` diff --git a/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl index 3a2d96c9929..51fadfb1e70 100644 --- a/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_3D_smooth_color_frag.glsl @@ -5,5 +5,7 @@ out vec4 fragColor; void main() { fragColor = finalColor; +#ifdef blender_srgb_to_framebuffer_space fragColor = blender_srgb_to_framebuffer_space(fragColor); +#endif } ```

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

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

Added subscriber: @NeilRichmond

Added subscriber: @NeilRichmond

This issue was referenced by b7d603b41c

This issue was referenced by b7d603b41cca270af54f91e09a43ac7b5f8ec159

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Clément Foucault self-assigned this 2020-04-17 20:43:34 +02:00

Added subscriber: @Tobin

Added subscriber: @Tobin

Added subscriber: @GabrielMoro

Added subscriber: @GabrielMoro

Added subscriber: @nlate

Added subscriber: @nlate

Blender 2.93 Alpha is still crashing when adding hair to default cube on Macs.

Blender 2.93 Alpha is still crashing when adding hair to default cube on Macs.

Added subscriber: @Memento

Added subscriber: @Memento

@nlate I just tried Blender 2.93 Alpha 321eef6a0c from April 3rd 2021 on an older MacBook Pro 13" with Intel HD 4000 running macOS 10.15.7 and there I can not reproduce the crash, this without a "Load Factory Settings" though...

For completeness sake I also tried with a "Load Factory Settings" and that also works without a crash.

@nlate I just tried Blender 2.93 Alpha 321eef6a0c0f from April 3rd 2021 on an older MacBook Pro 13" with Intel HD 4000 running macOS 10.15.7 and there I can not reproduce the crash, this without a "Load Factory Settings" though... For completeness sake I also tried with a "Load Factory Settings" and that also works without a crash.

Added subscriber: @ngerbens

Added subscriber: @ngerbens

I have exactly the same problem.
I Select the Cube (or any mesh) in the viewport and Add a Particle System.
I Change to Hair Type and Blender crashes immediately.

Blender versions (both) 2.92 & alpha 2.93

iMac (Retina 5K, 27-inch, Late 2015)
Latest OSX

I have exactly the same problem. I Select the Cube (or any mesh) in the viewport and Add a Particle System. I Change to Hair Type and Blender crashes immediately. Blender versions (both) 2.92 & alpha 2.93 iMac (Retina 5K, 27-inch, Late 2015) Latest OSX

Added subscriber: @kstebbs

Added subscriber: @kstebbs

Same problem here. I'm running 2.91.2 on a 2013 Mac Pro.

I'm going to try the latest version and see if it can be recreated.

Update: Yep, still an issue in the latest version.

Same problem here. I'm running 2.91.2 on a 2013 Mac Pro. I'm going to try the latest version and see if it can be recreated. Update: Yep, still an issue in the latest version.

Added subscriber: @hexahelix

Added subscriber: @hexahelix

Hi,

I have the same issue.
Mac Book Pro 2015 with AMD Radeon 2GB
Blender 2.92.0

Blender crashes immediately after clicking on hair.

Hi, I have the same issue. Mac Book Pro 2015 with AMD Radeon 2GB Blender 2.92.0 Blender crashes immediately after clicking on hair.

Added subscriber: @Baffledmostly

Added subscriber: @Baffledmostly

Hi
Same issue here with 9.3 and latest iMac OS.
iMac (Retina 5K, 27-inch, Late 2015)
3.2 GHz Quad-Core Intel Core i5
AMD Radeon R9 M390 2 GB

Hi Same issue here with 9.3 and latest iMac OS. iMac (Retina 5K, 27-inch, Late 2015) 3.2 GHz Quad-Core Intel Core i5 AMD Radeon R9 M390 2 GB

Added subscriber: @calutron

Added subscriber: @calutron

Blender 2.93.5
MacOS 10.15.7

Hi this is still broken. I found a weird fix that works:

  1. On default cube make new particle system.
  2. Set emission to 0.
  3. Now change it to Hair mode
  4. Change Viewport Display from "Rendered" to "Path"
  5. Change emission to any number
  6. Render one frame
  7. Change viewport display back Rendered. Done. You should be able to now add hair to any object without it crashing. You only need to do this once per session.
Blender 2.93.5 MacOS 10.15.7 Hi this is still broken. I found a weird fix that works: 1. On default cube make new particle system. 2. Set emission to 0. 3. Now change it to Hair mode 4. Change Viewport Display from "Rendered" to "Path" 5. Change emission to any number 6. Render one frame 7. Change viewport display back Rendered. Done. You should be able to now add hair to any object without it crashing. You only need to do this once per session.

Added subscriber: @Mark-Andre-Hopf

Added subscriber: @Mark-Andre-Hopf

Thanks @calutron. Your trick also works around the crash on macOS 12.0.1 with Blender 3.0.0.

Thanks @calutron. Your trick also works around the crash on macOS 12.0.1 with Blender 3.0.0.
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
13 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#75832
No description provided.