Mantaflow: Crash when setting a Guide Fluid Effector #101255

Closed
opened 2022-09-21 16:11:10 +02:00 by Cole Orloff · 9 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.96

Blender Version
Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash: 0759f671ce
Worked: (newest version of Blender that worked as expected)

Short description of error
After setting a mesh as a "Guide" fluid effector, checking the "Guides" box in the fluid domain settings crashes Blender.

Exact steps for others to reproduce the error

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.96 **Blender Version** Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash: `0759f671ce` Worked: (newest version of Blender that worked as expected) **Short description of error** After setting a mesh as a "Guide" fluid effector, checking the "Guides" box in the fluid domain settings crashes Blender. **Exact steps for others to reproduce the error** - Open attached file, - go to the fluid domain settings - check the "Guides" box. [Fluid_Guide_Crash_01.blend](https://archive.blender.org/developer/F13557541/Fluid_Guide_Crash_01.blend)
Author

Added subscriber: @icecreamisforclosers

Added subscriber: @icecreamisforclosers

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Apparently you forgot to attach the file.

Please upload your file by clicking on the upload button as shown in the screenshot below or via drag and drop.
2019_12_04_upload_icon_developer_blender_org.png

Apparently you forgot to attach the file. Please upload your file by clicking on the upload button as shown in the screenshot below or via drag and drop. ![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png)
Author

Uploaded! (I had deleted the bracketed string because I thought it was an error.)

Fluid_Guide_Crash_01.blend

Uploaded! (I had deleted the bracketed string because I thought it was an error.) [Fluid_Guide_Crash_01.blend](https://archive.blender.org/developer/F13557541/Fluid_Guide_Crash_01.blend)

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

I can't reproduce the problem when clicking on the Guides option, but I reproduced a crash when choosing any object to be the Guide Parent:

 	ucrtbase.dll!00007ff95e13dd7e()	Unknown
 	ucrtbase.dll!00007ff95e13d499()	Unknown
 	vcruntime140_1.dll!00007ff91aaf1aab()	Unknown
 	vcruntime140_1.dll!00007ff91aaf2317()	Unknown
 	vcruntime140_1.dll!00007ff91aaf237a()	Unknown
 	vcruntime140_1.dll!00007ff91aaf4149()	Unknown
 	ntdll.dll!00007ff960b68b1f()	Unknown
 	ntdll.dll!00007ff960af5b9a()	Unknown
 	ntdll.dll!00007ff960b67b2e()	Unknown
 	KernelBase.dll!00007ff95e37477c()	Unknown
 	vcruntime140.dll!00007ff87a826720()	Unknown
>	blender.exe!Manta::FluidSolver::GridStorage<Manta::Vector3D<float>>::free() Line 33	C++

 	blender.exe!Manta::FluidSolver::~FluidSolver() Line 156	C++
 	[External Code]	
 	blender.exe!Pb::cbDealloc(Pb::PbObject * self) Line 173	C++
 	[Inline Frame] python310.dll!_Py_Dealloc(_object *) Line 2288	C
 	[Inline Frame] python310.dll!_Py_DECREF(_object *) Line 500	C
 	[Inline Frame] python310.dll!_Py_XDECREF(_object * op) Line 567	C
 	python310.dll!insertdict(PyDictObject * mp, _object * key, __int64 hash, _object * value) Line 1147	C
 	python310.dll!_PyEval_EvalFrameDefault(_ts * tstate, _frame * f, int throwflag) Line 2770	C
 	[Inline Frame] python310.dll!_PyEval_EvalFrame(_ts *) Line 46	C
 	python310.dll!_PyEval_Vector(_ts * tstate, PyFrameConstructor * con, _object * locals, _object * const * args, unsigned __int64 argcount, _object * kwnames) Line 5072	C
 	[Inline Frame] python310.dll!PyEval_EvalCode(_object *) Line 1134	C
 	python310.dll!run_eval_code_obj(_ts * tstate, PyCodeObject * co, _object * globals, _object * locals) Line 1291	C
 	python310.dll!run_mod(_mod * mod, _object * filename, _object * globals, _object * locals, PyCompilerFlags * flags, _arena * arena) Line 1313	C
 	python310.dll!PyRun_StringFlags(const char * str, int start, _object * globals, _object * locals, PyCompilerFlags * flags) Line 1183	C
 	blender.exe!MANTA::runPythonString(std::vector<std::string,std::allocator<std::string>> commands) Line 670	C++
 	blender.exe!MANTA::initGuiding(FluidModifierData * fmd) Line 477	C++
 	blender.exe!ensure_obstaclefields(FluidDomainSettings * fds) Line 1109	C
 	blender.exe!update_obstacles(Depsgraph * depsgraph, Scene * scene, Object * ob, FluidDomainSettings * fds, float time_per_frame, float frame_length, int frame, float dt) Line 1301	C
 	blender.exe!manta_guiding(Depsgraph * depsgraph, Scene * scene, Object * ob, FluidModifierData * fmd, int frame) Line 3613	C
 	blender.exe!fluid_modifier_processDomain(FluidModifierData * fmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me, const int scene_framenr) Line 4053	C
 	blender.exe!fluid_modifier_process(FluidModifierData * fmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 4098	C
 	blender.exe!BKE_fluid_modifier_do(FluidModifierData * fmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 4116	C
 	blender.exe!fluid_modifier_do_isolated(void * userdata) Line 120	C
 	[External Code]	
 	blender.exe!tbb::interface7::internal::isolate_impl<void,`BLI_task_isolate'::`2'::<lambda_1> const>(const BLI_task_isolate::__l2::<lambda_1> & f) Line 216	C++
 	blender.exe!BLI_task_isolate(void(*)(void *) func, void * userdata) Line 74	C++
 	blender.exe!modifyMesh(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me) Line 148	C
 	blender.exe!modifier_modify_mesh_and_geometry_set(ModifierData * md, const ModifierEvalContext & mectx, Mesh * input_mesh, GeometrySet & geometry_set) Line 614	C++
 	blender.exe!mesh_calc_modifiers(Depsgraph * depsgraph, const Scene * scene, Object * ob, const bool use_deform, const bool need_mapping, const CustomData_MeshMasks * dataMask, const bool use_cache, const bool allow_shared_mesh, Mesh * * r_deform, Mesh * * r_final, GeometrySet * * r_geometry_set) Line 974	C++
 	blender.exe!mesh_build_data(Depsgraph * depsgraph, const Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1587	C++
 	blender.exe!makeDerivedMesh(Depsgraph * depsgraph, const Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask) Line 1746	C++
 	blender.exe!BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 164	C
 	blender.exe!BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 327	C
 	[Inline Frame] blender.exe!std::_Func_class<void,Depsgraph *>::operator()(Depsgraph * <_Args_0>) Line 878	C++
 	blender.exe!blender::deg::`anonymous namespace'::evaluate_node(const blender::deg::`anonymous-namespace'::DepsgraphEvalState * state, blender::deg::OperationNode * operation_node) Line 114	C++
 	blender.exe!blender::deg::`anonymous namespace'::deg_task_run_func(TaskPool * pool, void * taskdata) Line 128	C++
 	blender.exe!tbb::internal::function_task<Task>::execute() Line 1060	C++
 	[External Code]	

I noticed however that the file asks for some library:
image.png

I can't reproduce the problem when clicking on the `Guides` option, but I reproduced a crash when choosing any object to be the `Guide Parent`: ```lines=20 ucrtbase.dll!00007ff95e13dd7e() Unknown ucrtbase.dll!00007ff95e13d499() Unknown vcruntime140_1.dll!00007ff91aaf1aab() Unknown vcruntime140_1.dll!00007ff91aaf2317() Unknown vcruntime140_1.dll!00007ff91aaf237a() Unknown vcruntime140_1.dll!00007ff91aaf4149() Unknown ntdll.dll!00007ff960b68b1f() Unknown ntdll.dll!00007ff960af5b9a() Unknown ntdll.dll!00007ff960b67b2e() Unknown KernelBase.dll!00007ff95e37477c() Unknown vcruntime140.dll!00007ff87a826720() Unknown > blender.exe!Manta::FluidSolver::GridStorage<Manta::Vector3D<float>>::free() Line 33 C++ blender.exe!Manta::FluidSolver::~FluidSolver() Line 156 C++ [External Code] blender.exe!Pb::cbDealloc(Pb::PbObject * self) Line 173 C++ [Inline Frame] python310.dll!_Py_Dealloc(_object *) Line 2288 C [Inline Frame] python310.dll!_Py_DECREF(_object *) Line 500 C [Inline Frame] python310.dll!_Py_XDECREF(_object * op) Line 567 C python310.dll!insertdict(PyDictObject * mp, _object * key, __int64 hash, _object * value) Line 1147 C python310.dll!_PyEval_EvalFrameDefault(_ts * tstate, _frame * f, int throwflag) Line 2770 C [Inline Frame] python310.dll!_PyEval_EvalFrame(_ts *) Line 46 C python310.dll!_PyEval_Vector(_ts * tstate, PyFrameConstructor * con, _object * locals, _object * const * args, unsigned __int64 argcount, _object * kwnames) Line 5072 C [Inline Frame] python310.dll!PyEval_EvalCode(_object *) Line 1134 C python310.dll!run_eval_code_obj(_ts * tstate, PyCodeObject * co, _object * globals, _object * locals) Line 1291 C python310.dll!run_mod(_mod * mod, _object * filename, _object * globals, _object * locals, PyCompilerFlags * flags, _arena * arena) Line 1313 C python310.dll!PyRun_StringFlags(const char * str, int start, _object * globals, _object * locals, PyCompilerFlags * flags) Line 1183 C blender.exe!MANTA::runPythonString(std::vector<std::string,std::allocator<std::string>> commands) Line 670 C++ blender.exe!MANTA::initGuiding(FluidModifierData * fmd) Line 477 C++ blender.exe!ensure_obstaclefields(FluidDomainSettings * fds) Line 1109 C blender.exe!update_obstacles(Depsgraph * depsgraph, Scene * scene, Object * ob, FluidDomainSettings * fds, float time_per_frame, float frame_length, int frame, float dt) Line 1301 C blender.exe!manta_guiding(Depsgraph * depsgraph, Scene * scene, Object * ob, FluidModifierData * fmd, int frame) Line 3613 C blender.exe!fluid_modifier_processDomain(FluidModifierData * fmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me, const int scene_framenr) Line 4053 C blender.exe!fluid_modifier_process(FluidModifierData * fmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 4098 C blender.exe!BKE_fluid_modifier_do(FluidModifierData * fmd, Depsgraph * depsgraph, Scene * scene, Object * ob, Mesh * me) Line 4116 C blender.exe!fluid_modifier_do_isolated(void * userdata) Line 120 C [External Code] blender.exe!tbb::interface7::internal::isolate_impl<void,`BLI_task_isolate'::`2'::<lambda_1> const>(const BLI_task_isolate::__l2::<lambda_1> & f) Line 216 C++ blender.exe!BLI_task_isolate(void(*)(void *) func, void * userdata) Line 74 C++ blender.exe!modifyMesh(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me) Line 148 C blender.exe!modifier_modify_mesh_and_geometry_set(ModifierData * md, const ModifierEvalContext & mectx, Mesh * input_mesh, GeometrySet & geometry_set) Line 614 C++ blender.exe!mesh_calc_modifiers(Depsgraph * depsgraph, const Scene * scene, Object * ob, const bool use_deform, const bool need_mapping, const CustomData_MeshMasks * dataMask, const bool use_cache, const bool allow_shared_mesh, Mesh * * r_deform, Mesh * * r_final, GeometrySet * * r_geometry_set) Line 974 C++ blender.exe!mesh_build_data(Depsgraph * depsgraph, const Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1587 C++ blender.exe!makeDerivedMesh(Depsgraph * depsgraph, const Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask) Line 1746 C++ blender.exe!BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 164 C blender.exe!BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 327 C [Inline Frame] blender.exe!std::_Func_class<void,Depsgraph *>::operator()(Depsgraph * <_Args_0>) Line 878 C++ blender.exe!blender::deg::`anonymous namespace'::evaluate_node(const blender::deg::`anonymous-namespace'::DepsgraphEvalState * state, blender::deg::OperationNode * operation_node) Line 114 C++ blender.exe!blender::deg::`anonymous namespace'::deg_task_run_func(TaskPool * pool, void * taskdata) Line 128 C++ blender.exe!tbb::internal::function_task<Task>::execute() Line 1060 C++ [External Code] ``` I noticed however that the file asks for some library: ![image.png](https://archive.blender.org/developer/F13560269/image.png)

Note however that the fluid simulator available in Blender (Mantaflow) is not under active development. This bug may not be fixed in some short time.

Note however that the fluid simulator available in Blender (Mantaflow) is not under active development. This bug may not be fixed in some short time.
Germano Cavalcante changed title from Setting a Guide Fluid Effector Creates Crash. to Mantaflow: Crash when setting a Guide Fluid Effector 2022-09-23 15:54:09 +02:00
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:43 +01:00
Member

The crash was fixed by edc00429e8 [which is in 3.3.2]

Note however that edc00429e8 caused another regression [which was fixed in 4da32e9334 - which is in 3.3.16 and 4.1]

So please update to either 3.6 or 3.3 LTS or wait for 4.1and everything should be fine.

Will close this report as it is resolved (feel free to comment again though if issues persist in fresh builds, we can always reopen in such case)

The crash was fixed by edc00429e8d70912eb830e132d8ba6c874252567 [which is in 3.3.2] Note however that edc00429e8d70912eb830e132d8ba6c874252567 caused another regression [which was fixed in 4da32e933443c1f7b02c2eb064b77c060c33658c - which is in 3.3.16 and 4.1] So please update to either 3.6 or 3.3 LTS or wait for 4.1and everything should be fine. Will close this report as it is resolved (feel free to comment again though if issues persist in fresh builds, we can always reopen in such case)
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-02-27 14:35:43 +01:00
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#101255
No description provided.