The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on January 14, 2009, 06:23:48 pm

Title: [solved]v101 - pure virtual function call when building a station building
Post by: z9999 on January 14, 2009, 06:23:48 pm
How to reproduce:
1. Load attached savegame
2. select "Big modern terminal 2" on airport tool.
3. move cursor to (44,46)
4. click

Quote
Message: karte_t::interactive_event(event_t &ev):   calling a tool
Message: wkz_station_building_aux():   building mail office/station building on square 44,46
FATAL ERROR: unknown
pure virtual function call
Aborting program execution ...


[attachment deleted by admin]
Title: Re: v101 - pure virtual function call when building a station building
Post by: whoami on January 29, 2009, 12:25:23 pm
Crash still occurs in rev.2266 (win-SDL).
Title: Re: v101 - pure virtual function call when building a station building
Post by: prissi on January 29, 2009, 02:40:09 pm
I get "tile not empty" error message.
Title: Re: v101 - pure virtual function call when building a station building
Post by: whoami on January 29, 2009, 04:09:31 pm
I get the same message for other (occupied) tiles, but for (44,46), the crash definitely happens in my setup with r2266 (pak64: r127 +f+w).
Title: Re: v101 - pure virtual function call when building a station building
Post by: z9999 on February 08, 2009, 07:52:55 am
Tested in r2310.
Didn't crash but ...

[edit]
Ahh, this is still dangerous.
If there is a factory or a cityhall at there, we will lost it.
Maybe we might lost savegame.

Why this routine changes the position after checking empty tile.
In this case, checking empty tile is completely meaningless.
Title: Re: v101 - pure virtual function call when building a station building
Post by: prissi on February 09, 2009, 10:56:43 am
Actually there is first a check (Ist_platz_frei()) only then further checks are done. So there is at least on but probably several bugs.
Title: Re: [solved]v101 - pure virtual function call when building a station building
Post by: z9999 on February 10, 2009, 03:39:21 pm
Solved in r2316. Thank you.