UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #436 Error decompressing data in 'slotX'.
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    User interface
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/436 Item 436] imported from sourceforge.net tracker on 2013-01-28 18:21:29

When compiled with --enable-release, any saved game can't be loaded and it tells this error. Without --enable-release all works fine.
x86_64 Linux, svn version 4746
===== Comments Ported from Sourceforge =====

====== tlh2000 (2006-11-16 07:22:53) ======

Logged In: YES
user_id=116930
Originator: NO

maybe some of the optimiźation flags are incompatible with zlib
====== tritol (2006-11-16 19:57:30) ======

Logged In: YES
user_id=1020281
Originator: YES

It seems src/qcommon/unzip.c hates any optimization flags (-O2 too). Why system zlib is not used for this task? There shouldn't be compile trouble with system zlib.
====== cassiterite (2006-11-17 09:47:58) ======

Logged In: YES
user_id=1171370
Originator: NO

unzip.c relies on the zlib library for all uncompression tasks. It is a copy of minizip's unzip.c (which is now bundled with zlib releases as a contrib project).

If unzip.c hates optimization flags then this is probably still a direct result of an issue with zlib.

I wouldn't have expected zlib to have these sorts of issues though, maybe it is worth chasing up with the zlib guys?
====== tritol (2006-11-17 13:13:21) ======

Logged In: YES
user_id=1020281
Originator: YES

I dig little more and unzip.c is inocent. Load game calls zlib directly (function uncompress) and it returns Z_BUF_ERROR. I modify the code a little and now it work just fine. Patch included.
====== cassiterite (2006-11-17 16:26:18) ======

Logged In: YES
user_id=1171370
Originator: NO

Thanks for the patch! It is now applied against trunk and stable branches.

I will admit I was the author of this buggy code, and didnt notice the error even after looking through it again when I read your bug report. So thanks again for picking it up and fixing it.
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif