Page MenuHome

Blender fluid simulation crashes randomly when clicking Free/Bake button
Needs Information from User, NormalPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.90.0, branch: master (modified), commit date: 2020-08-31 11:26, hash: rB0330d1af29c0
Worked: (newest version of Blender that worked as expected)

Short description of error
Blender fluid simulation crashes randomly when clicking Free/Bake button

Exact steps for others to reproduce the error

  1. Open the attached blend file

  1. Switch viewport to rendered mode
  2. Select the domain and bake the animation
  3. Make some changes to the force objects in the scene
  4. Free the baked animation and bake again
  5. Play animation to preview baked result
  6. Repeat 2 or 3 more times if needed

Result: Blender will randomly crash on clicking either Bake or Free Bake button depending on the state of the domain. It takes 1-3 attempts on average
Expected: Blender won't crash

Event Timeline

Thanks for the report, I can confirm this. Actually in 2.90 the file crashes immediately when I activate cycles. In 2.91 alpha it doesn't crash at all though.

terminate called after throwing an instance of 'openvdb::v7_0::ValueError'
  what():  ValueError: can't construct a dense grid with an empty bounding box
Aborted (core dumped)

I don't have a debug build of 2.90 around to test with right now though, so I'm not sure if this is an issue with Mantaflow or Cycles

Thanks for the report, I can confirm this. Actually in 2.90 the file crashes immediately when I activate cycles. In 2.91 alpha it doesn't crash at all though.

terminate called after throwing an instance of 'openvdb::v7_0::ValueError'
  what():  ValueError: can't construct a dense grid with an empty bounding box
Aborted (core dumped)

I don't have a debug build of 2.90 around to test with right now though, so I'm not sure if this is an issue with Mantaflow or Cycles

Yes, sometimes I can get to the rendered view, other times it crashes already at that point.

As soon as the baking was over, I had a problem with OpenCL:

 	ucrtbased.dll!00007ffbf0117c75()	Unknown
 	ucrtbased.dll!00007ffbf0117e13()	Unknown
 	ucrtbased.dll!00007ffbf012e01d()	Unknown
 	ucrtbased.dll!00007ffbf0133c65()	Unknown
 	ucrtbased.dll!00007ffbf01337d7()	Unknown
 	ucrtbased.dll!00007ffbf0131868()	Unknown
 	ucrtbased.dll!00007ffbf01341cf()	Unknown
>	blender.exe!ccl::OpenCLDevice::OpenCLProgram::create_kernels() Line 687	C++
 	blender.exe!ccl::OpenCLDevice::OpenCLProgram::load() Line 613	C++
 	blender.exe!ccl::OpenCLDevice::load_kernels(const ccl::DeviceRequestedFeatures & requested_features) Line 801	C++
 	blender.exe!ccl::Scene::load_kernels(ccl::Progress & progress, bool lock_scene) Line 511	C++
 	blender.exe!ccl::Scene::update(ccl::Progress & progress, bool & kernel_switch_needed) Line 474	C++
 	blender.exe!ccl::Session::update_scene() Line 943	C++
 	blender.exe!ccl::Session::run_gpu() Line 281	C++
 	blender.exe!ccl::Session::run() Line 781	C++
 	[External Code]	
 	blender.exe!ccl::thread::run(void * arg) Line 53	C++
 	[External Code]

But I can't reproduce it anymore.
And I don't see the error message reported by @Hans Goudey (HooglyBoogly)

Does this problem has been fixed?


Operating system: Windows-10-10.0.18941 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.13596 Core Profile Context 20.10.19.02 27.20.1019.2002

Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Wed, Sep 16, 2:21 PM

No issues with 2.91 here as well.

@Ludvik Koutny (rawalanche) Please download build from https://builder.blender.org/download/ and check if you can reproduce.