News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

Mysterious crash in weighted_vector_tpl::index_of

Started by Dwachs, June 27, 2013, 06:32:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dwachs

There is a crash report on the German forum:
http://simutrans-forum.de/forum/index.php?page=Thread&threadID=7950&action=firstNew

The crash is a fatal error in weighted_vector_tpl::index_of. Despite it sounds like this is a general purpose method, this routine seems to be called only at a very few places: To find the index of a city pointer in the global array of cities. It is only used in AI and renaming cities by gui (however these calls are safeguarded to check the error condition), and when saving games. I could not find any other place.

Any advice highly appreciated.
Parsley, sage, rosemary, and maggikraut.

Ters

If understood it correctly, every single player got the error message, so whatever caused it happened on all machines. Something writing out of bounds seems unlikely to affect all players the same way. Do network games perform synchronized saves?

Dwachs

Yes, server and clients stopped working. This points to some program bug (it cannot be a hardware failure of one computer).

Clients do synchronous saving when a new clients connects and needs to obtain the current game state. However, the reporter did not notice a connecting attempt or a crash during save :/
Parsley, sage, rosemary, and maggikraut.

Ters

I have a hard time imagining that something other than someone deleting a city or the AI causing this. The former should be reproducible, the latter might depend on a specific random value.