Page MenuHome

Crash using force fields and hair dynamics
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Linux-5.4.13-arch1-1-x86_64-with-arch 64 Bits
Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.44

Blender Version
Broken: version: 2.83 (sub 1), branch: master, commit date: 2020-01-20 22:30, hash: rB04e318de3a40

Short description of error
Using any force objects along with Hair Dynamics enabled causes Blender to crash.

Exact steps for others to reproduce the error
From the default scene, add any force field object (wind, turbulence, drag, etc...)
Select the default cube and add a hair particle system
Enable 'Hair Dynamics'
Press play to crash

Example file - open and press play

Event Timeline

Jacques Lucke (JacquesLucke) changed the task status from Needs Triage to Confirmed.Wed, Jan 22, 11:27 AM
Jacques Lucke (JacquesLucke) triaged this task as High priority.

There is a heap-buffer-overflow.

==4668==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6060004400a0 at pc 0x562f34c62fd0 bp 0x7fd8dd5f9340 sp 0x7fd8dd5f9330
READ of size 4 at 0x6060004400a0 thread T66
    #0 0x562f34c62fcf in cloth_calc_force /home/jacques/blender-git/blender/source/blender/physics/intern/BPH_mass_spring.cpp:639
    #1 0x562f34c6bf91 in BPH_cloth_solve /home/jacques/blender-git/blender/source/blender/physics/intern/BPH_mass_spring.cpp:1167
    #2 0x562f2e87564f in do_step_cloth /home/jacques/blender-git/blender/source/blender/blenkernel/intern/cloth.c:405
    #3 0x562f2e876dff in clothModifier_do /home/jacques/blender-git/blender/source/blender/blenkernel/intern/cloth.c:515
    #4 0x562f2e3b3eb2 in do_hair_dynamics /home/jacques/blender-git/blender/source/blender/blenkernel/intern/particle_system.c:3503
    #5 0x562f2e3b547c in hair_step /home/jacques/blender-git/blender/source/blender/blenkernel/intern/particle_system.c:3545
    #6 0x562f2e3ccf7a in particle_system_update /home/jacques/blender-git/blender/source/blender/blenkernel/intern/particle_system.c:4872
    #7 0x562f2fe1594f in deformVerts /home/jacques/blender-git/blender/source/blender/modifiers/intern/MOD_particlesystem.c:212
    #8 0x562f2e1c9da1 in modwrap_deformVerts /home/jacques/blender-git/blender/source/blender/blenkernel/intern/modifier.c:976
    #9 0x562f2e77b895 in mesh_calc_modifiers /home/jacques/blender-git/blender/source/blender/blenkernel/intern/DerivedMesh.c:983
Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Bug".Wed, Jan 22, 11:42 AM