[Bf-committers] OpenEXR crash in windows
Ton Roosendaal
ton at blender.org
Wed Sep 11 17:35:18 CEST 2013
Hi,
I've seen regularly tracker reports from Windows users about OpenEXR crashes.
Below is a tip from the openexr list about proper configuration of MSVC for it.
-Ton-
--------------------------------------------------------
Ton Roosendaal - ton at blender.org - www.blender.org
Chairman Blender Foundation - Producer Blender Institute
Entrepotdok 57A - 1018AD Amsterdam - The Netherlands
Begin forwarded message:
> From: Michael Reinhardt
> Subject: Re: [Openexr-devel] [Half] HalfTest Failure
> Date: 11 September, 2013 17:16:52 CEST
> To: openexr-devel at nongnu.org
>
> Hi,
>
> from my point of view, this is a know bug in the Visual Studio compiler configuration. I had the same issues some months ago.
> See my mail from 25 May 2013 in order to fix this issue.
>
> Quote from the mentioned mail:
> 3. Correct the export definition in halfExport.h.
> As Peshala correctly stated, the PLATFORM_WINDOWS keyword is never defined in the VS project files. The other base libraries as IlmThread use another way to define their *EXPORT keyword (,which work flawlessly). I simply adjusted their definition to the half project. As a result you will get this content for halfExport.h (remove every other line of code).
>
> #if defined(OPENEXR_DLL)
> #if defined(HALF_EXPORTS)
> #define HALF_EXPORT __declspec(dllexport)
> #define HALF_EXPORT_CONST extern __declspec(dllexport)
> #else
> #define HALF_EXPORT __declspec(dllimport)
> #define HALF_EXPORT_CONST extern __declspec(dllimport)
> #endif
> #else
> #define HALF_EXPORT
> #define HALF_EXPORT_CONST extern const
> #endif
> Additionally, you should check the VS project files for the correct definition of OPENEXR_DLL (Half and HalfTest) and HALF_EXPORT (only Half).
>
>
> FYI: The same export definition bug can be found in the Iex project. Although, this does not expose any error in the supplied test suites.
>
> I hope this helps.
> Michael
>
>
> Am 11.09.2013 15:15, schrieb Julien:
>> Hi,
>> i have exactly the same problem on windows 7 64 bits.
>> My CPU is an Intel Xeon E5620 (i7 based).
>>
>> On release i've got (it seems coding the number 3 as a half fails) :
>> 1> f1 = 1, f2 = 2, h1 = 0.00370026, h2 = 4, h3 = 5
>> 1> h1 = f1 + f2: 0.00370026
>> -> Crash
>>
>> On Debug its worse i have:
>> 1> f1 = 1, f2 = 2, h1 = -8.05855e-005, h2 = 0.595703, h3 = 0.720703
>> -> Crash
>>
>> Thanks,
>>
>> Julien
>>
>>
>> _______________________________________________
>> Openexr-devel mailing list
>>
>> Openexr-devel at nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/openexr-devel
>>
>>
>>
>
>
> ----------
> visit us at
>
>
>
> IFA 2013 / Berlin, Germany / 6-11 September / hall 11.1, booth 21 and 15
>
> IBC 2013 / Amsterdam, NL / 13-17 September / Joint Fraunhofer booth 8 B.80
>
> ECOC 2013 / ICC London ExCeL, UK / 23-25 September / booth 307+311
>
>
> _______________________________________________
> Openexr-devel mailing list
> Openexr-devel at nongnu.org
> https://lists.nongnu.org/mailman/listinfo/openexr-devel
More information about the Bf-committers
mailing list