Go to file
Sergey Sharybin 732c566f2f Fix #35587: Cycles: image movie to single image crashing
Crash was happening on windows platforms only and was caused
by some specifics about how CRT works.

Basically, blender and all of the .dll are compiled with /MT
flag, which means blender.exe and all .dll are using separate
environments. This makes it impossible to pass file descriptors
from blender to other dll, because it becomes invalid in the dll.

And this is exactly what was happening: OIIO was trying to open
movie file with all known plugins and one of them was zlib. And
the way OIIO was using zlib API is opening the file using Boost
and passing a file descriptor to zlib. And since zlib was a
dynamic library this lead to general issues using this descriptor
in zlib code.

Solved by linking to zlib statically. This allows to safely pass
file descriptor to zlib API. Alternative would be to compile all
the stuff with /MD flag, but that's much bigger and less robust
way to fix the issue.

Tested on windows using msvc2008, scons plus cmake both 32 and 64
bit versions. Seems to be working fine.

Further tweaks for mingw and msvc2012 could be needed tho.
2013-06-02 15:02:17 +00:00
build_files Fix #35587: Cycles: image movie to single image crashing 2013-06-02 15:02:17 +00:00
doc add popup menu to allow python scripts to show popups without having to define a menu class first. 2013-06-01 04:06:38 +00:00
extern Update libmv from own branch 2013-06-01 10:30:46 +00:00
intern Code cleanup / Cycles: 2013-06-02 14:52:29 +00:00
release Fix for potential division by zero during Freestyle stroke rendering. 2013-06-02 11:42:04 +00:00
source Fix #35587: Cycles: image movie to single image crashing 2013-06-02 15:02:17 +00:00
CMakeLists.txt Fix #35587: Cycles: image movie to single image crashing 2013-06-02 15:02:17 +00:00
COPYING
GNUmakefile Fix a mismatch in help message (check_spelling_osl obviously checks OLS, and check_spelling_c, C code! :P ) 2013-05-14 14:37:51 +00:00
SConstruct Fix #35587: Cycles: image movie to single image crashing 2013-06-02 15:02:17 +00:00