Page MenuHome

Crash when you select Hair Type in Particle System on macOS
Closed, ResolvedPublicBUG


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: rB8cb10c124efe

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.

Event Timeline

Brecht Van Lommel (brecht) renamed this task from Crash when you select Hair Type in Particle System to Crash when you select Hair Type in Particle System on macOS.Apr 17 2020, 6:01 PM
Brecht Van Lommel (brecht) triaged this task as High priority.

@Clément Foucault (fclem), only happens on macOS since that doesn't use transform feedback.

GPUShader: compile error:
===== shader string 1 ====
 1  #version 330
===== shader string 2 ====
===== 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 ====
13  #define TF_WORKAROUND
===== shader string 6 ====
15  in vec4 finalColor;
16  out vec4 fragColor;
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);
Brecht Van Lommel (brecht) changed the task status from Needs Triage to Confirmed.Apr 17 2020, 7:42 PM
Brecht Van Lommel (brecht) changed the subtype of this task from "Report" to "Bug".
Nate (nlate) added a subscriber: Nate (nlate).

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

@Nate (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.

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