The International Simutrans Forum

 

Author Topic: [120.1.4 Nightly r7923]Server & client crash after removing company with nettool  (Read 3176 times)

0 Members and 1 Guest are viewing this topic.

Offline River

  • *
  • Posts: 132
  • Languages: NL, EN
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

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2616
  • Languages: EN
Maybe caused by R7907? To transfer to Public service player more logic was required. Perhaps there is a null dereference there.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1179
    • Simutrans-BLOG
  • Languages: ES
@Rivers.
Why not publish the backtrace ?. ???

Offline River

  • *
  • Posts: 132
  • Languages: NL, EN

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1179
    • Simutrans-BLOG
  • Languages: ES
This seems to be stagnant I'm afraid. :-[

Offline River

  • *
  • Posts: 132
  • Languages: NL, EN
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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Is this happening consistently? Would it be possible to provide the savegame + script ?

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2616
  • Languages: EN
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.

Offline River

  • *
  • Posts: 132
  • Languages: NL, EN
it crashes when a company goes bankrupt.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
I cannot reproduce this locally. Could you please upload savegame + script somewhere?

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2616
  • Languages: EN
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.
« Last Edit: November 21, 2016, 03:58:56 AM by DrSuperGood »

Offline River

  • *
  • Posts: 132
  • Languages: NL, EN
last time i checked it where mail stops and conoys. but i can try some more examples

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1179
    • Simutrans-BLOG
  • Languages: ES
Would not it be more useful to debug using "gdb"?  ???

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1179
    • Simutrans-BLOG
  • Languages: ES

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 ¿?