Blender Cache File Writing Fails Due to Special Characters in File Path #81259

Closed
opened 2020-09-28 18:18:08 +02:00 by Onan Chew · 6 comments

System Information
Operating system: Windows 10 Home, Version 1903
Graphics card: GeForce GTX with Max-Q design

Blender Version
Broken: 2.90.1
Worked: 2.80

Error description:
When using realtive file paths on a fluid or gas simulation, the cache encounters a file write error. This works with any fluid cache type. The realtive path is set to a folder in the same directory as the project.

Error code:

SyntaxError: invalid syntax
  File "<string>", line 1
    liquid_save_data_4('D:\\WorkFolder\\(Hello's)\\cache_fluid_4b85f272\\data', 1, '.vdb', False)

Exact steps for others to reproduce the error
Make a new file and save the file in a folder anywhere with the folder name containing parentheses, or quotation marks. (example: "(Hello's)") Make a sphere, then apply a quick fluid simulation to the sphere. When you move the timeline to make the cache files, or bake the fluid simulation, the program encounters the described error and can't access the files.
Edit: The cache has to be saved in the same place as where the blender file is saved for the error to occur

**System Information** Operating system: Windows 10 Home, Version 1903 Graphics card: GeForce GTX with Max-Q design **Blender Version** Broken: 2.90.1 Worked: 2.80 Error description: When using realtive file paths on a fluid or gas simulation, the cache encounters a file write error. This works with any fluid cache type. The realtive path is set to a folder in the same directory as the project. Error code: ``` SyntaxError: invalid syntax File "<string>", line 1 liquid_save_data_4('D:\\WorkFolder\\(Hello's)\\cache_fluid_4b85f272\\data', 1, '.vdb', False) ``` **Exact steps for others to reproduce the error** Make a new file and save the file in a folder anywhere with the folder name containing parentheses, or quotation marks. (example: "(Hello's)") Make a sphere, then apply a quick fluid simulation to the sphere. When you move the timeline to make the cache files, or bake the fluid simulation, the program encounters the described error and can't access the files. Edit: The cache has to be saved in the same place as where the blender file is saved for the error to occur
Author

Added subscriber: @989onan

Added subscriber: @989onan
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

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

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

D8773: Fix #79941: Mantaflow cache doesn't work with ' character in path Seems to have fixed this when I test with 2.91 e12767a035.
I have no issues using (Hello's) as the name of a folder in the file path.
Windows won't let me us " in a folder name as it says it is illegal.
Please try testing with the latest daily build from the following link:
https://builder.blender.org/download/

[D8773: Fix #79941: Mantaflow cache doesn't work with ' character in path](https://archive.blender.org/developer/D8773) Seems to have fixed this when I test with 2.91 e12767a035. I have no issues using `(Hello's)` as the name of a folder in the file path. Windows won't let me us `"` in a folder name as it says it is illegal. Please try testing with the latest daily build from the following link: https://builder.blender.org/download/
Author

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

Changed status from 'Needs User Info' to: 'Resolved'
Onan Chew self-assigned this 2020-09-29 22:24:46 +02:00
Author

Using provided version (2.91), the problem with having a single quote character in the filepath is fixed

Using provided version (2.91), the problem with having a single quote character in the filepath is fixed
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
2 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#81259
No description provided.