Mantaflow rendering unstable (when using multiple fluid domains) #80154

Open
opened 2020-08-27 08:23:15 +02:00 by Rabit · 24 comments

System Information
Operating system: Ubuntu 18.04
Graphics card: Radeon R9 FURY

Blender Version
Broken: 2.83.5
Worked: none

Short description of error
Mantaflow seems unstable during rendering of 6 simultaneous domains and it relates to the cycles AA samples.
The error it shows:

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33

Exact steps for others to reproduce the error

  1. Open the example file mantaflow-render-test.blend
  2. Bake the domains one-by-one
  3. Run the Render Animation
  4. It's quite a random, so could take some time
  5. on ~160 frame the blender will fail and close with the next error:
Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0161.png'
 Time: 00:03.10 (Saving: 00:00.08)

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0051.png'
 Time: 00:01.78 (Saving: 00:00.09)

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
**System Information** Operating system: Ubuntu 18.04 Graphics card: Radeon R9 FURY **Blender Version** Broken: 2.83.5 Worked: none **Short description of error** Mantaflow seems unstable during rendering of 6 simultaneous domains and it relates to the cycles AA samples. The error it shows: ``` terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 ``` **Exact steps for others to reproduce the error** 1. Open the example file [mantaflow-render-test.blend](https://archive.blender.org/developer/F8819438/mantaflow-render-test.blend) 2. Bake the domains one-by-one 3. Run the `Render Animation` 4. It's quite a random, so could take some time 5. on ~160 frame the blender will fail and close with the next error: ``` Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0161.png' Time: 00:03.10 (Saving: 00:00.08) terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 ``` ``` Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0051.png' Time: 00:01.78 (Saving: 00:00.09) terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 ```
Author

Added subscriber: @Rabit

Added subscriber: @Rabit
Contributor

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

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

Looks like it's happening during animation rendering once per ~150 frames, still trying to figure out the minimal configuration.

Looks like it's happening during animation rendering once per ~150 frames, still trying to figure out the minimal configuration.
Author

Ok, just reproduced the issue on a simple blend file and default blender 2.83.5 . Will reproduce one more time from nothing and will attach the steps to reproduce and the file.

Ok, just reproduced the issue on a simple blend file and default blender 2.83.5 . Will reproduce one more time from nothing and will attach the steps to reproduce and the file.
Author

Simple test blend file: mantaflow-render-test.blend

Steps to reproduce:

  1. Open the example file
  2. Bake the domains one-by-one
  3. Run the Render Animation
  4. It's quite a random, so could take some time
  5. on ~160 frame the blender will fail and close with the next error:
Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0161.png'
 Time: 00:03.10 (Saving: 00:00.08)

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0051.png'
 Time: 00:01.78 (Saving: 00:00.09)

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
Simple test blend file: [mantaflow-render-test.blend](https://archive.blender.org/developer/F8816327/mantaflow-render-test.blend) Steps to reproduce: 1. Open the example file 2. Bake the domains one-by-one 3. Run the `Render Animation` 4. It's quite a random, so could take some time 5. on ~160 frame the blender will fail and close with the next error: ``` Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0161.png' Time: 00:03.10 (Saving: 00:00.08) terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 ``` ``` Saved: '/home/user/tmp/mantaflow-render-test-scene/out/0051.png' Time: 00:01.78 (Saving: 00:00.09) terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_lts_283/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 ```
Author

Added subscriber: @Raimund58

Added subscriber: @Raimund58
Author

Hello Guys, anyone could reproduce? @Raimund58

Hello Guys, anyone could reproduce? @Raimund58
Contributor

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

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

Added subscriber: @sebbas

Added subscriber: @sebbas

@Rabit Are you able to get a crash with the latest daily build too?

@Rabit Are you able to get a crash with the latest daily build too?
Contributor

Blender 2.83.5 just crashed for me. Where do I find the logs?

Blender 2.83.5 just crashed for me. Where do I find the logs?
Author

So, I checked recently released 2.90 - even worse it crashed on 2th step "baking" (5th domain bake, 215 frame):

$ blender
found bundled python: /home/user/local/blender-2.90.0-linux64/2.90/python
Read blend: /home/user/tmp/mantaflow/mantaflow-render-test.blend
terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
zsh: abort (core dumped)  blender

Restarted blender and restarted 5th domain baking, it's going significantly (2-3 times) slower from 4th domain bake - and failed again on 180 frame. So I can't even reproduce the previous 2.83.5 steps.

On 2.83.5 (left domain to right):

  • First baked slowly
  • Second quickly
  • Third slowly
  • Fourth slowly
  • Fifth slowly (but at least baked)
  • Sixth quickly

Next I switched to 2.90 to render with baked caches from 2.83.5:

  • First render animation - passed
  • Second render animation - crashed:
Saved: '/home/user/tmp/mantaflow/out/0099.png'
 Time: 00:03.66 (Saving: 00:00.06)

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
zsh: abort (core dumped)  blender

So in 2.90 we have another issue with baking the example blend file, as well as with the rendering.

@Raimund58 The logs I posted is right in the stderr/stdout of blender - just check it's system console (on windows) or run it directly from the console.

So, I checked recently released 2.90 - even worse it crashed on 2th step "baking" (5th domain bake, 215 frame): ``` $ blender found bundled python: /home/user/local/blender-2.90.0-linux64/2.90/python Read blend: /home/user/tmp/mantaflow/mantaflow-render-test.blend terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 zsh: abort (core dumped) blender ``` Restarted blender and restarted 5th domain baking, it's going significantly (2-3 times) slower from 4th domain bake - and failed again on 180 frame. So I can't even reproduce the previous 2.83.5 steps. On 2.83.5 (left domain to right): * First baked slowly * Second quickly * Third slowly * Fourth slowly * Fifth slowly (but at least baked) * Sixth quickly Next I switched to 2.90 to render with baked caches from 2.83.5: * First render animation - passed * Second render animation - crashed: ``` Saved: '/home/user/tmp/mantaflow/out/0099.png' Time: 00:03.66 (Saving: 00:00.06) terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_290/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 zsh: abort (core dumped) blender ``` So in 2.90 we have another issue with baking the example blend file, as well as with the rendering. @Raimund58 The logs I posted is right in the stderr/stdout of blender - just check it's system console (on windows) or run it directly from the console.

@Rabit Just had my first crash - it took some time as you mentioned already. Will look into this now.

@Rabit Just had my first crash - it took some time as you mentioned already. Will look into this now.

@Rabit Could you still try and see if you can get a crash with a daily build: https://builder.blender.org/download/

I had my crash with 2.90 too. It would be interesting to know if the issue is present in 2.91 as well.

@Rabit Could you still try and see if you can get a crash with a daily build: https://builder.blender.org/download/ I had my crash with 2.90 too. It would be interesting to know if the issue is present in 2.91 as well.

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

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

I just tested the latest blender-2.91.0-ba188e721899-linux64 build:

  • Prebuilt 2.83.5 caches render:
    • First animation render - passed
    • Second animation render - crashed
Saved: '/home/user/tmp/mantaflow/out/0007.png'
 Time: 00:02.80 (Saving: 00:00.06)

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_master/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
zsh: abort (core dumped)  ~/local/blender-2.91.0-ba188e721899-linux64/blender
  • Baking domains 1st pass (left to right):
    • 1st - slow
    • 2nd - quick
    • 3rd - quick
    • 4th - slow
    • 5th - slow
    • 6th - slow
      Warnings during baking:
Traceback (most recent call last):
  File "<string>", line 47, in <module>
KeyError: 'reactIn_s1130'
Traceback (most recent call last):
  File "<string>", line 47, in <module>
KeyError: 'reactIn_s1200'
  • Baking domains 2nd pass (left to right):

    • 1st - slow
    • 2nd - quick
    • 3rd - quick
    • 4th - slow
    • 5th - slow
    • 6th - slow
  • Fresh baked caches render:

    • First animation render - passed
    • Second animation render - stopped:
Executing command:
  /home/user/local/blender-2.91.0-ba188e721899-linux64/blender -a -f 24 1.0 -s 1 -e 250 -j 1 /home/user/tmp/mantaflow-2/out/0001.png
  • Third animation - crashed:
Saved: '/home/user/tmp/mantaflow-2/out/0015.png'
 Time: 00:04.20 (Saving: 00:00.06)

terminate called after throwing an instance of 'Manta::Error'
  what():  can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-worker-linux_centos7/linux_master/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33
zsh: abort (core dumped)  ~/local/blender-2.91.0-ba188e721899-linux64/blender

So it looks quite the same as for 2.83.5 - but I did not catch the failure during 2 passes of baking as for 2.90 version.

I just tested the latest blender-2.91.0-ba188e721899-linux64 build: * Prebuilt 2.83.5 caches render: * First animation render - passed * Second animation render - crashed ``` Saved: '/home/user/tmp/mantaflow/out/0007.png' Time: 00:02.80 (Saving: 00:00.06) terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_master/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 zsh: abort (core dumped) ~/local/blender-2.91.0-ba188e721899-linux64/blender ``` * Baking domains 1st pass (left to right): * 1st - slow * 2nd - quick * 3rd - quick * 4th - slow * 5th - slow * 6th - slow Warnings during baking: ``` Traceback (most recent call last): File "<string>", line 47, in <module> KeyError: 'reactIn_s1130' Traceback (most recent call last): File "<string>", line 47, in <module> KeyError: 'reactIn_s1200' ``` * Baking domains 2nd pass (left to right): * 1st - slow * 2nd - quick * 3rd - quick * 4th - slow * 5th - slow * 6th - slow * Fresh baked caches render: * First animation render - passed * Second animation render - stopped: ``` Executing command: /home/user/local/blender-2.91.0-ba188e721899-linux64/blender -a -f 24 1.0 -s 1 -e 250 -j 1 /home/user/tmp/mantaflow-2/out/0001.png ``` * Third animation - crashed: ``` Saved: '/home/user/tmp/mantaflow-2/out/0015.png' Time: 00:04.20 (Saving: 00:00.06) terminate called after throwing an instance of 'Manta::Error' what(): can't clean grid cache, some grids are still in use Error raised in /home/sources/buildbot-worker-linux_centos7/linux_master/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33 zsh: abort (core dumped) ~/local/blender-2.91.0-ba188e721899-linux64/blender ``` So it looks quite the same as for 2.83.5 - but I did not catch the failure during 2 passes of baking as for 2.90 version.

@Rabit Thanks a lot for all the tests! I also got some more crashes in my tests, it looks like this is an issue in general when having multiple domains in the scene.
Investigating this ..

@Rabit Thanks a lot for all the tests! I also got some more crashes in my tests, it looks like this is an issue in general when having multiple domains in the scene. Investigating this ..
Sebastián Barschkis changed title from Mantaflow rendering unstable to Mantaflow rendering unstable (when using multiple fluid domains) 2020-09-11 10:54:20 +02:00
Author

Just found another thing with baking on 2.90 - if I'm changing the initial fuel level (0-1.3 bezier) for example and not starting from 1.3 - it's dissolving before reaching top of the domain, than it probably will not fail. Not sure how it's related, but maybe it's a workaround for now - just make sure the fire particles not reaching the domain limits.

Just found another thing with baking on 2.90 - if I'm changing the initial fuel level (0-1.3 bezier) for example and not starting from 1.3 - it's dissolving before reaching top of the domain, than it probably will not fail. Not sure how it's related, but maybe it's a workaround for now - just make sure the fire particles not reaching the domain limits.

Added subscriber: @VGSymphony

Added subscriber: @VGSymphony

I still have an issue with baking in 2.92 with multiple domains. Any update on the bug?

I still have an issue with baking in 2.92 with multiple domains. Any update on the bug?
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

I confirmed a report with same error with simpler steps and reliable crash in #87828 (Mantaflow error when using blender in background mode). There's also an assert hit there.
Keeping this open since steps to redo are very different.

I confirmed a report with same error with simpler steps and reliable crash in #87828 (Mantaflow error when using blender in background mode). There's also an assert hit there. Keeping this open since steps to redo are very different.

Added subscriber: @evantryan

Added subscriber: @evantryan

Mantaflow (fluid simulator) has no active developer at the moment. Moving those bugs as known issues so at least other users can find their issues already reported.

Mantaflow (fluid simulator) has no active developer at the moment. Moving those bugs as known issues so at least other users can find their issues already reported.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:34 +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
7 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#80154
No description provided.