-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot load savegame #524
Comments
The save game you uploaded works fine here. |
@MarcusSt This is an assertion that fails. So nothing in release mode.
|
@Flamefire You don't say? I found that line as well, but the assertion didn't trigger here. At least some time ago, assertions were triggered with reldeb as well. |
Ok, just thought you missed that and wanted to help. GDB outputs:
|
@stefson Something seems to be wrong with the savegame. Do you have the replay? |
well, this is kind of strange. I found two replays, one is faulty and gives a similar error as I'm trying to load it Program received signal SIGTRAP, Trace/breakpoint trap. the second one loads, but it states to be async from frame 56700 on Warnung: Das abgespielte Replay ist nicht mehr mit dem Originalspiel synchron. (GF: 56700) Hopefully I haven't confused them? :-) Oh, it is a linux amd64, if thats important to know. |
Intresting: I'll try this later, but it seems a bunch of objects just goes missing. |
@stefson It seems the error is not in those replays (already faulty). Do you have the earlier replay too? Maybe the map itself might also help |
It might be this one? |
We probably found the cause: Copy assignment increments the object counter which is wrong. Seems like your compiler choose to use the assignment instead of the copy ctor which leads to this bug which is then detected during loading (and since 60b77d1 also during saving) in debug mode. You can continue your game by simply turning assertions off, load and save again. Then you can turn assertions on again. |
could you please explain me how to do this? |
Either use the prebuild nightly or build in release mode (set CMAKE_BUILD_TYPE=Release with ccmake or cmake-gui) then turn it back to Debug after saving your game. |
I am at ef11b10
I'm using gcc 4.9.3 , glibc-2.22 , system boost libraries , anything else that might be helpfull?
save game is here Steffen 4.sav.zip
here is the backtrace
Connection to 127.0.0.1:3665
Sucessfully connected to localhost:3665
SERVER: Using gameframe length of 40ms
SERVER: Using networkframe length of 6 GFs (240ms)
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff7bcfc29 in raise (sig=5) at ../sysdeps/unix/sysv/linux/pt-raise.c:36
36 ../sysdeps/unix/sysv/linux/pt-raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0 0x00007ffff7bcfc29 in raise (sig=5) at ../sysdeps/unix/sysv/linux/pt-raise.c:36
#1 0x000000000077dad2 in SerializedGameData::ReadSnapshot (this=0x571bac8, gw=...)
#2 0x0000000000572adb in GameClient::StartGame (this=0x5630300,
#3 0x000000000056248c in GameServer::StartGame (this=this@entry=0x563a740)
#4 0x00000000005637b7 in GameServer::StartCountdown (this=0x563a740)
#5 0x00000000005d9d60 in dskHostGame::Msg_ButtonClick (this=0x59155a0, ctrl_id=2)
#6 0x00000000007a596e in ctrlButton::Msg_LeftUp (this=0x5915fb0, mc=...)
#7 0x0000000000775a56 in Window::RelayMouseMessage (this=0x59155a0, msg=
---Type to continue, or q to quit---
#8 0x0000000000585d81 in WindowManager::Msg_LeftUp (this=0xc40250, mc=...)
#9 0x00007ffff4240d55 in VideoSDL::MessageLoop (this=0xc17ef0)
#10 0x000000000054d889 in GameManager::Run (this=0xc0e750)
#11 0x0000000000547a95 in RunProgram (options=...)
#12 0x00000000004ea6b1 in main (argc=1, argv=0x7fffffffdcb8)
(gdb) continue
Continuing.
Assertion failure in "ReadSnapshot" at SerializedGameData.cpp#232: expectedObjectsReadCount == GameObject::GetObjCount()ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm.c:7905:(snd_pcm_recover) underrun occurred
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff7bcfc29 in raise (sig=5) at ../sysdeps/unix/sysv/linux/pt-raise.c:36
36 in ../sysdeps/unix/sysv/linux/pt-raise.c
The text was updated successfully, but these errors were encountered: