The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ronan on October 05, 2010, 02:38:52 pm

Title: Game crash and sheep causing giant jam
Post by: Ronan on October 05, 2010, 02:38:52 pm
I didn't find the bug tracker, so I'm posting here. I run 102.2.2 on Ubuntu 10.04 (install from the standard repositories). I've attached a save from a hands-off game which crashes reproducibly after a few game days, with always the same error displayed on the console log :
Code: [Select]
simutrans: simline.cc:48: simline_t::~simline_t(): ****ertion `count_convoys()==0' failed.

Note also that there's a sheep in (299,729) that seems to have been stuck there for years and causes a giant traffic jam involving many hundreds of vehicles. While getting so many vehicles trapped is just another example of the AI's stupidity, the frozen sheep seems a real bug.

Game file: http://simutrans-germany.com/files/upload/crash-jam.sve (http://simutrans-germany.com/files/upload/crash-jam.sve)
Title: Re: Game crash and sheep causing giant jam
Post by: Dwachs on October 05, 2010, 06:00:45 pm
Thank you for the bug report.

You can remove the sheep with the bulldozer. These stupid sheep do not find a way from the street. Bug/feature undecided.

The crash is fixed in the next nightlies (rev >= 3856)

http://simutrans-germany.com/~nightly/simutrans/en.html

Alternatively you can try to remove the remove oil business of player 6 (purple) around (793,685), selling the train might be enough. But the crash can happen again.
Title: Re: Game crash and sheep causing giant jam
Post by: IgorEliezer on October 05, 2010, 09:29:47 pm
These stupid sheep do not find a way from the street. Bug/feature undecided.

City limits could block sheep from walking on the urban streets.

Another thing, yesterday I saw a miracle: sheep were walking on the sea.
Title: Re: Game crash and sheep causing giant jam
Post by: Dwachs on October 06, 2010, 05:17:00 am
Another thing, yesterday I saw a miracle: sheep were walking on the sea.
:) should be fixed in the meanwhile.
Title: Re: Game crash and sheep causing giant jam
Post by: wernieman on October 06, 2010, 12:09:43 pm
If there is a way to remove all sheeps?

Or a button, that no sheeps where generatet at start??
Title: Re: Game crash and sheep causing giant jam
Post by: vilvoh on October 06, 2010, 12:19:24 pm
I think there's an option for hiding ground objects at simuconf.tab.... :/
Title: Re: Game crash and sheep causing giant jam
Post by: Spike on October 06, 2010, 12:20:02 pm
I guess you can also just delete the sheep pak file.
Title: Re: Game crash and sheep causing giant jam
Post by: Dwachs on October 06, 2010, 06:16:33 pm
Yes, one can delete the sheep pak files  if one does not like them. Or use the bulldozer. They will never come back then.
Title: Re: Game crash and sheep causing giant jam
Post by: Ronan on October 06, 2010, 07:17:50 pm
Thanks, that was quick!

I think there's an option for hiding ground objects at simuconf.tab.... :/
AFAICT, setting random_wildlife_probability to 0 disables their creation.

The issue of frozen sheep aside, what I would prefer is for moving objects to have a finite lifetime and be generated dynamically. Is there a setting for that?
Title: Re: Game crash and sheep causing giant jam
Post by: Dwachs on October 07, 2010, 05:19:19 am
\
The issue of frozen sheep aside, what I would prefer is for moving objects to have a finite lifetime and be generated dynamically. Is there a setting for that?
No (not yet).
Title: Re: Game crash and sheep causing giant jam
Post by: Ters on October 10, 2010, 09:50:36 am
I have had troubles with urban sheep as well. I wish there was some AI game warden that automatically killed sheep when they enter a town. When my vehicles end up trapped behind a flock on a road outside a town, I would like some notification so I can go take them out myself. The latter will not help much for sheeps in towns, because they are a pain to bulldoze in there. I usually have to bulldoze a bunch of pedestrians and city cars before I get to the sheep, sometimes also taking out stops in the process.

Another problem with sheep is that they often spawn inside a forrest (not the industry type) and can't get out. They just walk back and forth on a single tile (or maybe two). A tree or two should not prevent a flock of sheep from entering a tile. Either change that, or prevent sheep from spawning on tiles they can't get out of.