[Freeciv-tickets] [freeciv] #47992: server/advisors/autosettlers.c::929]: assertion 'recursion <= unit_list_size(pplayer->units)' failed.

Back to archive index
OSDN Ticket System norep****@osdn*****
Tue May 9 16:56:20 JST 2023


#47992: server/advisors/autosettlers.c::929]: assertion 'recursion <= unit_list_size(pplayer->units)' failed.

  Open Date: 2023-05-08 00:21
Last Update: 2023-05-09 09:56

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

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

Last Changes/Comment on this Ticket:
2023-05-09 09:56 Updated by: alain_bkr

Comment:

We have 26 workers but 27 calls to dai_auto_settler_run. (checked from saved files), 
(maybe one one was created and died during the turn, i'll check other games if needed)
Reply to cazfi
The recursion at line 1044 calls it for another unit (one 'displaced' by the original)
Ok; this is probably the reason why there are 27 call for 26 unit , there has been 1 "displaced'
The calling sequence from profile is :
                0.00    0.23       1/1           srv_main [2]
[5]     20.1    0.00    0.23       1         srv_running [5]
                0.00    0.15       3/3           end_phase [12]
                0.00    0.15       3/3           srv_running [5]
[12]    13.3    0.00    0.15       3         end_phase [12]
                0.00    0.09       3/3           end_phase [12]
[21]     8.1    0.00    0.09       3         auto_settlers_player [21]
                0.00    0.09      27/27          dai_auto_settler_run [23]
                0.00    0.09      27/27          auto_settlers_player [21]
[23]     7.9    0.00    0.09      27         dai_auto_settler_run [23]
                0.00    0.05      27/27          auto_settler_setup_work <cycle 1> [101]

                                  45             auto_settler_findwork <cycle 1> [49]
                0.00    0.05      27/27          dai_auto_settler_run [23]
[101]    0.9    0.00    0.01      72         auto_settler_setup_work <cycle 1> [101]
                                  ...
                                  46             auto_settler_findwork <cycle 1> [49]

                                  46             auto_settler_setup_work <cycle 1> [101]
[49]     3.6    0.00    0.04      46         auto_settler_findwork <cycle 1> [49]
                                  45             auto_settler_setup_work <cycle 1> [101]



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

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

Ticket details:

Freeciv version 3.1.0-beta1+ (version bêta) (origin/S3_1 a37fd14dd HEAD afdfd4fbf (+10) ) 
I found this error in serv.log (run04_clang-15/loop.230507-100844.done/Sz1-Ai002-Lm59-230507_192610.done/serv.log)

1: [T055 - 2023/05/07 19:26:26] in auto_settler_findwork() [../../../server/advisors/autosettlers.c::929]: assertion 'recursion <= unit_list_size(pplayer->units)' failed.
1: [T055 - 2023/05/07 19:26:26] in auto_settler_findwork() [../../../server/advisors/autosettlers.c::929]: Please report this message at https://osdn.net/projects/freeciv/ticket/


-- 
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/47992
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47992



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