MantisBT - VCMI |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0000774 | VCMI | Mechanics - Other | public | 2011-07-23 19:35 | 2012-02-21 15:49 |
|
Reporter | lssjbrolli | |
Assigned To | Tow | |
Priority | normal | Severity | major | Reproducibility | random |
Status | closed | Resolution | fixed | |
Platform | linux | OS | archlinux | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 0.88 | |
|
Summary | 0000774: crash on autosave |
Description | sometimes it crashes at end day when it autosaves with:
System message: Game has been saved as Autosave_5
sh: line 1: 11156 Segmentation fault /usr/bin/vcmiserver 3030 > server_log.txt
Server finished
Lost connection to server, ending listening thread!
End of file
Something wrong, lost connection while game is still ongoing...
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
what(): End of file
Aborted
if you try to load that save you get a:
Loading procedure started!
Reading save signature: 0
Reading handlers: 60
Warning: very big length: 166255944
CLoadFile
Opened /home/sega/.vcmi/Games/Autosave_5.vlgm1
Position: 475244
Segmentation fault
|
Steps To Reproduce | play until crashes |
Additional Information | |
Tags | No tags attached. |
Relationships | duplicate of | 0000848 | closed | Tow | Chance to crash on new month (probably on double-growth month) |
|
Attached Files | snapshot1.png (975,332) 2011-07-23 20:19 https://bugs.vcmi.eu/file_download.php?file_id=752&type=bug
VCMI_Server_log.txt (456,376) 2011-07-25 12:44 https://bugs.vcmi.eu/file_download.php?file_id=754&type=bug VCMI_Client_log.txt (714,816) 2011-07-25 12:44 https://bugs.vcmi.eu/file_download.php?file_id=755&type=bug Autosave_1.vlgm1 (577,395) 2011-07-25 12:46 https://bugs.vcmi.eu/file_download.php?file_id=756&type=bug snapshot3.png (635,700) 2011-07-25 15:13 https://bugs.vcmi.eu/file_download.php?file_id=757&type=bug
server_log.txt (15,557) 2011-08-04 19:57 https://bugs.vcmi.eu/file_download.php?file_id=763&type=bug VCMI_Client_log2.txt (597,923) 2011-08-04 19:58 https://bugs.vcmi.eu/file_download.php?file_id=764&type=bug VCMI_Server_log2.txt (128,879) 2011-08-04 19:58 https://bugs.vcmi.eu/file_download.php?file_id=765&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2011-07-23 19:35 | lssjbrolli | New Issue | |
2011-07-23 19:58 | Ivan | Note Added: 0001867 | |
2011-07-23 20:17 | lssjbrolli | Note Added: 0001868 | |
2011-07-23 20:19 | lssjbrolli | File Added: snapshot1.png | |
2011-07-23 20:32 | lssjbrolli | Note Added: 0001869 | |
2011-07-23 20:37 | lssjbrolli | Note Added: 0001870 | |
2011-07-23 20:44 | lssjbrolli | Note Added: 0001871 | |
2011-07-23 21:30 | Ivan | Note Added: 0001872 | |
2011-07-23 23:45 | lssjbrolli | Note Added: 0001873 | |
2011-07-24 14:42 | Ivan | Note Added: 0001875 | |
2011-07-24 18:44 | lssjbrolli | Note Added: 0001876 | |
2011-07-24 19:19 | Tow | Note Added: 0001877 | |
2011-07-25 12:44 | lssjbrolli | Note Added: 0001878 | |
2011-07-25 12:44 | lssjbrolli | File Added: VCMI_Server_log.txt | |
2011-07-25 12:44 | lssjbrolli | File Added: VCMI_Client_log.txt | |
2011-07-25 12:46 | lssjbrolli | File Added: Autosave_1.vlgm1 | |
2011-07-25 12:52 | lssjbrolli | Note Added: 0001879 | |
2011-07-25 15:13 | lssjbrolli | Note Added: 0001880 | |
2011-07-25 15:13 | lssjbrolli | File Added: snapshot3.png | |
2011-07-25 15:14 | lssjbrolli | Note Added: 0001881 | |
2011-07-25 19:47 | Tow | Note Added: 0001882 | |
2011-08-04 19:57 | lssjbrolli | File Added: server_log.txt | |
2011-08-04 19:58 | lssjbrolli | File Added: VCMI_Client_log2.txt | |
2011-08-04 19:58 | lssjbrolli | File Added: VCMI_Server_log2.txt | |
2011-08-04 19:59 | lssjbrolli | Note Added: 0001896 | |
2011-08-04 20:13 | lssjbrolli | Note Added: 0001897 | |
2011-08-04 20:13 | lssjbrolli | Note Added: 0001898 | |
2012-02-21 15:49 | Tow | Note Added: 0002214 | |
2012-02-21 15:49 | Tow | Status | new => closed |
2012-02-21 15:49 | Tow | Assigned To | => Tow |
2012-02-21 15:49 | Tow | Resolution | open => fixed |
2012-02-21 15:49 | Tow | Fixed in Version | => 0.89 |
2012-02-21 15:49 | Tow | Relationship added | duplicate of 0000848 |
Notes |
|
(0001867)
|
Ivan
|
2011-07-23 19:58
|
|
Still nothing...
There may be some specific action you've done on last turn that leads to crash.
Can you reproduce this crash by loading last valid autosave and repeating this turn again? |
|
|
|
if i load a privious save i get that message and it stays there for a lot of time.
Loading procedure started!
Reading save signature: 0
Reading handlers: 70
Reading gamestate: 100
Unpacking and handling defs: 90
Preparing FoW, roads, rivers,borders: 20
Making object rects: 0
Initing maphandler: 110
Server finished |
|
|
|
now even if i start a new game i get the above. Does the game save a state to a temp file that i can delete or something? |
|
|
|
nevermind, it seems the server was still running in background even if i killed the client. now i can load the previous save and start new game |
|
|
|
loaded privious save and tried all actions now it doesn't crash, i really don't like random things :( |
|
|
(0001872)
|
Ivan
|
2011-07-23 21:30
|
|
Yeah... Random bugs are really annoying.
I'll try to play this map. How often these crashes happens? |
|
|
|
It happens on other maps too, first crash was about 1month and a half. |
|
|
(0001875)
|
Ivan
|
2011-07-24 14:42
|
|
No crashes after one month of gameplay. Will try to play a bit longer this time.
What versions of g++ and boost you have? |
|
|
|
gcc is 4.6.1 and boost 1.46.1 |
|
|
(0001877)
|
Tow
|
2011-07-24 19:19
|
|
Does the server at the moment of crash create a savegame file (*.vlgm1)? If it's not empty, please upload it. Also, what's in the VCMI_Server_log.txt after crash?
Is there any specific pattern when does bug occur? (Eg. just after new month) |
|
|
|
yes i will upload save and log. There is no pattern, now even if i didn't do anything just end day it still crash. |
|
|
|
first crash in 3,4,4 to 3,4,5 (month, week, day), if i load previous save and end day it does not crash. second crash 5,4,6 to 5,4,7. |
|
|
|
i get a crash in win with 0.85 screenshot added, in win server does not make save when crashed |
|
|
|
tried 2 different castles(necro and tower) same result.
no action ingame only end day. |
|
|
(0001882)
|
Tow
|
2011-07-25 19:47
|
|
Thank you for further information. The windows crash issue is 0000759 I guess.
As for the Linux one... it is not related to autosave, the save file looks fine, VCMI crashes after it's already written.
On the other hand, logfiles suggest that crash occurred when turn 85 was starting... that's start a new week, as confirm entries about setting heroes available in taverns and their initial armies. Moreover, it's also start of the new month (turn 85 should be month 3 day 1)... I'd say it's still something in new month or new week handling code. However you say that game also crashes in the middle of week.
Could you also provide us with a logs when such case occurs? |
|
|
|
sorry for delay, damn work :(, i've uploaded the logs. |
|
|
|
it seems you were right and it is related to 0000759 |
|
|
|
i saved on 1,4,7 and reloaded until it crashed. |
|
|
(0002214)
|
Tow
|
2012-02-21 15:49
|
|
I believe it's the same issue as 0000848, that was fixed in r2549. |
|