The International Simutrans Forum

Development => Bug Reports => Topic started by: TheYoda on December 06, 2024, 10:50:33 PM

Title: W11, steam version (124.2.2) pack192.comic crash and saved game don't work
Post by: TheYoda on December 06, 2024, 10:50:33 PM
Hi all, I tried standard pak128 simtrans after years on OpenTTD. Testing different things, adding/correcting translations and writing what I appreciate and what not. Never had a crash in more than 1.000 hours playing.

I wanted at least to test the 192comic pak, mainly just to unlock the achievements on steam :)

The first hours, everything was working fine. To complete the kracken achievement, I let the game running without looking at it.
When I came back a few hours later, the game was "strange". Every car, train... was blocked. Probably because they was all drawed at a wrong place. Means 2 or 3 tiles away from the tiles they should be, they were on grass, in the water, mixed with buildings...

Unfortunatly, I didn't take a screenshot before the game crashed. I tried to restart and to reload the saved game, but no chance, simtrans is crashing everytime.

After a look at the forum, I tried to start the game with debug option.

The log file contains more than 20.000 lines of errors looking like that: "Warning: objlist_t::rdwr():   position error: 376,6,-2 instead 376,6,-4 (object will be ignored)"

Here are the last lines of the 47.000 lines from simu.log file

Message: hausbauer_t::fill_menu():   maximum 134
Message: toolbar_t::update():   update toolbar BUILDINGS
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: hausbauer_t::fill_menu():   maximum 134
Message: toolbar_t::update():   update toolbar SPECIALTOOLS
Message: toolbar_t::update():   update toolbar ABRISSTOOLS
Message: toolbar_t::update():   update toolbar LISTTOOLS
Message: toolbar_t::update():   update toolbar EDITTOOLS
Message: toolbar_t::update():   update toolbar SLOPETOOLSEXTRA
Message: toolbar_t::update():   update toolbar TRACKS_TRACK
Message: toolbar_t::update():   update toolbar SIGNALS_TRACK
Message: toolbar_t::update():   update toolbar SIGNALS_NG
Message: toolbar_t::update():   update toolbar Last used tools
Message: toolbar_t::update():   update toolbar Last used tools
Message: loadsave_frame_t::item_action:   load world 193 ms
FATAL ERROR: unknown - pure virtual function call
Aborting program execution ...

For help with this error or to file a bug report please see the Simutrans forum at
https://forum.simutrans.com




I attached also the last manual save and last automatic save.

Hopefully it can help you to find what happens.
Title: Re: W11, steam version (124.2.2) pack192.comic crash and saved game don't work
Post by: prissi on December 07, 2024, 06:14:59 AM
That strongly indicates some memory corruption, especially if the map is suddenly 2 tiles lower. I am not sure, if there is anything to do about.

Having said this: It seems there is some strange things going on, like goods for unreachable destinations reaching stops. However, any memory debugging suggests that all is fine.
Title: Re: W11, steam version (124.2.2) pack192.comic crash and saved game don't work
Post by: TheYoda on December 07, 2024, 06:52:04 AM
I forgot to mention two things (not sure if this is helpfull, but maybe it is):
- I restarted the computer, same result.
- Reloading a pak128 game works fine.
Title: Re: W11, steam version (124.2.2) pack192.comic crash and saved game don't work
Post by: prissi on December 07, 2024, 06:53:46 AM
The memory was corrupted while saving the map. Hence, the map file is broken. I could try what exactly was corrupted, but usually, it is a lot, if things started to go south.