Opened 11 years ago
Closed 10 years ago
#2165 closed defect (needsinfo)
[NEEDS INFO] Loading saved game causes crash
Reported by: | Ian O | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
I'm running a debug build of r13861. I have 2 saved games (will be attached) that are simple games (created in under 20 minutes, a few buildings, a few peasants, not much else). Both reliably cause 0ad to crash during the loading process. A log of the relevant program output and the subsequent stack trace is attached as well.
Let me know if there's anything else I can give you that would help.
Attachments (3)
Change History (13)
by , 11 years ago
Attachment: | savegame-0001.0adsave added |
---|
comment:1 by , 11 years ago
The second saved game is too large to attach. I can email it or upload it somewhere else if it is needed.
Also, just to be clear: These are the only two saves I have and they both cause crashes. I have yet to successfully load a saved game.
by , 11 years ago
Attachment: | crash-log.txt added |
---|
Crash log of running gdb pyrogenesis_dbg and trying to load saved game.
comment:2 by , 11 years ago
I'm running ubuntu, my command prompt asside. Here's uname -rv output:
3.2.0-29-generic
#
46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012
comment:3 by , 11 years ago
Philip` in IRC noted that the crash-log.txt output indicates that it crashes trying to load: "binaries/data/mods/public/art/textures/skins/gaia/slab_temperate_metal_spec.png"
Upon inspection, this png was indeed corrupted. Deleting it and then svn up-ing to get a fresh copy fixed the image corruption issue.
Then, when I start up pyrogenesis_gdb and try to load the attached saved game a new crash occurs (a SIGABRT). The dump is attached ("crash-log-2.txt").
by , 11 years ago
Attachment: | crash-log-2.txt added |
---|
Crash log 2 (possibly completely unrelated to the png issue, but I am not sure)
comment:5 by , 10 years ago
The first error in your last log is
ERROR: Deserialization failed: Deserialize_OutOfBounds
which typically means you're trying to load a saved game from an older version of the game. It shouldn't cause a crash, but it's probably not a code path that gets much testing in debug builds.
I would be interested to know if that actually is the case, whether it's a reproducible crash with outdated saves, whether you could get a crash like that with a saved game matching the version of the game's build, and also whether the crash occurs with the same saved game in release builds.
comment:6 by , 10 years ago
Hi historic_bruno. This occurred while loading saved games created with the same version of the game that was crashing, not from games saved by older versions.
comment:7 by , 10 years ago
Thanks for the reply :) Does the crash also occur in release builds? Can you give some details about your compiler, and if you built Spidermonkey (update-workspaces.sh
without --with-system-mozjs185
) or if it's from a package?
comment:8 by , 10 years ago
Compiler: The game was compiled with gcc 4.6.4 on ubuntu 12.04. Will verify when I get home, but it should be the default ubuntu 12.04 compiler (gcc 4.6.3 I think). I'll verify in a few hours.
Spidermonkey: I did not specify the --with-system-mozjs185 flag when I ran update-workspaces.sh
Release build: I can try a release build over the weekend and report back. I haven't tried this yet.
comment:10 by , 10 years ago
Milestone: | Backlog |
---|---|
Resolution: | → needsinfo |
Status: | new → closed |
Summary: | Loading saved game causes crash → [NEEDS INFO] Loading saved game causes crash |
Save #1 that causes crash