2.82 Mantaflow not writing cache files (unicode characters in filepath) #74155

Closed
opened 2020-02-24 10:53:42 +01:00 by Gustav Mårdestam · 25 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19
CPU: Threadripper 1950X
RAM : 32GB

Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: 77d23b0bd7
Worked: (optional)

Short description of error
When baking a fluid sim (fluid or gas), no files are written to the cache directory. Folders like data and config are created but no actual cache files. Simulation works in "replay" mode.
Weird issue/ bug since it worked on my home pc but not on the work pc. No errors reported by blender.

Exact steps for others to reproduce the error

  1. Scale cube up, Apply transform, Make fluid "domain".
  2. Create sphere and make fluid "flow".
  3. Set cache directory in domain.
  4. Cache the sim.
  5. Look inside the cache directory or try scrubbing the timeline.
**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19 CPU: Threadripper 1950X RAM : 32GB **Blender Version** Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: `77d23b0bd7` Worked: (optional) **Short description of error** When baking a fluid sim (fluid or gas), no files are written to the cache directory. Folders like data and config are created but no actual cache files. Simulation works in "replay" mode. Weird issue/ bug since it worked on my home pc but not on the work pc. No errors reported by blender. **Exact steps for others to reproduce the error** 1. Scale cube up, Apply transform, Make fluid "domain". 2. Create sphere and make fluid "flow". 3. Set cache directory in domain. 4. Cache the sim. 5. Look inside the cache directory or try scrubbing the timeline.

Added subscriber: @Carrotcakee

Added subscriber: @Carrotcakee

Added subscriber: @iss

Added subscriber: @iss

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

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

Is it possible, that your work PC has some restrictions on users? Can you try run Blender as admin?

It is hard to debug this if you can not create 100% reproducible case

Is it possible, that your work PC has some restrictions on users? Can you try run Blender as admin? It is hard to debug this if you can not create 100% reproducible case
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Does this happen in any folder location? (or does it work if you choose a cache directory somewhere else? e.g. subfolder of the current .blend file?)
And just to make sure: please share you example .blend file (this makes sure we are all looking at the same thing...)

Does this happen in any folder location? (or does it work if you choose a cache directory somewhere else? e.g. subfolder of the current .blend file?) And just to make sure: please share you example .blend file (this makes sure we are all looking at the same thing...)

In #74155#879502, @iss wrote:
Is it possible, that your work PC has some restrictions on users? Can you try run Blender as admin?

It is hard to debug this if you can not create 100% reproducible case

I can't see how the PC would have any special restrictions as I personally installed windows from scratch. It is set up as an "organization pc" during setup though.
I have tried running it as admin and it makes no difference.

> In #74155#879502, @iss wrote: > Is it possible, that your work PC has some restrictions on users? Can you try run Blender as admin? > > It is hard to debug this if you can not create 100% reproducible case I can't see how the PC would have any special restrictions as I personally installed windows from scratch. It is set up as an "organization pc" during setup though. I have tried running it as admin and it makes no difference.

In #74155#879863, @lichtwerk wrote:
Does this happen in any folder location? (or does it work if you choose a cache directory somewhere else? e.g. subfolder of the current .blend file?)
And just to make sure: please share you example .blend file (this makes sure we are all looking at the same thing...)

It works in the standard temp folder (AppData\Local\Temp\blender_a22300\cache_fluid) but if I change the directory to a folder on the desktop, documents, videos etc, it won't write any cache files anymore. I have tried setting the path as a relative path to the .blend file with no success. I have also tried rendering to the same folder and the render does output files to the folder.

Heres a simple example file as requested: Mantaflow_Cache_Debug_Example.blend

> In #74155#879863, @lichtwerk wrote: > Does this happen in any folder location? (or does it work if you choose a cache directory somewhere else? e.g. subfolder of the current .blend file?) > And just to make sure: please share you example .blend file (this makes sure we are all looking at the same thing...) It works in the standard temp folder (AppData\Local\Temp\blender_a22300\cache_fluid) but if I change the directory to a folder on the desktop, documents, videos etc, it won't write any cache files anymore. I have tried setting the path as a relative path to the .blend file with no success. I have also tried rendering to the same folder and the render does output files to the folder. Heres a simple example file as requested: [Mantaflow_Cache_Debug_Example.blend](https://archive.blender.org/developer/F8369245/Mantaflow_Cache_Debug_Example.blend)

Update:
Tried the example file on a coworkers computer and everything works for him, the sim writes the cache files like it should.
I can get it to work by choosing our office NAS as the cache directory. So it works in %appdata% and on network drives but not in documents, videos, desktop etc.
Is there a better debug console that I can use to see what mantaflow is doing or trying to do while baking? Example like a "calculating x..... writing frame cache to directory x....." ?

Update: Tried the example file on a coworkers computer and everything works for him, the sim writes the cache files like it should. I can get it to work by choosing our office NAS as the cache directory. So it works in %appdata% and on network drives but not in documents, videos, desktop etc. Is there a better debug console that I can use to see what mantaflow is doing or trying to do while baking? Example like a "calculating x..... writing frame cache to directory x....." ?
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member
Do you have protected folders turned on ? https://www.tenforums.com/tutorials/87858-add-protected-folders-controlled-folder-access-windows-10-a.html

In #74155#880084, @ankitm wrote:
Do you have protected folders turned on ? https://www.tenforums.com/tutorials/87858-add-protected-folders-controlled-folder-access-windows-10-a.html

No, it seems to be turned off: Annotation 2020-02-25 202750.png

> In #74155#880084, @ankitm wrote: > Do you have protected folders turned on ? https://www.tenforums.com/tutorials/87858-add-protected-folders-controlled-folder-access-windows-10-a.html No, it seems to be turned off: ![Annotation 2020-02-25 202750.png](https://archive.blender.org/developer/F8369946/Annotation_2020-02-25_202750.png)

Added subscriber: @msamilg-3

Added subscriber: @msamilg-3

I'm having the exact same problem. Other simulation caches are writing fine on the disk, but not Mantaflow.

I'm having the exact same problem. Other simulation caches are writing fine on the disk, but not Mantaflow.

In #74155#880378, @msamilg-3 wrote:
I'm having the exact same problem. Other simulation caches are writing fine on the disk, but not Mantaflow.

Hi, I have solved the issue and it came down to my C:\Users{username} having non-unicode characters (The Å in my last name). From the looks of your name here I would guess your Ş or ü might be your problem.
Updating my Windows username and replacing the Å with an A fixed the problem completely and Blender and Mantaflow are now writing out cache files to any directory I choose.
Updating the windows username path is not super easy but this guide made it less of a headache: https://winaero.com/blog/rename-user-profile-folder-windows-10/

DEVS: Maybe look into how Mantaflow handles non-unicode characters in file paths as Blender (Cycles/ Eevee) seems to handle it fine.

> In #74155#880378, @msamilg-3 wrote: > I'm having the exact same problem. Other simulation caches are writing fine on the disk, but not Mantaflow. Hi, I have solved the issue and it came down to my C:\Users\{username} having non-unicode characters (The Å in my last name). From the looks of your name here I would guess your Ş or ü might be your problem. Updating my Windows username and replacing the Å with an A fixed the problem completely and Blender and Mantaflow are now writing out cache files to any directory I choose. Updating the windows username path is not super easy but this guide made it less of a headache: https://winaero.com/blog/rename-user-profile-folder-windows-10/ DEVS: Maybe look into how Mantaflow handles non-unicode characters in file paths as Blender (Cycles/ Eevee) seems to handle it fine.
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Member

Added subscriber: @sebbas

Added subscriber: @sebbas
Member

Just stumbled upon possibly related:

  • b0af44fa4d
  • #53159 (OpenVDB cache doesn't support unicode characters in filename)

@sebbas: Can you reproduce? Are you aware?

Just stumbled upon possibly related: - b0af44fa4d - #53159 (OpenVDB cache doesn't support unicode characters in filename) @sebbas: Can you reproduce? Are you aware?

This should be resolved in 2.83 by b0af44fa4d

This should be resolved in 2.83 by b0af44fa4d
Philipp Oeser changed title from 2.82 Mantaflow not writing cache files to 2.82 Mantaflow not writing cache files (unicode characters in filepath) 2020-02-27 14:38:16 +01:00

Closed as duplicate of #50630

Closed as duplicate of #50630
Member

@iss: that commit is two years old (I just posted this as a reference)
Report is from a version two weeks old and on a 64bit windows... Are you sure this is fixed (or a duplicate)?

@iss: that commit is two years old (I just posted this as a reference) Report is from a version two weeks old and on a 64bit windows... Are you sure this is fixed (or a duplicate)?
Member

Changed status from 'Duplicate' to: 'Needs Developer To Reproduce'

Changed status from 'Duplicate' to: 'Needs Developer To Reproduce'

Sorry, I haven't checked. I was quite certain, that this issue was dealt with recently.

In any case I tested 2.82 with cache path //ščřž/ it didn't work.
2.83 did work.

Sorry, I haven't checked. I was quite certain, that this issue was dealt with recently. In any case I tested 2.82 with cache path `//ščřž/` it didn't work. 2.83 did work.
Member

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Philipp Oeser self-assigned this 2020-02-27 15:57:05 +01:00
Member

@iss, thx for getting back.
Looks like this was indeed fixed, see #73770 (Mantaflow is unable to bake fluid simulations on non-ASCII file paths), 4453509d83, b8af5e1062.

Sorry for the noise.

@Carrotcakee: please try a fresh build from https://builder.blender.org/download/ (these have the fixes included).
Will close as resolved then, feel free to comment again if issues persist...

@iss, thx for getting back. Looks like this was indeed fixed, see #73770 (Mantaflow is unable to bake fluid simulations on non-ASCII file paths), 4453509d83, b8af5e1062. Sorry for the noise. @Carrotcakee: please try a fresh build from https://builder.blender.org/download/ (these have the fixes included). Will close as resolved then, feel free to comment again if issues persist...
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
5 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#74155
No description provided.