Maniphest T65431

Crash loading JPG with invalid metadata in Cycles
Closed, Archived

Assigned To
Brecht Van Lommel (brecht)
Authored By
Jake (millicow)
Jun 3 2019, 12:12 AM
Tags
  • BF Blender
Subscribers
Brecht Van Lommel (brecht)
Jake (millicow)
Philipp Oeser (lichtwerk)

Description

System Information
Operating system: Linux Mint 18.3
Graphics card: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller

Blender Version
Broken: 2.80, 079c7f918c81, blender2.7, 2019-06-01 22:51
Worked: 2.79

Short description of error
When I tried to use an image as a light source in Cycles (first with a spot lamp, then with a plane) it crashed Blender. I opened an old file I'd made in 2.79 in which I have an image projected from a spot lamp, and when I turned on viewport rendering, it works just fine, even though it's set up the same way as the spot lamp was in my new file.

*It works when the image is packed into the blend file, but not with an external image.* This is why the blend file I attached works, but if you replace that image file with an external image file and don't pack it, then Blender will crash when you try to render.

Exact steps for others to reproduce the error
Add a spot lamp and in the Object Data tab of the Properties menu, click Use Nodes - alternatively, add a plane, open edit mode, press U, go back to object mode. Give it an emission material. With the Emission node selected, press CTRL+T to add a Texture Coordinate node (using Normal for a lamp, or UV for a plane) connected to a Mapping node which plugs into the Vector input on an Image Texture node (load an image into the node) with the Color output connected to the Color input on the Emission node. Use viewport rendering, or press F12 to render. Blender crashes.

Related Objects

Mentioned Here
T71003: Panoramas as textures cause crash
rB079c7f918c81: Cleanup: make.bat remove noge option from help

Event Timeline

Jake (millicow) created this task.Jun 3 2019, 12:12 AM
Brecht Van Lommel (brecht) updated the task description.Jun 3 2019, 12:40 AM
Brecht Van Lommel (brecht) renamed this task from Blender crashes when viewport rendering while using an external image texture as a light source (on a lamp or on an emission plane) to Crash loading JPG with invalid metadata in Cycles.Jun 3 2019, 2:25 PM
Brecht Van Lommel (brecht) lowered the priority of this task from 90 to 50.
Brecht Van Lommel (brecht) claimed this task.Jun 3 2019, 2:28 PM
Brecht Van Lommel (brecht) lowered the priority of this task from 50 to Low.
Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).

This appears to be a bug in OpenImageIO, which was fixed here:
https://github.com/OpenImageIO/oiio/commit/47404a0b1ec1ad5afdd3857ed0c0a769d1e40475#diff-f3c7b38702e4450a26b016fecb39a466

We have no upgraded to the latest version. Since we have not had similar reports that I know of, this is probably limited to specific JPEG files with broken metadata.

This will be fixed when upgrade OpenImageIO the next time, but probably not before the 2.80 release.

Philipp Oeser (lichtwerk) changed the task status from Unknown Status to Unknown Status.Nov 20 2019, 12:32 PM
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

I will follow @Brecht Van Lommel (brecht) policy here, see T71003: Panoramas as textures cause crash and close this since it's not a bug in Blender itself.