Crash rendering image as plane with this particular Tif (Cycles) #50857

Closed
opened 2017-03-05 13:35:18 +01:00 by YAFU · 11 comments

System Information
Kubuntu 14.04 64bits (Linux)
GTX 960 - 378.13

Blender Version
Broken: 2.78x - Master
Short description of error
I'm having a crash (segmentation fault) when I import as plane an specific tif obtained from Darktable, and render image or rendered view. Problem does not happen with any tif, and this does not happen if the tif is packaged in .blend. Here I share the tif packed, so you unpack first to test.
unpacked tif crash when render_1.blend

(Clarification: tif Image is black on purpose)

Exact steps for others to reproduce the error
Open the .blend. File > External data > and untick Automatically into .blend
File > External data > Unpack all into files > Use files in current directory
Render image (or rendered view)
Blender crash

**System Information** Kubuntu 14.04 64bits (Linux) GTX 960 - 378.13 **Blender Version** Broken: 2.78x - Master **Short description of error** I'm having a crash (segmentation fault) when I import as plane an specific tif obtained from Darktable, and render image or rendered view. Problem does not happen with any tif, and this does not happen if the tif is packaged in .blend. Here I share the tif packed, so you unpack first to test. [unpacked tif crash when render_1.blend](https://archive.blender.org/developer/F503273/unpacked_tif_crash_when_render_1.blend) (Clarification: tif Image is black on purpose) **Exact steps for others to reproduce the error** Open the .blend. File > External data > and untick Automatically into .blend File > External data > Unpack all into files > Use files in current directory Render image (or rendered view) Blender crash
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @YAFU

Added subscriber: @YAFU

Added subscriber: @fablefox

Added subscriber: @fablefox

Was crash log generated? Please upload if it does. Thanks.

https://docs.blender.org/manual/en/dev/troubleshooting/crash.html

Was crash log generated? Please upload if it does. Thanks. https://docs.blender.org/manual/en/dev/troubleshooting/crash.html
Member

Added subscriber: @LukasStockner

Added subscriber: @LukasStockner
Member

I can reproduce the crash, it happens inside of OIIO - to be precise, in OpenImageIO::v1_4::TIFFInput::find_tag which is called by intern/cycles/render/image.cpp:164.
Apparently Blender's image loading code can handle the Image, which is why it works when packed and only crashes when it's read from disk by OIIO.

@YAFU, Does rendering also crash with the original file or only after packing and unpacking?

In any case, I'm not sure whether Darktable writes invalid TIFFs or OIIO is reading them incorrectly. I'll recheck with latest OIIO, if it still crashes there we should probably report it upstream.

I can reproduce the crash, it happens inside of OIIO - to be precise, in `OpenImageIO::v1_4::TIFFInput::find_tag` which is called by `intern/cycles/render/image.cpp:164`. Apparently Blender's image loading code can handle the Image, which is why it works when packed and only crashes when it's read from disk by OIIO. @YAFU, Does rendering also crash with the original file or only after packing and unpacking? In any case, I'm not sure whether Darktable writes invalid TIFFs or OIIO is reading them incorrectly. I'll recheck with latest OIIO, if it still crashes there we should probably report it upstream.
Author

Hi.
@LukasStockner , This is the story: I was having these crashes when trying to use image as plane with my photos revealed and exported from Darktable (tif format). The crash was always reproducible, I always did the tests without packing the tif in .blend file.
So then I had decided to report the problem, and because the problem does not occur with any tif, I decide to pack the tif into .blend file to include in the report. So before sending the file I do the test again, and, wait a minute!... Is there when I find that packed tif does not produce the crash.
So yes, the problem basically happened with the original file.

@fablefox , this is de crash log:
http://pasteall.org/282745

Hi. @LukasStockner , This is the story: I was having these crashes when trying to use image as plane with my photos revealed and exported from Darktable (tif format). The crash was always reproducible, I always did the tests without packing the tif in .blend file. So then I had decided to report the problem, and because the problem does not occur with any tif, I decide to pack the tif into .blend file to include in the report. So before sending the file I do the test again, and, wait a minute!... Is there when I find that packed tif does not produce the crash. So yes, the problem basically happened with the original file. @fablefox , this is de crash log: http://pasteall.org/282745
Member

Okay, this is getting weird - I could reproduce the issue with OIIO 1.6.9, but after upgrading my build environment to 1.7.8 the crash is gone.
However, the official 2.78c which is also linked against OIIO 1.7.8 still crashes.

I'll try to isolate the issue, but it seems that it's not as easy as just upgrading OIIO.

Okay, this is getting weird - I could reproduce the issue with OIIO 1.6.9, but after upgrading my build environment to 1.7.8 the crash is gone. However, the official 2.78c which is also linked against OIIO 1.7.8 still crashes. I'll try to isolate the issue, but it seems that it's not as easy as just upgrading OIIO.

Added subscriber: @Sergey

Added subscriber: @Sergey

This is similar to #50850, same root of the problem here.

This is similar to #50850, same root of the problem here.

Closed as duplicate of #50850

Closed as duplicate of #50850
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#50857
No description provided.