[Freeciv-tickets] [freeciv] #43462: server.needs_arrange sanity checks are eating up gigabytes in the log files

Back to archive index
OSDN Ticket System norep****@osdn*****
Wed Jan 5 19:18:20 JST 2022


#43462: server.needs_arrange sanity checks are eating up gigabytes in the log files

  Open Date: 2021-12-22 17:14
Last Update: 2022-01-05 19:18

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/43462
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43462

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-01-05 19:18 Updated by: lexxie9952

Comment:

I've tortured my brain for over a week on this one. Here is what I (think I) know so far
FCW like other live servers, has switched to WYSIWYG production sequence; as a forced necessity after discovery of how the CMA can exploit the output sequence and absolutely ludicrously ridiculous levels. (Like 300%, it breaks the game.)
We implemented a version similar to what https://www.hostedredmine.com/issues/771900 does, in order to do this. A big difference is our server makes WYSIWYG an optional game server setting so has some conditional processing in it.
The city sanity check stuff is probably written to work correctly on the legacy output sequence, and is tripping city sanity issues when using WYSIWYG output.
This means the ec_info log and other error logs get absolutely with verbose sanity checks. Enough to cause the save game to crash during the phase where it saves all the ec_info stuff.
This causes repeated segfaults and game restarts.
For now FCW has no other choice but the very disagreeable one, to disable lots of the city sanity check logs and stuff.
I really hope I can get some help and  better understanding into all this CNA_NOT, CNA_NORMAL, and what's the higher meta-logic to it all, so I could maybe understand how to fix this for any server using WYSIWYG, because, WYSIWYG is the future and should surely be on the TO DO list to support it for 3.2 server.
Cheers

---------------------------------------------------------------------
Ticket Status:

      Reporter: lexxie9952
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: (None)
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

1: in city_increase_size() [../../freeciv/server/cityturn.c::1126]: assertion 'pcity->server.needs_arrange == CNA_NOT' failed.
1: in city_increase_size() [../../freeciv/server/cityturn.c::1126]: (  59,    7) in "Bergomum"6
1: in city_increase_size() [../../freeciv/server/cityturn.c::1126]: Please report this message at https://www.hostedredmine.com/projects/freeciv
1: in city_reduce_size() [../../freeciv/server/cityturn.c::967]: assertion 'pcity->server.needs_arrange == CNA_NOT' failed.
1: in city_reduce_size() [../../freeciv/server/cityturn.c::967]: (   5,   12) in "Sirmium"6
1: in city_reduce_size() [../../freeciv/server/cityturn.c::967]: Please report this message at https://www.hostedredmine.com/projects/freeciv
city_increase_size() and city_reduce_size() in cityturn.c are lines 1126 and lines 967.
These are the two places that CONSTANTLY trigger it.  Note this was after trying to patch... 
"Wait until city is in sane state before sending info packets" 9cf91898a7fb1a1f048539ee15791d41d56070f3
...to hopefully fix it, but it didn't fix it.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/43462
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43462



More information about the Freeciv-tickets mailing list
Back to archive index