Crash: Particle Hair Children Viewport Visibility #65246

Closed
opened 2019-05-28 22:53:55 +02:00 by Tristan Sach · 4 comments

System Information
Operating system: Windows 10
Graphics card: GTX 1070

Blender Version
Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-27 19:48, hash: 89207df722, type: Release
Worked: 2.79b

Short description of error
Blender crashes when in particle edit mode with children hair particles enabled in the viewport and try to hide a second or duplicated particle system.

Two slightly different methods to reproduce the error:

Method 1 - Two Unique Hair Particle Systems

  1. Open blender, new general cube file, cube selected.

In properties editor:
2. Go to particle systems for cube.
3. Add a new particle system.
4. Set the particle system to hair.
5. Set the children to simple.
6. Add another new particle system with hair and simple children just like the first.

In 3D viewport editor:
7. Go to particle edit mode.
8. Go to tool options > viewport display > check the box for children.

In properties editor:
9. Toggle off the display in viewport button for the second particle system.

Crash

Method 2 - Duplicated Hair Particle System

  1. Open blender, new general cube file, cube selected.

In properties editor:
2. Go to particle systems for cube.
3. Add a new particle system.
4. Set the particle system to hair.
5. Set the children to simple.
6. Duplicate the particle system.

In 3D viewport editor:
7. Go to particle edit mode.
8. Go to tool options > viewport display > check the box for children.

In properties editor:
9. Toggle off the display in viewport button for the first particle system.

Crash

Other notes

If you are in object mode when turning off the viewport visibility for the particle system, it will not crash. However, going back into particle edit mode will cause both particle systems to be hidden despite one still being set to visible.

Testing files
method-1.blend - Toggle the display in viewport button for the second particle system. Should immediately crash.

blender28-hair-particles-crash-method-1.blend

method-2.blend - Toggle the display in viewport button for the first particle system. Should immediately crash.

blender28-hair-particles-crash-method-2.blend

**System Information** Operating system: Windows 10 Graphics card: GTX 1070 **Blender Version** Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-27 19:48, hash: 89207df7222a, type: Release Worked: 2.79b **Short description of error** Blender crashes when in particle edit mode with children hair particles enabled in the viewport and try to hide a second or duplicated particle system. Two slightly different methods to reproduce the error: **Method 1 - Two Unique Hair Particle Systems** 1. Open blender, new general cube file, cube selected. In properties editor: 2. Go to particle systems for cube. 3. Add a new particle system. 4. Set the particle system to hair. 5. Set the children to simple. 6. Add another new particle system with hair and simple children just like the first. In 3D viewport editor: 7. Go to particle edit mode. 8. Go to tool options > viewport display > check the box for children. In properties editor: 9. Toggle off the display in viewport button for the second particle system. Crash **Method 2 - Duplicated Hair Particle System** 1. Open blender, new general cube file, cube selected. In properties editor: 2. Go to particle systems for cube. 3. Add a new particle system. 4. Set the particle system to hair. 5. Set the children to simple. 6. Duplicate the particle system. In 3D viewport editor: 7. Go to particle edit mode. 8. Go to tool options > viewport display > check the box for children. In properties editor: 9. Toggle off the display in viewport button for the first particle system. Crash **Other notes** If you are in object mode when turning off the viewport visibility for the particle system, it will not crash. However, going back into particle edit mode will cause both particle systems to be hidden despite one still being set to visible. **Testing files** method-1.blend - Toggle the display in viewport button for the second particle system. Should immediately crash. [blender28-hair-particles-crash-method-1.blend](https://archive.blender.org/developer/F7076795/blender28-hair-particles-crash-method-1.blend) method-2.blend - Toggle the display in viewport button for the first particle system. Should immediately crash. [blender28-hair-particles-crash-method-2.blend](https://archive.blender.org/developer/F7076798/blender28-hair-particles-crash-method-2.blend)
Author

Added subscriber: @pancake_hunter

Added subscriber: @pancake_hunter

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Sergey Sharybin was assigned by Sebastian Parborg 2019-06-13 14:42:57 +02:00

I can reproduce the crash in the method 1 file but toggling on and off the "display in viewport" setting for both particle systems a couple of times:

Thread 29 "blender" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd7ffb700 (LWP 9263)]
0x0000555557d8f3b5 in psys_thread_create_path (task=0x7fffd3295828, cpa=0x7fffce80ae08, child_keys=0x7fffce6eada8, i=312)
    at /home/zed/prog/blender/source/blender/blenkernel/intern/particle.c:2565
2565	    if (cpa_num > ctx->sim.psmd->mesh_final->totface) {
(gdb) bt
#0  0x0000555557d8f3b5 in psys_thread_create_path (task=0x7fffd3295828, cpa=0x7fffce80ae08, child_keys=0x7fffce6eada8, i=312)
    at /home/zed/prog/blender/source/blender/blenkernel/intern/particle.c:2565
#1  0x0000555557d90026 in exec_child_path_cache (UNUSED_pool=0x7fffcb924008, taskdata=0x7fffd3295828, UNUSED_threadid=5)
    at /home/zed/prog/blender/source/blender/blenkernel/intern/particle.c:2751
- 2  0x0000555557f8a41e in task_scheduler_thread_run (thread_p=0x7fffdbdaf8f8) at /home/zed/prog/blender/source/blender/blenlib/intern/task.c:450
- 3  0x00007ffff6a0a458 in start_thread () from /lib64/libpthread.so.0
#4  0x00007ffff326f71f in clone () from /lib64/libc.so.6
I can reproduce the crash in the `method 1` file but toggling on and off the "display in viewport" setting for both particle systems a couple of times: ``` Thread 29 "blender" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffd7ffb700 (LWP 9263)] 0x0000555557d8f3b5 in psys_thread_create_path (task=0x7fffd3295828, cpa=0x7fffce80ae08, child_keys=0x7fffce6eada8, i=312) at /home/zed/prog/blender/source/blender/blenkernel/intern/particle.c:2565 2565 if (cpa_num > ctx->sim.psmd->mesh_final->totface) { (gdb) bt #0 0x0000555557d8f3b5 in psys_thread_create_path (task=0x7fffd3295828, cpa=0x7fffce80ae08, child_keys=0x7fffce6eada8, i=312) at /home/zed/prog/blender/source/blender/blenkernel/intern/particle.c:2565 #1 0x0000555557d90026 in exec_child_path_cache (UNUSED_pool=0x7fffcb924008, taskdata=0x7fffd3295828, UNUSED_threadid=5) at /home/zed/prog/blender/source/blender/blenkernel/intern/particle.c:2751 - 2 0x0000555557f8a41e in task_scheduler_thread_run (thread_p=0x7fffdbdaf8f8) at /home/zed/prog/blender/source/blender/blenlib/intern/task.c:450 - 3 0x00007ffff6a0a458 in start_thread () from /lib64/libpthread.so.0 #4 0x00007ffff326f71f in clone () from /lib64/libc.so.6 ```

Closed as duplicate of #63788

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