Blender crash when showing thumbnail of a strongly skewed .exr image #89868
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89868
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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: Linux-5.8.0-59-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.80
Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-14 22:15, hash:
4e65b1ef6c
Worked: Unknown
Short description of error
Thumbnail of strongly skewed (aspect ratio > 32) .exr image crashes blender
Blender segfaults with the error: "OpenColorIO Error: PackedImageDesc Error: Invalid image dimensions."
Exact steps for others to reproduce the error
or
crash.exr
in image editorNote: the bug is not present for other file formats
blender_debug_output.txt
blender.crash.txt
{F10226406, width=100%}
Added subscriber: @blendersamsonov
Added subscriber: @deadpin
Changed status from 'Needs Triage' to: 'Needs User Info'
Please attach the offending .exr image to this report. I attempted to reproduce the problem unsuccessfully using Blender's own image editor and creating an 80x2, 40x1, 2x80, and 1x40 OpenEXR image. Thumbnails and full image loading seem to work fine.
The 1x40 image did show a particular form of thumbnail problem, which has already been filed, but we need to take a look at your particular file here to know if it is different or a duplicate of the other issue. At least provide more information like the exact dimensions used and what program you used to create the .exr file.
This image for example crashes blender in my case. It's an empty 1x64 image.
Again, this was created by blender itself and just saved as .exr image
This is most likely a duplicate of #70356 as the scaling routine has issues when any of the dimensions are 1. There's a patch associated with that bug that still needs to be reviewed that should fix the issue.
Closed as duplicate of #70356
Well, I wouldn't think this to be a duplicate, as large images crash blender too. Like this one (4096 x 64)
Changed status from 'Duplicate' to: 'Needs Triage'
Resetting, but I'm not able to reproduce a crash on either Windows 10 or a Linux desktop using a recent build. I'll have to leave this for other folks to look at until I can investigate further.
Added subscriber: @PratikPB2123
I can confirm on windows with 2.93 and above (seems fine with 2.92 on first check)
blender.crash.txt
blender_debug_output.txt
System Information
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @EAW
Makes sense, as the stack trace points to
OpenColorIO_v2_0::PackedImageDesc::getNumChannels
and OCIO_v2 was added for 2.93.Added subscriber: @ideasman42
I can't redo the crash with the larger image, however resizing smaller images as been fixed
38131cc5e5
.Can you check if the 1px images in this report are now working?
Hi @ideasman42 , can still recreate the crash (broken version:
118803893e
)Ok, I will add a short video to describe the steps :)
I have also just found out that 16-bit .png image also causes a crash. So the problem might be actually related to the bit depth of the image
Ah, now I can repro as well, thanks for the video - I was viewing thumbnails elsewhere. The issue is that we're feeding a 32x0 (obviously wrong) buffer to OpenColorIO
icon_copy_rect
does the following which truncates down to 0 for the tiny y dimension in this case:ey = (short)scaledy;
Added subscriber: @Harley
I can see that happening with very small images, but not sure how that could happen with OP’s examples. Image of 2048 x 32 would make a thumbnail of 256x4, and so 2047x32 might get truncated to 256x3.
This issue was referenced by
0de54a9cfe
This issue was referenced by
d097d35be6
This issue was referenced by
e82c5c6607
Changed status from 'Confirmed' to: 'Resolved'