Fluid: Crash with empty cache path #81271
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#81271
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 Pro/Win 10 Home
Graphics card: NVIDIA GeForce GTX 1080/Intel HD620
Blender Version
Broken: 2.90.1
Short description of error
Entering an empty line in the cache directory path field causes the blender to crash.
Exact steps for others to reproduce the error
{F8933401,size=full}
This crash has been reproduced on three computers (Windows 10).
Best regards sincerely.
Added subscriber: @andreytumanov
Added subscribers: @sebbas, @lichtwerk
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Cannot reproduce on Linux (checked both 2.90.1 and
32d4a67017
)Might be a Windows specific problem?
CC @sebbas
Added subscriber: @iss
Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'
Also can not reproduce.
Please click on Help > Save System Info and upload saved file. Download build from https://builder.blender.org/download/ and check if this problem persists.
Added subscriber: @rjg
If you set the path to empty and haven't previously saved the project, then it will attempt to create the cache folders in the directory of Blender's executable. If you've installed Blender to
C:\Program Files\Blender Foundation
then Blender likely doesn't have the required permissions to do so.Changed status from 'Needs User Info' to: 'Confirmed'
I can confirm that this results in a crash @sebbas
Added subscriber: @dfelinto
@rjg so if you saved the project previously, does the problem still happen? Or even, if you save the project, but explicitly set the cache folder to one you can't write to. I cannot reproduce on Linux
@dfelinto It generally crashes when using a path that can't be accessed due to missing permissions, e.g.
C:\Program Files
.Assigning it to @sebbas then. I believe he has access to a Windows station. He should be able to reproduce it.
Crash with empty cache pathto Fluid: Crash with empty cache pathDon't have access to a Windows machine right now and would say this won't be fixed in 2.91.
@sebbas Do you want me to take another look?
@rjg Sure, it would be interesting to know why
BLI_gzopen()
inMANTA::writeConfiguration
gives a crash. If a file cannot be opened I would have expected to returnfalse
afterwards.So this is rather a bug in
BLI_gzopen()
than it is in Mantaflow. It does the following on Windows to create the file:This fails when the file can't be opened and
ufopen
returnsNULL
.Mantaflow should probably display a warning/error to the user though when the cache directory can't be used. Currently it only writes a messages to the console.
@rjg Looks good to me. As this fixes the crash (right?), from my side you could already commit this to 2.91.
I can add warnings etc. afterwards.
This issue was referenced by
8b815c7ce5
Changed status from 'Confirmed' to: 'Resolved'