Particle system Crash #73537

Closed
opened 2020-02-01 19:44:09 +01:00 by Aleksandr · 10 comments

System Information
Operating system: Linux-4.15.0-76-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: f1aa4d18d4
Worked: (optional)

Short description of error
Blender going crash when I click "Copy All To Selected Objects" in particle system settings when all objects have activated smoke simulation.

Exact steps for others to reproduce the error
Select one object with particle system - select other objects - click "Copy All To Selected Objects" - click play animation - if crash doesn't happen, repeat play/pause.

Blender_Bug.mp4
Blender_Bug_1.mp4
Blender_BUG_ParcticleSystem.blend

**System Information** Operating system: Linux-4.15.0-76-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21 **Blender Version** Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: `f1aa4d18d4` Worked: (optional) **Short description of error** Blender going crash when I click "Copy All To Selected Objects" in particle system settings when all objects have activated smoke simulation. **Exact steps for others to reproduce the error** Select one object with particle system - select other objects - click "Copy All To Selected Objects" - click play animation - if crash doesn't happen, repeat play/pause. [Blender_Bug.mp4](https://archive.blender.org/developer/F8316191/Blender_Bug.mp4) [Blender_Bug_1.mp4](https://archive.blender.org/developer/F8316214/Blender_Bug_1.mp4) [Blender_BUG_ParcticleSystem.blend](https://archive.blender.org/developer/F8316197/Blender_BUG_ParcticleSystem.blend)
Author

Added subscriber: @viadvena

Added subscriber: @viadvena

Added subscriber: @intrigus-3

Added subscriber: @intrigus-3

Added subscriber: @iss

Added subscriber: @iss

mmd2 was null

>	blender.exe!update_obstacleflags(FluidDomainSettings * mds, Object * * coll_ob_array, int coll_ob_array_len) Line 875	C

 	blender.exe!BKE_fluid_modifier_processDomain(FluidModifierData * mmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me, const int scene_framenr) Line 3331	C
 	blender.exe!BKE_fluid_modifier_process(FluidModifierData * mmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 3597	C
 	blender.exe!BKE_fluid_modifier_do(FluidModifierData * mmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 3609	C
 	blender.exe!applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me) Line 121	C
 	blender.exe!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 1187	C
 	blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1817	C
 	blender.exe!makeDerivedMesh(Depsgraph * depsgraph, Scene * scene, Object * ob, BMEditMesh * em, const CustomData_MeshMasks * dataMask) Line 1931	C
 	blender.exe!BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 186	C
 	blender.exe!BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 356	C
 	[Externí kód]	
 	[Vložený rámec] blender.exe!std::_Func_class<void,Depsgraph *>::operator()(Depsgraph * <_Args_0>) Line 969	C++
 	blender.exe!DEG::`anonymous namespace'::evaluate_node(const DEG::`anonymous-namespace'::DepsgraphEvalState * state, DEG::OperationNode * operation_node) Line 117	C++
 	blender.exe!DEG::`anonymous namespace'::deg_task_run_func(TaskPool * pool, void * taskdata, int thread_id) Line 129	C++
 	[Vložený rámec] blender.exe!handle_local_queue(TaskThreadLocalStorage *) Line 420	C
 	blender.exe!task_scheduler_thread_run(void * thread_p) Line 457	C
 	[Externí kód]	
`mmd2` was null ``` > blender.exe!update_obstacleflags(FluidDomainSettings * mds, Object * * coll_ob_array, int coll_ob_array_len) Line 875 C blender.exe!BKE_fluid_modifier_processDomain(FluidModifierData * mmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me, const int scene_framenr) Line 3331 C blender.exe!BKE_fluid_modifier_process(FluidModifierData * mmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 3597 C blender.exe!BKE_fluid_modifier_do(FluidModifierData * mmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 3609 C blender.exe!applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me) Line 121 C blender.exe!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 1187 C blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1817 C blender.exe!makeDerivedMesh(Depsgraph * depsgraph, Scene * scene, Object * ob, BMEditMesh * em, const CustomData_MeshMasks * dataMask) Line 1931 C blender.exe!BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 186 C blender.exe!BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 356 C [Externí kód] [Vložený rámec] blender.exe!std::_Func_class<void,Depsgraph *>::operator()(Depsgraph * <_Args_0>) Line 969 C++ blender.exe!DEG::`anonymous namespace'::evaluate_node(const DEG::`anonymous-namespace'::DepsgraphEvalState * state, DEG::OperationNode * operation_node) Line 117 C++ blender.exe!DEG::`anonymous namespace'::deg_task_run_func(TaskPool * pool, void * taskdata, int thread_id) Line 129 C++ [Vložený rámec] blender.exe!handle_local_queue(TaskThreadLocalStorage *) Line 420 C blender.exe!task_scheduler_thread_run(void * thread_p) Line 457 C [Externí kód] ```

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @sebbas

Added subscriber: @sebbas

@viadvena I just saw that when opening this file in 2.81 there is no crash after "Copy All To Selected Objects" but all smoke flow objects lose their modifier.

Is this behavior expected? If so, why? This is also the root of the bug.

@viadvena I just saw that when opening this file in 2.81 there is no crash after "Copy All To Selected Objects" but all smoke flow objects lose their modifier. Is this behavior expected? If so, why? This is also the root of the bug.

This issue was referenced by e268fe6e64

This issue was referenced by e268fe6e64dd872534944e825c0fe7483e18010a

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sebastián Barschkis self-assigned this 2020-02-03 22:04:44 +01:00

Just pushed a fix that resolves the crashing issue.

For future reference: It would be interesting to know if freeing the fluid modifier in remove_particle_systems_from_object() is really needed. It's a bit odd that copying the particle system clears the fluid modifier.

https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/physics/particle_object.c$1065

Just pushed a fix that resolves the crashing issue. For future reference: It would be interesting to know if freeing the fluid modifier in `remove_particle_systems_from_object()` is really needed. It's a bit odd that copying the particle system clears the fluid modifier. https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/physics/particle_object.c$1065
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
6 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#73537
No description provided.