Mantaflow not caching if path contains characters with accent #98467
Labels
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#98467
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.96
Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash:
c77597cd0e
Short description of error
If the cache folder path for Manta FLow contains "french" accent character, no sim data is computed.
Exact steps for others to reproduce the error
Move forward to the fluid sim... No simulation data create
To fix it :
It works
If cache folder is relative to .blend file or absolute, it doesn't create data if the path contains any character with accent.
Thank you for the great job you are doing
Have a nice day
Didier
Added subscriber: @MagicDid
Added subscriber: @iss
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm, but since there is no active developer for mantaflow, will set as known issue
@MagicDid Can you check if this bug is still happening for you in the 3.3 daily build? I think it might have already been resolved there...
Hi,
I've downloaded the 3.3 daily build and tried to bake a Mantaflow simulation and it doesn't work if the path of the .blend file contains an accent. A single default cube and apply quick effet / smoke doesn't generate simulation data if the file is stored in
..../Données/MyProject/anyfile.blend
I just renamed it to
.../Data/MyProject/anyfile.blend
, reopened it and this time simulation data are generated.Tell me if you need any log/file/etc...
@MagicDid |I have created a C:\Données\test.blend . I added a Object > Quick Effects > Quick Smoke to the cube. The cache directory is relative to the blend file as indicated, and when I hit Bake All I can play the animation and see the simulation in Blender 3.3 alpha.
When I try that on Blender 3.2.1 I don't see any simulation. Are you certain it was the 3.3 build you used to test it? Or am I missing somethiing in my test?
Here is the test environment (see screenshot). The 3.3.0 alpha is from June 28th (this morning).
It seems you're doing the right test. Cannot understand what is the difference between the 2 environment. The only thing I have to change to make it work is the
Données
changed toData
.Have you tried both accent and space in the path ?
Hello,
I've downloaded the last Blender release from Git, rebuilt it and when I check the
MANTA_main.cpp
file, it seems that the modification detailed in https://developer.blender.org/D15301 are not included in this release.Didier
Hi again,
I've added some Log to understand what happens. Here are the Python command strings "tried" to be executed :
Indeed the "é" character is interpreted into something else between the GUI and the internal Manta wrapping implementation.
Hey @MagicDid , yeah the problem is that code doesn't actually fix the issue. I thought that was fixing the issue, but the problem is that it's already working for me in the latest release. So when I tested my changes I thought it was fixing the bug, but it wasn't actually doing anything different.
I tried to recreate this issue with a space in the filepath
C:\Données\Folder With Space
and it also works as expected for me on 3.3, but not on 3.2.1. I'm not really sure why we're seeing different results, maybe it's an issue with environments, but I'm not able to dig any further on it without being able to recreate it I'm afraid...Added subscriber: @SonnyCampbell_Unity
@MagicDid where did you add that logging and I can add it in the same place to see if I can spot any difference?
In file
C:\Projects\Blender\blender\intern\mantaflow\intern
In
runPythonString
method :I'm working on using the
BLI_get_short_name
function to solve this issue (at least on Windows platforms)Yeah I see the same in mine:
but my simulation runs when I play the animation
and my fluid cache has the data
I'm on Windows 10 too.
Hi,
I finally succeeded in understanding what happens in my case. The issue is due to the OpenVDB implementation at the end of the C++ => Python => C++ architecture of Mantaflow in Blender. Here is a sequence diagram of the successive calls leading to the erroneous interpretation of the path at the end.
During all the sequence the path is correctly interpreted as UTF-8 and finally in the OpenVDB implementation the path is interpreted as a basic string (ASCII) by use of std::ofstream with std::string instead of std::swstring. As this is in OpenVDB distribution, there is no chance this to be fixed.
To prove this, I changed the export format to "UNI cache" instead (which is not implemented the same way) and the simulation bake works and I can play it...
Now I know it I'll change my folder's name.
Thanks for your time
Question : how can I help by fixing some issues in Blender ? How to pick up issues ?
@MagicDid Thanks for detailed analysis.
In general, pick area you would like to work on and contact developers that maintain this area. They can probably provide you with easier tasks here on tracker so you can get familiar with development process. See https://wiki.blender.org/wiki/Modules
It's good idea to read through wiki and good starting point is https://wiki.blender.org/wiki/Developer_Intro/Overview