Page MenuHome

Save with File Compress broken,
Closed, ResolvedPublic

Description

Duplicates: T30838

If I save a file with "Compress" checked, I get an error saying "Failed to open .gz file". Some of my Linux buddies are able to save, so it might be a Windows thing. On r45041.

============================================
= Blender 2.62 (sub 2) System Information =
============================================


Blender:
============================================

version 2.62 (sub 2), revision b'-UNKNOWN-'. b'Release'
build date: b'2012-03-20', b'16:07:00'
platform: b'Windows:32bit'
binary path: 'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\blender.exe'
build cflags: b'-pipe -funsigned-char -fno-strict-aliasing -DNDEBUG -O2 -DWIN32 -DFREE_WINDOWS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DBOOST_ALL_NO_LIB -DBOOST_THREAD_USE_LIB -DGLEW_STATIC -DWITH_MOD_FLUID -DWITH_MOD_OCEANSIM -D__LITTLE_ENDIAN__ -DWITH_AUDASPACE'
build cxxflags: b'-pipe -funsigned-char -fno-strict-aliasing -DNDEBUG -O2 -DWIN32 -DFREE_WINDOWS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DBOOST_ALL_NO_LIB -DBOOST_THREAD_USE_LIB -DGLEW_STATIC -DWITH_MOD_FLUID -DWITH_MOD_OCEANSIM -D__LITTLE_ENDIAN__ -DWITH_AUDASPACE'
build linkflags: b'-Xlinker --stack=2097152'
build system: b'SCons'

Python:
============================================

version: 3.2 (r32:88445, Mar 4 2011, 02:13:51) [MSC v.1500 32 bit (Intel)]
paths:
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\scripts\\addons_contrib'
'C:\\Users\\wtu\\AppData\\Roaming\\Blender Foundation\\Blender\\2.62\\scripts\\addons'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\scripts\\addons'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\scripts\\startup'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\scripts\\modules'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\python'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\python32.zip'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\python\\DLLs'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\python\\lib'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw'
'C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\scripts\\addons\\modules'

Directories:
============================================

scripts: ['C:\\Program Files\\Blender Foundation\\Src\\install\\win32-mingw\\2.62\\scripts', 'C:\\Users\\wtu\\AppData\\Roaming\\Blender Foundation\\Blender\\2.62\\scripts']
user scripts: None
datafiles: 'C:\\Users\\wtu\\AppData\\Roaming\\Blender Foundation\\Blender\\2.62\\datafiles\\'
config: 'C:\\Users\\wtu\\AppData\\Roaming\\Blender Foundation\\Blender\\2.62\\config\\'
scripts : 'C:\\Users\\wtu\\AppData\\Roaming\\Blender Foundation\\Blender\\2.62\\scripts\\'
autosave: 'C:\\Users\\wtu\\AppData\\Roaming\\Blender Foundation\\Blender\\2.62\\autosave\\'
tempdir: 'C:\\Users\\wtu\\AppData\\Local\\Temp\\'

FFmpeg:
============================================

'avcodec':' ''53, 60, 100'
'avdevice':' ''53, 4, 100'
'avformat':' ''53, 31, 100'
'avutil':' ''51, 34, 101'
'swscale':' '' 2, 1, 100'

OpenGL
============================================

renderer: 'GDI Generic'
vendor: 'Microsoft Corporation'
version: '1.1.0'
extensions:
'GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture'

Event Timeline

Confirmed. I already know what causes the error.

Also, there is a bug in window's zlib library, so trivial fix doesn't work as zlib crashes the whole program.
Will fix it tomorrow.


@Alex? Can you make new zlib libs for windows?

Dingto, I suspect that VC2008 is fine. I found that file handler is not compatible between different compiler versions. I will compile zlib vc2010 tomorrow, and then send the patch itself.

Closed duplicate report:
http://projects.blender.org/tracker/index.php?func=detail&aid=30794&group_id=9&atid=498

I think this is something we should try to fix really as soon as possible, users who have this option enabled in the user preferences will have trouble saving .blend files this way.

The duplicate Brecht mentioned above is mine, but I have "Compress file" unchecked.

I saved the file in stable 2.62 release (compresion disabled) and tried to save again in the reported builds, still with "compress file" disabled, still failed to save.

Best regards

Closed duplicate report http://projects.blender.org/tracker/index.php?func=detail&aid=30838&group_id=9&atid=498

Talked to Alexander about this issue. It was fixed in trunk already in a bit hackish way, but it should work now. Real solution would be to patch zlib for this.
Some things might be improved in code, but issue appears to be resolved. Thanks for the report and fix!

Sergey Sharybin (sergey) changed the task status from Unknown Status to Resolved.Apr 16 2012, 4:19 PM