Test bf_imbuf_save fails with an assert in debug builds (DPX 8-bit save) #108754

Closed
opened 2023-06-08 13:33:39 +02:00 by Martijn Versteegh · 5 comments

System Information
Operating system: Linux-6.2.0-10007-tuxedo-x86_64-with-glibc2.35 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 530.41.03

Blender Version
Broken: version: 3.6.0 Beta, branch: blender-v3.6-release, commit date: 2023-06-08 09:02, hash: 2387290e4f8d
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

  • Compile a debug version of v3.6-release
  • run ctest -R imbuf_save

It fails with the assert:

BLI_assert failed: source/blender/imbuf/intern/colormanagement.cc:2530, IMB_colormanagement_imbuf_for_write(), at '!(byte_output && linear_
float_output)'
**System Information** Operating system: Linux-6.2.0-10007-tuxedo-x86_64-with-glibc2.35 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 530.41.03 **Blender Version** Broken: version: 3.6.0 Beta, branch: blender-v3.6-release, commit date: 2023-06-08 09:02, hash: `2387290e4f8d` Worked: (newest version of Blender that worked as expected) **Short description of error** [Please fill out a short description of the error here] **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] - Compile a debug version of v3.6-release - run `ctest -R imbuf_save` It fails with the assert: ``` BLI_assert failed: source/blender/imbuf/intern/colormanagement.cc:2530, IMB_colormanagement_imbuf_for_write(), at '!(byte_output && linear_ float_output)' ```
Martijn Versteegh added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-06-08 13:33:39 +02:00
Martijn Versteegh added this to the 3.6 LTS milestone 2023-06-08 13:34:08 +02:00
Martijn Versteegh changed title from Test bf_imbuf_save fails with an asser in debugmode for v3.6-release to Test bf_imbuf_save fails with an assert in debugmode for v3.6-release 2023-06-08 14:45:53 +02:00

Same for 4.0

Same for 4.0
Iliya Katushenock added the
Interest
Core
Interest
Images & Movies
labels 2023-06-08 18:18:43 +02:00
Member

I bumped into it a while ago, @deadpin mentioned

it's known. haven't been able to fix it though. the test exposed the issue but it's technically been in blender "forever"

back then.

I bumped into it a while ago, @deadpin mentioned >it's known. haven't been able to fix it though. the test exposed the issue but it's technically been in blender "forever" back then.
Jesse Yurkovich changed title from Test bf_imbuf_save fails with an assert in debugmode for v3.6-release to Test bf_imbuf_save fails with an assert in debug builds (DPX 8-bit save) 2023-06-09 07:13:19 +02:00
Jesse Yurkovich added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-06-09 07:13:24 +02:00
Jesse Yurkovich removed this from the 3.6 LTS milestone 2023-06-09 07:14:24 +02:00
Richard Antalik added the
Module
Platforms, Builds & Tests
label 2023-06-09 23:13:01 +02:00
Author
Member

I bumped into it a while ago, @deadpin mentioned

it's known. haven't been able to fix it though. the test exposed the issue but it's technically been in blender "forever"

@deadpin Can you remember if there's an issue/report with more information about the underlying problem?

> I bumped into it a while ago, @deadpin mentioned > > >it's known. haven't been able to fix it though. the test exposed the issue but it's technically been in blender "forever" > @deadpin Can you remember if there's an issue/report with more information about the underlying problem?

This is it right here. Rundown is as follows:

  • DPX has always been marked as requiring a float buffer
  • DPX has always been able to be saved to an 8-bit buffer ... the contradiction
  • The assert that is firing was added last year 5baa3ecda6
  • The test hitting the assert was added this year
  • It seems like the code here is capable of handling the contradiction above since the image file "looks" correct. Maybe the assert itself is just incorrect and should be removed.
  • Removing DPX from the list of formats requiring a float buffer seems to produce broken images. Double check that.
This is it right here. Rundown is as follows: - DPX has always been marked as requiring a float buffer - DPX has always been able to be saved to an 8-bit buffer ... the contradiction - The assert that is firing was added last year 5baa3ecda66337c0584f0bc6c6e7af0a6c0f6320 - The test hitting the assert was added this year - It seems like the code here is capable of handling the contradiction above since the image file "looks" correct. Maybe the assert itself is just incorrect and should be removed. - Removing DPX from the list of formats requiring a float buffer seems to produce broken images. Double check that.
Author
Member

tx. I'll see if I can find the time to find out what's going on.

tx. I'll see if I can find the time to find out what's going on.
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-02-06 20:52:00 +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
4 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#108754
No description provided.