Crash while updating sun, when rendering animation or baking geonodes (sometimes when rendering single frame or editing too) #105295
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#105295
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: Linux-6.5.0-28-generic-x86_64-with-glibc2.35 64 Bits, X11 UI
Graphics card: Mesa Intel(R) Graphics (RPL-P) Intel 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
Blender Version
Broken: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash:
e1743a0317bc
Worked: (none)
Also tested in 4.2 alpha, same result (crashes while updating sun)
Crashes on Windows 11 too (Blender 4.1.x), but I didn't check the log there.
Addon Information
Name: Sun Position (3, 5, 4)
Author: Michael Martin, Damien Picard
Short description of error
When baking geonodes, or rendering animation, blender sometimes crashes.
When editing interactively or rendering a single frame, sometimes blender crashes.
Sun is animated (specifically, the time of day).
Sky texture for world shader (Nishita / Cycles) + Sun light are controlled by the plugin.
Exact steps for others to reproduce the error
Attached:
Open untitled.blend
My test configurations were:
Open GeoNodes tab.
Select "Leaves" object
Select its geonodes modifier
In GeoNodes editor, find the Bake node and click Bake (as animation, should already be set to this)
This bake will sometimes already trigger a crash within a few minutes
If it doesn't, close and re-open the file then try again.
Render a frame (e.g. open Render tab, F12).
This often triggers a crash.
If you're still uncrashed, render animation. Perhaps drop resolution so you aren't waiting for hours before trying this. This should crash within a few hundred frames in the best case, or in the first frame often.
Hi, thanks for the report. I can’t reproduce the crash with 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash:
40a5e739e270
.Just to be sure, have you tried disabling the Sun Position add-on before baking and rendering? It’s quite possible the add-on is causing the crash, but I’d like to make sure if possible.
Running here with:
# Blender 4.1.1, Commit date: 2024-04-15 15:11, Hash e1743a0317bc
, onUbuntu 22.04.4 LTS
I assumed the issue was with the plugin due to the python trace at the end of the crash log file.
I tested now with the plugin disabled and the Bake completed 4 times.
Rendering a single frame after each bake resulted in one crash, one freeze, and two successful renders.
So perhaps the render crash and the bake crash have two different causes.
I re-enabled the Sun plugin, then ran four times: three out of four crashed during bake (one at less than 200 frames in).
Attached logs:
This more minimal example also triggers it for me on:
# Blender 4.1.1, Commit date: 2024-04-15 15:11, Hash e1743a0317bc
Steps to repro:
I just ran 5 times, and got:
Thanks, I can reproduce the crash now!
Sorry for the delay in getting the minimal example over - blender is just a hobby for me and my work has been crazy lately.
In ~1 week time I should be able to help with debugging / testing if needed.
Hey, no problem, this isn’t my day job either!
I tried a few things and currently I don’t know why the crash happens precisely. Best hunch is that the system used to update the Sun position at each frame update is known to be somewhat unstable. Not sure how I can work around that.
Maybe adding an operator to bake the animation could help, but it’s annoying.
Ok, so this is a "design issue" in Blender then. For rendering it can be fixed with "lock interface", but for other stuff (e.g. baking) there isn't a UI option for that.
I wonder if one can lock/unlock the interface in code somehow, like taking a mutex...
If not, I'm curious if this is something blender main-repo people would be interested in.
I'm trying a headless render now via a shell script (
blender --background ...
).It's still crashing, but due to a different issue (likely the issue for my other ticket in blender main repo, unrelated to this sun plugin).
Interestingly, it crashes quickly with OPTIX, but when I switch to CUDA then it allocates about 70GB of RAM and then crashes with OOM.
Thanks for the tip about the concurrency issue with the view state! Headless rendering should provide a workaround for me hopefully once I find a workaround for this other issue.
I don’t know of any way to do that currently, but maybe it would make sense to lock the interface during bake, yes. In any case if we can make a repro case which doesn’t involve Sun Position, it could be good to take this to the Blender developers.
Not sure it’s the same thing, but I noticed a memory leak when rendering your file with EEVEE, 1 sample, 5% resolution and FFMPEG output for maximum speed. The crash only happens when the Sky Texture is plugged in, so I think a new texture for the sky is created on each frame, but not deallocated till after the whole sequence is rendered. That may be yet another bug.
FWIW, as another workaround you can create a workplace without any viewport, and then I can’t reproduce the crash any more.
Thanks for the tips / info!