Save with File Compress broken, #30618

Closed
opened 2012-03-21 01:15:27 +01:00 by Ryan King · 9 comments

Duplicates: #30838

%%%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'
%%%

**Duplicates**: #30838 %%%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' %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%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.

%%%

%%%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-217? Can you make new zlib libs for windows? %%%

%%%@alex-217? 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.%%%

%%%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.%%%

%%%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%%%

%%%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!%%%

%%%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!%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#30618
No description provided.