Image datablock filepath change doesn't update when compositor is set to GPU execution mode. Works in tiles and full frame. #118117

Closed
opened 2024-02-12 03:06:33 +01:00 by michael campbell · 6 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58

Blender Version
Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-02-09 16:43, hash: 7e13522a4fd0
Worked: (unknown)

Short description of error
Image datablock filepath change doesn't update when compositor is set to GPU execution mode. Works in tiles and full frame.

Exact steps for others to reproduce the error

  1. unzip attached and open blend file from unzipped location (don't move blend file out of folder). Ensure load UI is enabled.
  2. Make sure there are no other addons installed that use the frame_change_post handler.
  3. In the script editor click the run script icon.
  4. In all 3 compositor modes (tiled, full frame, GPU) try: playback, changing the frame with the arrow keys, and moving the timeline with the mouse.
  5. In full frame and tiled mode the compositor backdrop will change to show the new image datablocks updated filepath. In GPU mode it won't update.
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58 **Blender Version** Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-02-09 16:43, hash: `7e13522a4fd0` Worked: (unknown) **Short description of error** Image datablock filepath change doesn't update when compositor is set to GPU execution mode. Works in tiles and full frame. **Exact steps for others to reproduce the error** 1. unzip attached and open blend file from unzipped location (don't move blend file out of folder). Ensure load UI is enabled. 2. Make sure there are no other addons installed that use the frame_change_post handler. 3. In the script editor click the run script icon. 4. In all 3 compositor modes (tiled, full frame, GPU) try: playback, changing the frame with the arrow keys, and moving the timeline with the mouse. 5. In full frame and tiled mode the compositor backdrop will change to show the new image datablocks updated filepath. In GPU mode it won't update.
michael campbell added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-02-12 03:06:34 +01:00
Member

Thanks for the report. Can confirm.
cc @OmarEmaraDev @zazizizou

Thanks for the report. Can confirm. cc @OmarEmaraDev @zazizizou
Pratik Borhade added
Module
VFX & Video
Status
Confirmed
Interest
Compositing
and removed
Status
Needs Triage
labels 2024-02-12 06:55:48 +01:00
Omar Emara self-assigned this 2024-02-12 14:58:13 +01:00
Member

@Sergey I couldn't immediately figure it out, but here are my findings. First, download the above file but replace the blend file with this one: missingReclacFlags.blend

  • In v4.1, with #118187 applied.
  • Change to viewport rendered mode to activate the viewport compositor.
  • Execute the script.
  • Scrub the timeline and notice that the image in the image editor does indeed change, but doesn't in the viewport compositor.
  • Change the image path manually in the UI, it works.
  • In the console, change the image path through python, it works.

We conclude that:

  • The issue seems to be that updates in the frame post handler are ignored.
  • The accumulated recalc flag in flush_editors_id_update is zero for the handler case, while non zero in the change through UI case.
@Sergey I couldn't immediately figure it out, but here are my findings. First, download the above file but replace the blend file with this one: [missingReclacFlags.blend](/attachments/1730f5ab-1c57-4744-b149-81eb4ac3b121) - In v4.1, with #118187 applied. - Change to viewport rendered mode to activate the viewport compositor. - Execute the script. - Scrub the timeline and notice that the image in the image editor does indeed change, but doesn't in the viewport compositor. - Change the image path manually in the UI, it works. - In the console, change the image path through python, it works. We conclude that: - The issue seems to be that updates in the frame post handler are ignored. - The accumulated recalc flag in `flush_editors_id_update` is zero for the handler case, while non zero in the change through UI case.

Perhaps you could add a force compositor update python command, preferably with a 'wait till complete' option which tells blender not to continue to the next frame until the compositor completes. Currently when I want that behaviour I have to call render.render(), which I'm guessing is a very slow way of updating the compositor.

Perhaps you could add a force compositor update python command, preferably with a 'wait till complete' option which tells blender not to continue to the next frame until the compositor completes. Currently when I want that behaviour I have to call render.render(), which I'm guessing is a very slow way of updating the compositor.
Member

@3di This is not really related to compositor updates, but rather, cache invalidation of cached images.

This is fixed in latest master by the way, we are just looking for a different solution for v4.1.

@3di This is not really related to compositor updates, but rather, cache invalidation of cached images. This is fixed in latest master by the way, we are just looking for a different solution for v4.1.

I'll try the latest master now thanks.....Works great, perfect 👍

I'll try the latest master now thanks.....Works great, perfect 👍

I do notice that the GPU mode suffers perhaps a little more with this bug #112526 too, perhaps it's also related to the cache?

I do notice that the GPU mode suffers perhaps a little more with this bug https://projects.blender.org/blender/blender/issues/112526 too, perhaps it's also related to the cache?
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-02-28 15:56:45 +01:00
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
3 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#118117
No description provided.