The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: sdog on February 18, 2012, 07:09:20 AM

Title: [10.x] crash on map load
Post by: sdog on February 18, 2012, 07:09:20 AM


FATAL ERROR: loadsave_t::rdwr_str()
string longer (63300) than allowed size (256)




Program received signal SIGABRT, Aborted.
0x00007ffff6c133a5 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff6c133a5 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff6c16b0b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x000000000063028a in log_t::fatal(char const*, char const*, ...) ()
#3  0x000000000045fb09 in loadsave_t::rdwr_str(char*, unsigned long) ()
#4  0x00000000005c63c5 in haltestelle_t::rdwr(loadsave_t*) ()
#5  0x00000000005c7989 in haltestelle_t::haltestelle_t(karte_t*, loadsave_t*) ()
#6  0x00000000005c7aac in haltestelle_t::create(karte_t*, loadsave_t*) ()
#7  0x00000000006207ae in karte_t::laden(loadsave_t*) ()
#8  0x00000000006235f0 in karte_t::laden(char const*) ()
#9  0x000000000051af4f in savegame_frame_t::action_triggered(gui_action_creator_t*, value_t) ()
#10 0x00000000004b81d9 in gui_table_t::infowin_event(event_t const*) ()
#11 0x00000000004b64c4 in gui_scrollpane_t::infowin_event(event_t const*) ()
#12 0x00000000004ead1f in gui_container_t::infowin_event(event_t const*) ()
#13 0x00000000004ec179 in gui_frame_t::infowin_event(event_t const*) ()
#14 0x0000000000603085 in check_pos_win(event_t*) ()
#15 0x000000000061d446 in karte_t::interactive(unsigned int) ()
#16 0x00000000005d06ab in simu_main(int, char**) ()
#17 0x00000000004091cc in main ()



when loading the linked savegame (http://dl.dropbox.com/u/1876190/178.sve) the game crashes. Other savegame saved with the same version also crashes. Older savegame saved with a previous commit (b7fe3eba4540d2f70d2b106661c7fba2736fbbe1) does load. This can be saved and loaded again.




tested on 64 bit ubuntu 11.10, gcc 4.6.1, 10.x branch, commit 4ffdb24297380b85f18168e93b4c9520fc7f1a87

Title: Re: [10.x] crash on map load
Post by: jamespetts on February 18, 2012, 12:48:12 PM
Sdog,

thank you for your report - this error generally appears when the game is trying to load a game saved with an incompatible version. Was this game saved using an earlier commit of 10.x? There was a time when convoy IDs were saved, but that change was reverted, which might have caused your difficulties. Also, can you load this game in 10.9?