Crashes with white balance filter #47156

Closed
opened 2016-01-10 21:24:25 +01:00 by Aaron Carlisle · 17 comments
Member

System Information
Windows 10
Intel HD 4600

Blender Version
Broken: 2.76.5
Worked: N/A

Short description of error
Blender Crashes when adding a white balance to an adjustment layer strip or meta strip.

Exact steps for others to reproduce the error

  • Add image strip
  • Add a second image
  • Add an adjustment layer above them
  • Add white balance filter to the adjustment layer strip
  • Re-do using meta strip
**System Information** Windows 10 Intel HD 4600 **Blender Version** Broken: 2.76.5 Worked: N/A **Short description of error** Blender Crashes when adding a white balance to an adjustment layer strip or meta strip. **Exact steps for others to reproduce the error** - Add image strip - Add a second image - Add an adjustment layer above them - Add white balance filter to the adjustment layer strip - Re-do using meta strip
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @Blendify

Added subscriber: @Blendify

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges
Thomas Beck was assigned by Thomas Dinges 2016-01-10 21:35:15 +01:00

Hey Thomas, can you please check? Afaik you added it. :)

Hey Thomas, can you please check? Afaik you added it. :)
Member

Will check, but can't promise that I can do much this week (first week after holidays for me ;) )

Will check, but can't promise that I can do much this week (first week after holidays for me ;) )
Member

Just checked if I can redo it but can't... see WB.png

@Blendify Always supply a file to make sure that I can redo it..
@ThomasDinges Did it crash on your side?

Greetings, Thomas

Just checked if I can redo it but can't... see ![WB.png](https://archive.blender.org/developer/F272221/WB.png) @Blendify Always supply a file to make sure that I can redo it.. @ThomasDinges Did it crash on your side? Greetings, Thomas

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Please attach a blend file which fails (including image files).

Please attach a blend file which fails (including image files).

Committed likely fix: 60fa2644cb, @Blendify could you confirm?

@plasmasolutions, I noticed the division here can easily perform a divide-by-zero:
https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/seqmodifier.c;b211e4193f2ea1a1cffef6b4b76ae5597922fec2$199-201

It's casting nan to char in premul_float_to_straight_uchar,

Also, even for typical operation, this will cause channels to go above 1.0. For HDR renders this is useful to support,
but probably color correction shouldn't be pushing colors into HDR range?

Committed likely fix: 60fa2644cb, @Blendify could you confirm? @plasmasolutions, I noticed the division here can easily perform a divide-by-zero: https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/seqmodifier.c;b211e4193f2ea1a1cffef6b4b76ae5597922fec2$199-201 It's casting `nan` to `char` in `premul_float_to_straight_uchar`, Also, even for typical operation, this will cause channels to go above 1.0. For HDR renders this is useful to support, but probably color correction shouldn't be pushing colors into HDR range?

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Assuming this is fixed for now, we can always reopen if not…

Assuming this is fixed for now, we can always reopen if not…
Author
Member

Changed status from 'Resolved' to: 'Archived'

Changed status from 'Resolved' to: 'Archived'
Author
Member

I am still getting a crash but having trouble finding the limiting factor. And the scene is too big to share. I will try to get a backtrace later this week to see if that can show something.

I am still getting a crash but having trouble finding the limiting factor. And the scene is too big to share. I will try to get a backtrace later this week to see if that can show something.
Member

Added subscriber: @troy_s

Added subscriber: @troy_s
Member

Hi @ideasman42,

writing from Sweden atm. - was urgently sent to a client last week as a programmer drone and therefore just saw your message. HDRs should indeed be able to go above 1.0, completely agree about the division by zero tough, that should be avoided! Do we have an internal division method that catches those cases or should I just do it manually (by never going beneath 0.00001 for every channel for example)?

I'll talk to @troy_s about the color correction as soon as I'm back... unfortunately won't be until Sunday this week.
@Blendify As said, a file (as simple as possible) where I can reproduce issues helps here - if you find something, pack it into a file and upload it.

Greetings, Thomas

Hi @ideasman42, writing from Sweden atm. - was urgently sent to a client last week as a programmer drone and therefore just saw your message. HDRs should indeed be able to go above 1.0, completely agree about the division by zero tough, that should be avoided! Do we have an internal division method that catches those cases or should I just do it manually (by never going beneath 0.00001 for every channel for example)? I'll talk to @troy_s about the color correction as soon as I'm back... unfortunately won't be until Sunday this week. @Blendify As said, a file (as simple as possible) where I can reproduce issues helps here - if you find something, pack it into a file and upload it. Greetings, Thomas

I haven't exactly looked at the code, but I'm pretty sure that it isn't a Bradford transform, which could be added later as a toggle.

"but probably color correction shouldn't be pushing colors into HDR range?"

This sort of operation has to be done blind. That is, it should assume that all images fed to it are scene referred, that is, ranging from zero to infinity with no concept of black or white. This aligns with Cycles internal model, and I don't see any adverse issue here?

@ideasman42 do you see an issue I can't? I trust your wizened eyes on these sorts of matters. From a strictly colour transform side, there's not really much here.

I haven't exactly looked at the code, but I'm pretty sure that it isn't a Bradford transform, which could be added later as a toggle. "but probably color correction shouldn't be pushing colors into HDR range?" This sort of operation has to be done blind. That is, it should assume that all images fed to it are scene referred, that is, ranging from zero to infinity with no concept of black or white. This aligns with Cycles internal model, and I don't see any adverse issue here? @ideasman42 do you see an issue I can't? I trust your wizened eyes on these sorts of matters. From a strictly colour transform side, there's not really much here.
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
6 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#47156
No description provided.