The International Simutrans Forum

Development => Bug Reports => Topic started by: River on October 27, 2016, 11:51:00 AM

Title: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: River on October 27, 2016, 11:51:00 AM
Hey,

With build r7923 or maybe earlyer the server (and client) crash after i remove a company with assets (without the senario script gives an error) using the nettool. The nettool is an older version but hasn't given any problems before. There is no real information in the logfiles.

the server is running the region senario.

River
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: DrSuperGood on October 27, 2016, 12:08:01 PM
Maybe caused by R7907? To transfer to Public service player more logic was required. Perhaps there is a null dereference there.
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: Yona-TYT on November 05, 2016, 09:53:24 PM
@Rivers.
Why not publish the backtrace ?. ???
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: River on November 06, 2016, 09:00:44 AM
all i got is this file: https://www.dropbox.com/s/41mn5ai58tvmymp/simu-server13358-crash%2026-10.log?dl=1
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: Yona-TYT on November 19, 2016, 12:34:24 AM
This seems to be stagnant I'm afraid. :-[
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: River on November 19, 2016, 10:00:55 AM
i really hope people can fix this, without companies being able to go bankrupt its gone cause problems for companies that can't be saved.
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: Dwachs on November 19, 2016, 03:50:35 PM
Is this happening consistently? Would it be possible to provide the savegame + script ?
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: DrSuperGood on November 19, 2016, 04:20:01 PM
Quote
i really hope people can fix this, without companies being able to go bankrupt its gone cause problems for companies that can't be saved.
Is it crashing when any company goes bankrupt? Or only when companies are forcefully removed with nettool?

If it is any company going bankrupt it might be due to R7907. Instead of objects going to NULL player they go to the public service player. Although what was changed seemed logical, it is possible there are some undocumented/obscure behaviour at work.
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: River on November 20, 2016, 10:03:48 AM
it crashes when a company goes bankrupt.
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: Dwachs on November 20, 2016, 04:41:51 PM
I cannot reproduce this locally. Could you please upload savegame + script somewhere?
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: DrSuperGood on November 20, 2016, 08:22:42 PM
Quote
it crashes when a company goes bankrupt.
What sort of stuff do the companies own? For example do they own ways under public stops? Or maybe bridges with other player convoys on them at the time? These were both cases recently modified in an attempt to change ownership to the public service instead of to NULL.
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: River on November 21, 2016, 09:07:16 AM
last time i checked it where mail stops and conoys. but i can try some more examples
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: Yona-TYT on December 23, 2016, 09:48:04 PM
Would not it be more useful to debug using "gdb"?  ???
Title: Re: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool
Post by: Yona-TYT on February 26, 2017, 06:39:26 PM

I suspect that it can be a problem with the "text label", but I do not know how to use "nettool" to replicate the error.


I wonder if this worked well in early versions of the script ¿?