Opening DNG file crashes blender #33003

Closed
opened 2012-10-28 21:05:29 +01:00 by Markus Kasten · 8 comments

%%%Opening DNG RAW files (in my case from a Black Magic Cinema Camera) in Movie Clip editor crashes blender. Here's a Mac crash report, seems like the TIFF loader is trying to open the DNG: http://www.pasteall.org/36677

To test, DNG-RAWs are available at http://nofilmschool.com/2012/08/blackmagic-john-brawley-release-raw-cinema-camera-files-for-download/ (those archives are quite big, I don't know whether I'd be allowed to upload single files. I was using this footage too).%%%

%%%Opening DNG RAW files (in my case from a Black Magic Cinema Camera) in Movie Clip editor crashes blender. Here's a Mac crash report, seems like the TIFF loader is trying to open the DNG: http://www.pasteall.org/36677 To test, DNG-RAWs are available at http://nofilmschool.com/2012/08/blackmagic-john-brawley-release-raw-cinema-camera-files-for-download/ (those archives are quite big, I don't know whether I'd be allowed to upload single files. I was using this footage too).%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%Tested on linux with libtiff 4.0.3 and the image does not load, but It never crashes (tested with Valgrind and it reports no warnings).


TIFFReadDirectory: Warning, Unknown field with tag 33421 (0x828d) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 33422 (0x828e) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 37398 (0x9216) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 51043 (0xc763) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 51044 (0xc764) encountered.


This is the output I get, looking into this:
http://en.wikipedia.org/wiki/Digital_Negative

DNG files use TIFF container to store data so blender isnt wrong in detecting this as a tiff, (however you would want propper DNG support of course, but thats a feature we dont support).

So possibly this is a bug in libtiff 3.9.2? (looking in lib it looks like OSX is on this version).

Assigning toi Jens.%%%

%%%Tested on linux with libtiff 4.0.3 and the image does not load, but It never crashes (tested with Valgrind and it reports no warnings). --- TIFFReadDirectory: Warning, Unknown field with tag 33421 (0x828d) encountered. TIFFReadDirectory: Warning, Unknown field with tag 33422 (0x828e) encountered. TIFFReadDirectory: Warning, Unknown field with tag 37398 (0x9216) encountered. TIFFReadDirectory: Warning, Unknown field with tag 51043 (0xc763) encountered. TIFFReadDirectory: Warning, Unknown field with tag 51044 (0xc764) encountered. --- This is the output I get, looking into this: http://en.wikipedia.org/wiki/Digital_Negative DNG files use TIFF container to store data so blender isnt wrong in detecting this as a tiff, (however you would want propper DNG support of course, but thats a feature we dont support). So possibly this is a bug in libtiff 3.9.2? (looking in lib it looks like OSX is on this version). Assigning toi Jens.%%%

%%%note, running "file" on these files gives:
Frame000340.dng: TIFF image data, big-endian

from an image in Shot_3.zip %%%

%%%note, running "file" on these files gives: Frame000340.dng: TIFF image data, big-endian from an image in Shot_3.zip %%%
Member

%%%I testwise rebuild tiff in version 4.0.3 and it not only fixes the bug, but also works fine with .dng !!!
Must now renew libtiff and all dependent libs as oiio etc. , will take a while.

Jens%%%

%%%I testwise rebuild tiff in version 4.0.3 and it not only fixes the bug, but also works fine with .dng !!! Must now renew libtiff and all dependent libs as oiio etc. , will take a while. Jens%%%
Member

%%%I pushed now libtiff 4.0.3 darwin9 i386 x_86_64 and renewed oiio and ols with the new tiff.
Pls test, i attached a dng file

Jens%%%

%%%I pushed now libtiff 4.0.3 darwin9 i386 x_86_64 and renewed oiio and ols with the new tiff. Pls test, i attached a dng file Jens%%%
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @gree

Added subscriber: @gree

@ Jens verwiebe; would you mind describing the solution a little bit more in detail?
I'm trying to get DNG support within Blender VSE; but either blender shows a blank frame or crashes.

System:
Debian 8 / Bunsenlabs
Blender 2.76 / 2.77 / 2.78

libraw10 (0.16.0-9+deb8u2)
libkdcraw-data (4:4.14.0-1)
libkdcraw23 (4:4.14.0-1)
openimageio-tools (1.4.14~dfsg0-1) // this is the default debian version
I've also tried compiling custom blender + oiio incl. libRAW.

I'm still missing OLS, not sure what's it about.

DNG's do work with 'vi' via command line.

Further discussion: oiio github
bender stackexchange

@ Jens verwiebe; would you mind describing the solution a little bit more in detail? I'm trying to get DNG support within Blender VSE; but either blender shows a blank frame or crashes. System: Debian 8 / Bunsenlabs Blender 2.76 / 2.77 / 2.78 libraw10 (0.16.0-9+deb8u2) libkdcraw-data (4:4.14.0-1) libkdcraw23 (4:4.14.0-1) openimageio-tools (1.4.14~dfsg0-1) // this is the default debian version I've also tried compiling custom blender + oiio incl. libRAW. I'm still missing OLS, not sure what's it about. DNG's do work with 'vi' via command line. Further discussion: [oiio github ](https://github.com/OpenImageIO/oiio/issues/1584) [bender stackexchange ](http://blender.stackexchange.com/questions/57208/how-to-develop-a-vse-file-format-importer-for-dng-cr2-image-files)
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#33003
No description provided.