"RENDER_OT_render" called with "EXEC_DEFAULT" freezes Blender with Eevee motion blur enabled #79889
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#79889
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.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67
Blender Version
Broken: version: 2.90.0 Beta, branch: master, commit date: 2020-08-17 19:04, hash:
e157573fab
Worked: (newest version of Blender that worked as expected)
Short description of error
bpy.ops.render.render() called without 'INVOKE_DEFAULT' from the Python Console or script freezes Blender when Eevee motion blur is enabled.
And the same issue is in the 2.91 Alpha version.
Exact steps for others to reproduce the error
Edit (added method that doesn't activate via Python).
Exact steps to reproduce the error without activating from Python.
Added subscriber: @Andrey_Sokolov
#80373 was marked as duplicate of this issue
Added subscriber: @EAW
Possibly related: #79891 (Using python handlers introduces artifacts with EEVEE motion blur)
Added subscriber: @rjg
Changed status from 'Needs Triage' to: 'Confirmed'
I can reproduce this. The 2.83.4 release is unaffected though.
Added subscribers: @VFX-Kitchen, @mano-wii, @Raimund58
Tagging this as a bug as @mano-wii did for #80373.
Quoting Germano’s commit from that report as it contains a stack trace.
Added subscriber: @ideasman42
Confirmed, note that this isn't Python spesific, removed Python project.
bpy.ops.render.render() called from console or script freezes Blender with Eevee motion blur enabledto bpy.ops.render.render() called with "EXEC_DEFAULT" or script freezes Blender with Eevee motion blur enabledbpy.ops.render.render() called with "EXEC_DEFAULT" or script freezes Blender with Eevee motion blur enabledto "RENDER_OT_render" called with "EXEC_DEFAULT" or script freezes Blender with Eevee motion blur enabled"RENDER_OT_render" called with "EXEC_DEFAULT" or script freezes Blender with Eevee motion blur enabledto "RENDER_OT_render" called with "EXEC_DEFAULT" freezes Blender with Eevee motion blur enabledAdded subscriber: @Jeroen-Bakker
There is a cyclic lock when the main thread does the rendering
Render -> Motionblur updates the depsgraph for other frame -> Depsgraph signals for view update -> Draw manager wants to lock gl_context in the main thread.
This happens in
DRW_notify_view_update
. The reason why there is a lock is that this function overwrites the DST to detect the engines of a view and make sure that the engine data is available in the viewport. Workbench and EEVEE only uses the engine data to set some flags.A solution would be to add a function to add find all needed engines (we could add a ListBase parameter to current functions) and do the GPU update on the viewport itself and not via the DST. This will reduce the lock to viewport
drw_viewport_engine_data_ensure
andDRW_notify_view_update
. The problem still with this solution is that material can still interfere with the update flags. Not sure how big of an issue this is. We could ignore scenes that don't have scenes. By checking if they are they should Can't we ignore material preview by checking if the original scene isn't a preview scene...@fclem any suggestions?
Added subscriber: @fclem