Skip to content

[BUG] - Application crashes trying to load some EXR files #744

@warrengalyen

Description

@warrengalyen

Version information

See attached debug log.

Describe the bug

While writing my own EXR decoder using OpenEXR, I came across another file format related issue with FreeImage. It fails to load at least one valid test file I've used. FYI, FreeImage is still using OpenEXR v2.2.1 and the current is v3.2.1.

The application crashes right after the tone mapping dialog is shown, while it's trying to render the preview thumbnail. So far, a crash has only been induced with the single sample file I've included (out of over a dozen tested).

Here is the file info I've parsed from the sample file header if you need it:

file format version: 2, flags 0x0
channels (type chlist):
B, 16-bit floating-point, sampling 1 1
G, 16-bit floating-point, sampling 1 1
R, 16-bit floating-point, sampling 1 1
compression (type compression): piz: piz-based wavelet compression, in blocks of 32 scan lines.
dataWindow (type box2i): (0 0) - (255 255)
displayWindow (type box2i): (0 0) - (255 255)
lineOrder (type lineOrder): increasing y
pixelAspectRatio (type float): 1
screenWindowCenter (type v2f): (0 0)
screenWindowWidth (type float): 1
type (type string): "scanlineimage"

Debug logs

DebugReport_6.log

Sample images and/or screenshots

AllHalfValues.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions