The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on November 22, 2020, 09:33:23 PM

Title: [r9410+] Fatal error when loading old (pre-v110) crossings
Post by: ceeac on November 22, 2020, 09:33:23 PM
To reproduce the error, load any save from version 110.0 or earlier.

Code: [Select]
#0 __GI_raise() at /build/glibc-ZN95T4/glibc-2.31/sysdeps/unix/sysv/linux/raise.c:50
#1 __GI_abort() at /build/glibc-ZN95T4/glibc-2.31/stdlib/abort.c:79
#2 log_t::fatal() at /media/ceeac/Projects/code/simutrans/utils/log.cc:325
#3 crossing_t::rdwr() at /media/ceeac/Projects/code/simutrans/obj/crossing.cc:157
#4 crossing_t::crossing_t() at /media/ceeac/Projects/code/simutrans/obj/crossing.cc:39
#5 objlist_t::rdwr() at /media/ceeac/Projects/code/simutrans/dataobj/objlist.cc:823
...

Initializing speedlimit0 and speedlimit1 in crossing_t::rdwr to 0 instead of 999 fixes the error, but this means that the slowest available crossing is selected when importing old saves; I do not know if this is a good solution.
Title: Re: [r9410+] Fatal error when loading old (pre-v110) crossings
Post by: prissi on November 23, 2020, 12:39:22 PM
Indeed, aparently the old testgames were without crossing. I veryfied with a 99.07 game that things do work in r9429. Thanks