dariomanesku / cmft

Cross-platform open-source command-line cubemap filtering tool.
Other
821 stars 93 forks source link

Crash with enabled OpenCL in x64 on windows #33

Open Raikiri opened 6 years ago

Raikiri commented 6 years ago

With this command line: --input "test.hdr" --outputNum 1 --output0params dds,rgba32f,cubemap --filter radiance --dstFaceSize 128 --output0 "out"

I get a crash in processFilterArea() here: const float dotProduct = vec3Dot(normalPtr, _tapVec); (cubemapfilter.cpp @ line 817)

Crash does not repro if I add --useOpenCL false. Also does not happen on x86. Seems to be independent of input image I'm using, but if needed I can provide specific images that I was testing with. I'm using windows 10 and visual studio 2015.

Can also run additional tests, make a stack dump or something.

dariomanesku commented 6 years ago

I can reproduce this on Linux with my current setup. I will try it on Windows on first occasion.

Devlin1991 commented 6 years ago

I have this same issue. Win10 x64, using cmft as a static library, crashes if I use OpenCL in the radiance filtering call.