The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Simutrans-Extended bug reports => Topic started by: Matthew on August 28, 2021, 03:53:34 PM

Title: Client and server crashed on join
Post by: Matthew on August 28, 2021, 03:53:34 PM
I just tried to join B-B at 1543 GMT today. My client soft crashed and so did the B-B server, which has not (yet) restarted.

The error message on both was:

FATAL ERROR: crossing_t::crossing_t() - requested for waytypes 2 and 3 but nothing defined!

(https://i.imgur.com/29oXK90.png)

I was able to join PHNS4 International Version though, so it isn't immediately reproducible, but I am reporting this data for future reference.
I didn't think to get a backtrace, sorry.

Possibly relevant: in my previous session last night, I built and later demolished a ford. Waytypes 2 and 3 are track and water, so that isn't the issue.
Title: Re: Client and server crashed on join
Post by: Huitsi on August 28, 2021, 05:02:31 PM
Well I have been building tracks and crossing rivers, mostly with bridges. I did remove and landscape a bit of a stream to cross it, too.
Title: Re: Client and server crashed on join
Post by: jamespetts on August 28, 2021, 09:17:17 PM
I believe that I have recovered this. This was caused by the game detecting a purported crossing between railway and river at 7293,224, when there is no defined object for a railway/river crossing. I do not know how the game got into this state, as the creation of this invalid state is the real bug. However, I have coded a workaround that allows the game to be loaded when it gets into this state by deleting the non-water way in such a case.

I am manually updating the server now, so the server should be online again shortly. Apologies for the disruption.
Title: Re: Client and server crashed on join
Post by: Huitsi on August 29, 2021, 07:42:21 AM
FWIW the bridge there was built with tracks on both slopes that were mothballed after building and later upgraded again before the actual bridge was built.
Title: Re: Client and server crashed on join
Post by: Matthew on August 29, 2021, 03:31:59 PM
Quote from: jamespetts on August 28, 2021, 09:17:17 PM
I believe that I have recovered this.
I am manually updating the server now, so the server should be online again shortly. Apologies for the disruption.

Thank you for restarting the server and working around the invalid case, James. I suspect this was a lot more work than these two paragraphs indicate.