Page 1 of 1

crashes with OpenEXR plugin

Posted: Fri Jul 15, 2011 7:54 am
by dee
Steps to reproduce
0. completely delete old XnView and settings
1. unpack XnView v1.98.1 Complete version for Windows
2. discover that it does not support .exr files, although .exr is listed as supported on web
3. unpack OpenEXR plugin from http://www.xnview.com/en/plugins.html into plugins directory
4. run XnView
5. discover that OpenEXR is missing in Plug-Ins Information window
6. discover that OpenEXR is listed twice in Supported Formats window
7. discover that when .exr file is encountered, XnView usually crashes
It is nondeterministical, sometimes XnView displays .exr image as expected, next time it crashes with the same file.
Visual Studio describes crash as "Unhandled exception at 0x77b70e2c in xnview.exe: 0xC0000005: Access violation reading location 0x00000004."
OS: Vista x64

Re: crashes with OpenEXR plugin

Posted: Sat Jul 30, 2011 6:31 pm
by dee
I wonder, is there anyone else who tried to display .exr with xnview?
I remember I tried it few years ago and it did not work, this was my second attempt.

Re: crashes with OpenEXR plugin

Posted: Sat Jul 30, 2011 7:54 pm
by thibaud
alternative:
1. Install xnviewMP
2. discover that .exr , .hdr and .rpf among many others are supported natively and works perfectly fine.

.exr files that crash xnview and xnviewMP

Posted: Mon Aug 15, 2011 8:45 am
by dee
Thanks for information that exr works for you. It indicates that problem is related to my files.

Several small .exr images that crash xnview and xnviewMP: http://dee.cz/x/exr_xnview_crash.zip

When xnviewMP 0.38.7 encounters these files, it crashes with
Unhandled exception at 0x670015d3 in xnview.exe: 0xC0000005: Access violation writing location 0x39e63b62.

All images were created by FreeImage 3.15.0 and they work fine when opened by FreeImage.

Re: .exr files that crash xnview and xnviewMP

Posted: Mon Aug 15, 2011 11:35 am
by thibaud
dee wrote: When xnviewMP 0.38.7 encounters these files, it crashes with
Unhandled exception at 0x670015d3 in xnview.exe: 0xC0000005: Access violation writing location 0x39e63b62.
Confirmed.

files details:
Image
------
resolution: 128x128
type: 128 Bits (RGBA)
channels Available: (RGBA) Half Float (16 bits/Channel)

Attributes
------------
compression: piz-based wavelet compression (PIZ)
dataWindow - (box2i) : <0/0><127/127>
displayWindow - (box2i) : <0/0><127/127>
lineOrder : increasing Y
pixelAspectRatio - (float): 1.000

Edit: I'm puzzled I tried a few other .exr (including the samples from openexr.org) and now Mp doesn't crash anymore on the files you provided