sebbas / blender-mantaflow

Mantaflow integration in Blender
https://developer.blender.org/diffusion/B/browse/fluid-mantaflow/
Other
101 stars 12 forks source link

Liquid Sim | When resolution >64 Blender crashes after finishing simulation #34

Closed michal1000w closed 4 years ago

michal1000w commented 4 years ago

I've tried it on few blender projects and in every one after I've set resolution of the domain to any value greater than 64 blender crashes every time after finishing the simulation. I've tried also canceling it before the end and sometimes it does not crash but most of the time it would.

I've tried few versions of Mantaflow also the latest but the problem still appears.

OS: Windows 10; CPU: Threadripper 2950X; GPU: RTX 2080; RAM: 64GB

michal1000w commented 4 years ago

The error is: Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF6A9C5B262

michal1000w commented 4 years ago

Update: In the latest build it also works most of the time with resolution of 96

sebbas commented 4 years ago

Hi!

thanks for pointing this out, can you attach the blend file so that I can try to reproduce the issue?

michal1000w commented 4 years ago

This is the file: ship big.zip Thanks for your time :D

sebbas commented 4 years ago

Thanks for the file! So far there are no crashes, but I will try more.

Can you also try enabling "Use Adaptive Stepping" in the domain options? It would be interesting to see if you get the same crashes with that enabled.

michal1000w commented 4 years ago

I've tried it again few times and with resolution of 200 it crashes also during the simulation (not only at the end). And I've tried it both with adaptive stepping enabled and disabled so it's probably not the problem. Maybe it's more hardware related so I'll try to do it also on my old i5 computer with just 4 threads cuz maybe there is a problem with 32

sebbas commented 4 years ago

Ok, I got my first crash, also when I tried simulating at resolution 200. It's definitely not your hardware, just some fine-tuning that's needed.

Can you try again with the latest commit? I changed some things that I think might have caused the crash.

michal1000w commented 4 years ago

I've just compiled it and it didn't crash at resolution 200 and additional particles also stared working :D Thank's a lot and have a nice evening