DescentDevelopers / Descent3

Descent 3 by Outrage Entertainment
GNU General Public License v3.0
2.74k stars 231 forks source link

[Runtime Issue]: Saving will crash game #350

Closed ExperimentIV closed 2 months ago

ExperimentIV commented 2 months ago

Build Version

07262f6

Operating System Environment

CPU Environment

Game Modes Affected

Game Environment

No response

Description

When doing a save while playing, the game will crash. Further actions to load or save through the main menu, ALT-F2 or F9 in game, again will also crash the game as it appears look at the corrupted save and not like it. Access to these windows will no longer work until save file is deleted from savegame directory. Terminal output before the game dies is:

double free or corruption (top)
SIGNAL 6 caught, aborting

Trying to load said file will output the following:

Descent 3 Message(Error: Reading file </home/dangermouse/.wine/drive_c/Games/Descent3/savegame/saveg000>: error = Unexpected end of file
)

Regression Status

No response

Steps to Reproduce

  1. Start the game with the 07262f6 build.
  2. ALT-F2 or F9 will bring up the window to save the game.
  3. Name the save and hit Ok.
  4. Game should stop responding.
winterheart commented 2 months ago

Crash appears on rendering thumbnail image of save game. #348 should solve game crash on double free. Another issue is game cannot correctly handle with corrupt savegames.

Lgt2x commented 2 months ago

Confirming that #348 solves the game save problem. Opening #351 for the corrupted file load