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 : simutrans: simline.cc:48: simline_t::~simline_t(): Assertion `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
Quote from: Dwachs on October 05, 2010, 06:00:45 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
Quote from: IgorEliezer on October 05, 2010, 09:29:47 PM
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!

Quote from: vilvoh on October 06, 2010, 12:19:24 PM
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
Quote from: Ronan on October 06, 2010, 07:17:50 PM\
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.
Title: Re: Game crash and sheep causing giant jam
Post by: dekema2 on November 24, 2010, 07:46:33 PM
I am having the same problem except when I zoom in, the game automatically shuts off.
Title: Re: Game crash and sheep causing giant jam
Post by: Dwachs on November 25, 2010, 06:05:59 AM
Quote from: dekema2 on November 24, 2010, 07:46:33 PM
I am having the same problem except when I zoom in, the game automatically shuts off.
In your case the crash seems to be triggered by the zooming. Did you really get the same error message as the thread starter??

Which version of simutrans? Which kind of graphic pak? Operating system?