Mantaflow problem when baking via Python API #75889
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#75889
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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: Arch Linux
Blender Version
Broken: 2.82 and above including 2.90 alpha
Worked: before Mantaflow
Getting this error:
when trying to bake practically anything with this Python script. The same happens when using:
Uploaded testing project file. bakeTest.blend
Added subscriber: @ichlubna
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @sebbas, @JacquesLucke
I'm trying to debug this for too long now..
I did notice that sometimes a python script tries to free a solver, but does not. Applying P1371 helps to see when a solver is created and when destroying.
Steps without error:
Steps with error:
bakeTest_modified.blend
The patch then generates this output:
The most important part here is that it tries to delete
s1
, but's1' in globals()
fails in the generated script. I'm not sure at what level the issue is.I find it a bit weird that we dump all these variables into a
__main__
module. My current guess is that the script is executed with incorrectglobals
andlocals
and therefores1
is not found. That could be solved by passing properglobals
andlocals
dicts to python incallPythonFunction
.@sebbas, do you think I should investigate that further, or do you think the bug is something else?
Added subscriber: @gabrign
This issue was referenced by blender/blender@a50c131a0d
Changed status from 'Confirmed' to: 'Resolved'