Page MenuHome

Viscoelastic springs (particle system fluid emitter) crashes blender 2.90.1 (and probably in all versions)
Confirmed, NormalPublicBUG

Description

System Information
Operating system: Windows 10
Graphics card: Nvidia GTX 1060 6gb
CPU: Ryzen 7 3700x

Blender Version
Broken: 2.90.1, 2.91, 2.92
Worked: 2.83.x

Short description of error
Enabling viscoelastic springs and try playing the simulation, or baking, it will crash at about frame 5. However when you put springs settings to 0 and turn on it doesn't happen, but doesn't have any effect either.
The project files I provide is for 2.90.1. the setup is default cube with particle system, below it another cube with collision with default settings.

Exact steps for others to reproduce the error

  1. Open the attached file
  2. Enabled Vicoelastic Springs
  3. Bake

Event Timeline

Tolya (danterazor) renamed this task from Viscoelastic springs (particle system fluid emitter) crashes blender 2.92 (and below as well) to Viscoelastic springs (particle system fluid emitter) crashes blender 2.90.1 (and probably in all versions).Nov 10 2020, 8:31 PM
Tolya (danterazor) created this task.
Robert Guetzkow (rjg) changed the task status from Needs Triage to Needs Information from User.Nov 11 2020, 10:43 AM

I can't reproduce a crash in 2.90.1, 2.91 or 2.92. Are there any additional steps required besides baking and then playing the animation to reproduce the crash with your example file?

Tolya (danterazor) added a comment.EditedNov 11 2020, 3:11 PM

You have to click enable viscoelastic springs and just play the animation. Here's the file with it enabled, I double checked, it crashes. Hit play in this scene.


Edit: the file is for 2.90.1, tested on 2.91.0-b351607996e4, 2.92.0-86bdc959a399

I can confirm that this crashes in 2.90.1 and later, current master is also affected.

sub_v3_v3v3(float * r, const float * a, const float * b) Line 493	C
sph_springs_modify(ParticleSystem * psys, float dtime) Line 1626	C
dynamics_step(ParticleSimulationData * sim, float cfra) Line 3996	C
system_step(ParticleSimulationData * sim, float cfra, const bool use_render_params) Line 4593	C
particle_system_update(Depsgraph * depsgraph, Scene * scene, Object * ob, ParticleSystem * psys, const bool use_render_params) Line 4941	C
deformVerts(ModifierData * md, const ModifierEvalContext * ctx, Mesh * mesh, float[3] * vertexCos, int numVerts) Line 229	C
BKE_modifier_deform_verts(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me, float[3] * vertexCos, int numVerts) Line 1038	C
mesh_calc_modifiers(Depsgraph * depsgraph, Scene * scene, Object * ob, int useDeform, const bool need_mapping, const CustomData_MeshMasks * dataMask, const int index, const bool use_cache, const bool allow_shared_mesh, Mesh * * r_deform, Mesh * * r_final) Line 984	C
mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1806	C
makeDerivedMesh(Depsgraph * depsgraph, Scene * scene, Object * ob, BMEditMesh * em, const CustomData_MeshMasks * dataMask) Line 1927	C
BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 194	C
BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 385	C
 	[External Code]	
blender::deg::`anonymous namespace'::evaluate_node(const blender::deg::`anonymous-namespace'::DepsgraphEvalState * state, blender::deg::OperationNode * operation_node) Line 115	C++
blender::deg::`anonymous namespace'::deg_task_run_func(TaskPool * pool, void * taskdata) Line 127	C++
Task::()::__l2::<Lambdafunktion>() Line 118	C++
tbb::interface7::internal::delegated_function<void <Lambdafunktion>(void) const ,void>::operator()() Line 94	C++
 	[External Code]	
tbb::interface7::internal::isolate_impl<void,void <Lambdafunktion>(void) const>(const Task::()::__l2::void <Lambdafunktion>(void) & f) Line 161	C++
tbb::interface7::this_task_arena::isolate<void <Lambdafunktion>(void)>(const Task::()::__l2::void <Lambdafunktion>(void) & f) Line 396	C++
Task::operator()() Line 122	C++
tbb::internal::function_task<Task>::execute() Line 1049	C++
 	[External Code]	
tbb::task::wait_for_all() Line 810	C++
tbb::internal::task_group_base::wait() Line 168	C++
tbb_task_pool_work_and_wait(TaskPool * pool) Line 253	C++
BLI_task_pool_work_and_wait(TaskPool * pool) Line 500	C++
blender::deg::deg_evaluate_on_refresh(blender::deg::Depsgraph * graph) Line 398	C++
deg_flush_updates_and_refresh(blender::deg::Depsgraph * deg_graph) Line 59	C++
DEG_evaluate_on_framechange(Depsgraph * graph, float ctime) Line 83	C++
BKE_scene_graph_update_for_newframe(Depsgraph * depsgraph) Line 2663	C
BKE_ptcache_bake(PTCacheBaker * baker) Line 3303	C
ptcache_job_startjob(void * customdata, short * stop, short * do_update, float * progress) Line 123	C
do_job_thread(void * job_v) Line 395	C
tslot_thread_start(void * tslot_p) Line 232	C++
 	[External Code]
Robert Guetzkow (rjg) changed the task status from Needs Information from User to Confirmed.Nov 12 2020, 12:41 PM
Robert Guetzkow (rjg) updated the task description. (Show Details)
Robert Guetzkow (rjg) changed the subtype of this task from "Report" to "Bug".Nov 12 2020, 1:11 PM

Okay apparently the bug was fixed in 2.92, the scene still crashes 2.91 though but not 2.92, and 2.93 alpha too.