The International Simutrans Forum

 

Author Topic: [r9410+] Fatal error when loading old (pre-v110) crossings  (Read 102 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 213
[r9410+] Fatal error when loading old (pre-v110) crossings
« 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10303
  • Languages: De,EN,JP
Re: [r9410+] Fatal error when loading old (pre-v110) crossings
« Reply #1 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