blender/source/creator
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
..
blender.map Attempt to fix #35228: hide a few LLVM symbols that are not in the llvm namespace 2013-05-06 09:44:56 +00:00
buildinfo.c style cleanup: mostly whitespace in rna 2012-05-12 11:01:29 +00:00
CMakeLists.txt Fix #35587: Cycles: image movie to single image crashing 2013-06-02 15:02:17 +00:00
creator.c code cleanup: typo and stop manpage turning '$' into italic. 2013-05-25 02:21:50 +00:00
osx_locals.map OSX/scons: introducing and testing an unexported_symbols_list to prevent clashes, todo: cmake 2012-11-27 11:38:59 +00:00