Re: [Bug] Access violation after loading game (r2287 and some previous)
Reply #4 –
Prissi,
thank you for your reply. As requested, call history (in reverse chronological order):
1. if(flags&has_way1) {
in grund_t
2. schiene_t * sch0 = dynamic_cast<schiene_t *>( welt->lookup(fahr[i]->get_pos())->get_weg(fahr[i]->get_waytype()) );
in convoi_t
3. if(!route.empty()) {
vorfahren()
in convoi_t
4. cnv->step();
in karte_t.
I cannot presently reproduce this with pak128, and the PakBritain savegame was too large to attach, so I uploaded it to Simutrans files: http://simutrans-germany.com/files/upload/Save%20test.sve . The problem as I have diagnosed it appears with trains - I have not attempted to reproduce it with trams or narrow gauge (I do not know of any current paksets featuring narrow gauge). The odd thing is, the problem only appears after saving and re-loading the game: it does not occur if the game is played without reloading.