Maniphest T80710

Blender fluid simulation crashes randomly when clicking Free/Bake button
Closed, Resolved

Assigned To
Sebastián Barschkis (sebbas)
Authored By
Ludvik Koutny (rawalanche)
Sep 11 2020, 9:43 PM
Tags
  • BF Blender
Subscribers
Germano Cavalcante (mano-wii)
Hans Goudey (HooglyBoogly)
Ludvik Koutny (rawalanche)
Richard Antalik (ISS)
Sebastián Barschkis (sebbas)

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

Related Objects

Mentioned Here
rB9280fb19e4ff: Fixes T77882: artifacts rendering OpenVDB volumes with multiple grids in Cycles
rBaa1e4baa22b3: Cycles : add a Volume Geometry Node

Event Timeline

Ludvik Koutny (rawalanche) created this task.Sep 11 2020, 9:43 PM
Hans Goudey (HooglyBoogly) added a subscriber: Hans Goudey (HooglyBoogly).Sep 11 2020, 11:52 PM

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

Ludvik Koutny (rawalanche) added a comment.Sep 12 2020, 10:32 AM
In T80710#1014188, @Hans Goudey (HooglyBoogly) wrote:

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.

Germano Cavalcante (mano-wii) added a subscriber: Germano Cavalcante (mano-wii).Sep 14 2020, 9:36 PM

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.Sep 16 2020, 2:21 PM
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

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.

Sebastián Barschkis (sebbas) closed this task as Resolved.Sep 23 2020, 5:09 PM
Sebastián Barschkis (sebbas) claimed this task.
Sebastián Barschkis (sebbas) added a subscriber: Sebastián Barschkis (sebbas).

The crash was introduced in rB9280fb19e4ff and so unfortunately just made it into the 2.90 release.

For 2.91 there was a refactor in Cycles (rBaa1e4baa22b3) which seems to have fixed the issue. Closing!