Maniphest T74224

Crash with Boids containing Fight Rule
Closed, ResolvedBUG

Assigned To
Jacques Lucke (JacquesLucke)
Authored By
Thomas Freye (t.freye)
Feb 26 2020, 10:07 AM
Tags
  • BF Blender
  • Nodes & Physics
Subscribers
Joakim Tornhill (MagicGlow)
Philipp Oeser (lichtwerk)
Thomas Freye (t.freye)

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Quadro K3100M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 426.32

Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: rB77d23b0bd76f

Short description of error
When start an animation with two Objects containing a particle system with boid physics
and one of them should fight the other, blender will crash.

Exact steps for others to reproduce the error

  • Add -> Mesh -> Plane
  • Add Particle System to "Plane"
  • Particle Settings: Emission
		 Number:      3
		 Frame Start: 1
		 End:         1
         Lifetime:    2000
      Velocity
         Normal:      0 m/s
      Physics
         Physics Tape: Boids
         Boid Brain
             Delete the default Rules (Separate and Flock)
      Field Weights
             Gravity:   0
  • Add -> Mesh -> Plane
  • Move "Plane.001" 3 units on x-axis (g,x,3,enter)
  • Add Particle System to "Plane.001"
  • Particle Settings: Emission
		 Number:      3
		 Frame Start: 1
		 End:         1
         Lifetime:    2000
      Velocity
         Normal:      0 m/s
      Physics
         Physics Tape: Boids
		 Relations:
                     Add:
                        Target Object: "Plane"
                        System: 1
                        Mode:  Enemy			   
                Boid Brain
                      Delete the default Rules (Separate and Flock)
		      Add Rule: "Fight"
      Field Weights
         Gravity:   0
  • Start Animation - Blender will crash after a couple of seconds!

Revisions and Commits

rB Blender
D7302

Related Objects

Event Timeline

Thomas Freye (t.freye) created this task.Feb 26 2020, 10:07 AM
Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Feb 26 2020, 10:48 AM
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".
Philipp Oeser (lichtwerk) added a project: Nodes & Physics.
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

Can confirm.
For me, blender hangs
T66383: Boids particle system crash might be related, checking if this is a duplicate...

Philipp Oeser (lichtwerk) added a comment.Feb 26 2020, 5:02 PM

Testing a bit more:

when one can get it to hang, this is where the time is spent:

Also could get it to assert once:

BLI_assert failed: /blender/source/blender/blenlib/intern/kdtree_impl.h:132, BLI_kdtree_3d_insert(), at 'tree->nodes_len <= tree->nodes_len_capacity'
Joakim Tornhill (MagicGlow) added a subscriber: Joakim Tornhill (MagicGlow).Mar 9 2020, 10:21 PM

Can confirm that it do this on 2.82 on my system as well. Sometimes in few seconds... sometimes direct, but it crashes. It doesn't matter if I use Halo, object or collections as enemies.

Jacques Lucke (JacquesLucke) closed this task as Resolved by committing rB25b2b6724d19: Fix T74224: Add missing depsgraph relations for boid particles.Apr 1 2020, 4:22 PM
Jacques Lucke (JacquesLucke) claimed this task.
Jacques Lucke (JacquesLucke) added a commit: rB25b2b6724d19: Fix T74224: Add missing depsgraph relations for boid particles.