rlguy / Blender-FLIP-Fluids

The FLIP Fluids addon is a tool that helps you set up, run, and render high quality liquid fluid effects all within Blender, the free and open source 3D creation suite.
https://www.blendermarket.com/products/flipfluids
GNU General Public License v3.0
1.7k stars 190 forks source link

Baking Error: sqlite3.OperationalError: attempt to write a readonly database #617

Open Toxi2202v2 opened 1 year ago

Toxi2202v2 commented 1 year ago

System Information

Blender 3.5 (e1ccd9d4a1d3): FlipFluid 1.6.5: Windows 10 Ryzen 5 5600X: GTX 1660Super: 16GB 3200Mhz:

Describe the bug

So i got a issue with an project after i was trying to bake it it will give me a error massage while in exporting animated data phase i tried to get help through the internet but sadly none of it worked i reinstalted blender to make sure this isnt a result of blender and it was not the fault of blender i toke an older project with the same Vehicle in my first project it just not done in the blend file i will send the issue is still the same. when am trying to bake the file it will give me a error massage while exporting the animated data i tried multiple times it sometimes gives the error massage in the first 20% then other times it gave it around the 60% mark and also at the 90% mark it seems to be random to make sure i reproduced the error 3 times and all the error massages are in a notepad in the zip file plus the blend file

To Reproduce

Simply press bake on flip fluid panel and wait for the error massage if it should work randomly try rebaking it while i was trying to reproduce it 3 times to make sure it will work consistanlty in the 3rd attempt it made it through the exporting animated data phase i rebaked it and it happend again so if in anycase the exporting phase works rebake it

Expected Behaviour

Expected Behaviour should be that the blend file will going through the exporting animated data phase without any issues multiple times

Actual Behaviour

After I pressed the bake button it starts the exporting animated date as normal as it keeps loading it will randomly at one point give me a error massage after saving closing the blend file and reopening and rebaking it happend again

Screenshots

If applicable, add screenshots to help explain your problem. Bild_2023-06-19_183533707 T-72bug.zip

rlguy commented 1 year ago

Hi, thanks for the report and files!

I was not able to reproduce the issue on our systems, but we did had another similar report of a database error in the past, although a different error message (issue #530). Unfortunately this issue went unsolved and we did not gain feedback for solving the issue.

Would you be able try these troubleshooting steps which may help us better understand what may be the cause of this issue:

Let us know if you have any questions or if you find any more information about the issue.

Toxi2202v2 commented 1 year ago

Setting the cache directory to roaming seems to semi fix it it happends less know all dough it still happends but somewhat rarely now

rlguy commented 1 year ago

Thanks for the update. Ideally, this should not happen at all.

Something else to try could be to test exporting after disabling any antivirus software if that is relevant. It could be possible that an antivirus program is temporarily marking the database file as 'read-only' and triggering the error. This is something we had encountered in a similar issue in the past with another artist and the solution was to add a folder to the antivirus whitelist.

Let us know if you have any questions or if you find any more information about the issue.

gogobd commented 1 year ago

I'm not aware of any antivirus software going through that folder; there's a windows machine connected to the share though, with standard windows defender on.

rlguy commented 1 year ago

Thanks for the info! The shared location could be a possible explanation for this type of error and possibly also issue #530. The simulation cache should not be located on a shared location during baking (cache directory notes). The simulator requires modifying files in the cache and sometimes shared locations can end up locking files and preventing the addon from making file changes.

It is okay to move the cache to a shared location after baking. Rendering the cache require only reading the files.