Image Sequence data disappears after certain properties are set #80814

Open
opened 2020-09-15 17:32:21 +02:00 by Christopher Gearhart · 4 comments

System Information
Operating system:
Graphics card:

Blender Version
Broken: 2.83.6 (and all previous 2.8x versions)

Short description of error

Cannot access image sequence pixel data from 'Image Sequence' editor after certain properties are set.

Exact steps for others to reproduce the error
Based on the following startup file and bundled image sequence:

  1. Open the 'image_sequence_issue.blend' file from the following zip folder:
    image_sequence_issue.zip
  2. Run the active script in the text editor area
  3. Notice that an error is thrown - the image sequence has no data.
  4. Now comment out lines 8 & 9 (or line 12), and re-run the script. Notice that no error is thrown and the image has data.

For reference; the script bundled in the above file is copied below:

import bpy

# get the image editor space in the current screen
viewer_area = next(area for area in bpy.context.screen.areas if area.type == "IMAGE_EDITOR")
viewer_space = next(space for space in viewer_area.spaces if space.type == "IMAGE_EDITOR")

# set properties on the image user
viewer_space.image_user.frame_offset = 1
viewer_space.image_user.use_cyclic = True

# set the display channels to 'color'
viewer_space.display_channels = "COLOR"

# viewer_space.image.reload()  # this line does not fix the issue
print("Before update:", viewer_space.image.has_data)
viewer_space.image.update()
print("After update: ", viewer_space.image.has_data)
**System Information** Operating system: Graphics card: **Blender Version** Broken: 2.83.6 (and all previous 2.8x versions) **Short description of error** Cannot access image sequence pixel data from 'Image Sequence' editor after certain properties are set. **Exact steps for others to reproduce the error** Based on the following startup file and bundled image sequence: 1. Open the 'image_sequence_issue.blend' file from the following zip folder: [image_sequence_issue.zip](https://archive.blender.org/developer/F8884417/image_sequence_issue.zip) 2. Run the active script in the text editor area 3. Notice that an error is thrown - the image sequence has no data. 4. Now comment out lines 8 & 9 (or line 12), and re-run the script. Notice that no error is thrown and the image has data. For reference; the script bundled in the above file is copied below: ``` import bpy # get the image editor space in the current screen viewer_area = next(area for area in bpy.context.screen.areas if area.type == "IMAGE_EDITOR") viewer_space = next(space for space in viewer_area.spaces if space.type == "IMAGE_EDITOR") # set properties on the image user viewer_space.image_user.frame_offset = 1 viewer_space.image_user.use_cyclic = True # set the display channels to 'color' viewer_space.display_channels = "COLOR" # viewer_space.image.reload() # this line does not fix the issue print("Before update:", viewer_space.image.has_data) viewer_space.image.update() print("After update: ", viewer_space.image.has_data) ```

Added subscriber: @bblanimation

Added subscriber: @bblanimation

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Analyzing the code, it is really strange that BKE_image_has_loaded_ibuf returns true but BKE_image_acquire_ibuf returns NULL.
In fact there may be an error in one of these functions.
It deserves an investigation.

(I'm not sure which module mantain image.c so tagging #python_api for now)

Analyzing the code, it is really strange that `BKE_image_has_loaded_ibuf` returns `true` but `BKE_image_acquire_ibuf` returns `NULL`. In fact there may be an error in one of these functions. It deserves an investigation. (I'm not sure which module mantain `image.c` so tagging #python_api for now)
Philipp Oeser removed the
Interest
Python API
label 2023-02-10 09:04:41 +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
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
2 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#80814
No description provided.