bugFreeciv - Bugs: bug #21275, [packhand.c::646] assertion...

Show feedback again

bug #21275: [packhand.c::646] assertion 'citizens_count(pcity) == city_size_get(pcity)' failed.

Submitted by:  David Lowe <doctorjlowe>
Submitted on:  Fri Nov 15 21:39:16 2013  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: 2.4.0-RC2Operating System: Mac OS
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Tue Jan 13 15:39:56 2015, comment #8:

version 2.4.4
nothing unusual observed in client

in handle_city_info() [packhand.c::646]: assertion 'citizens_count(pcity) == city_size_get(pcity)' failed.

to reproduce: takeover city "Lakam Ja'"

BTW: a timestamp in assertion output would be great

(file #23508)

Szymon Siwek <sls>
Sat Feb 15 18:33:29 2014, comment #7:

Okeh, here's a savefile. Take the South Vietnamese, and move the Riflemen at (59,44) to Doolish.

I know this is somewhat off topic, but what about adding a timestamp to assertion output? It would simplify troubleshooting this kind of thing for those of us who don't have a second monitor to look at the command line while playing.

(file #20063)

David Lowe <doctorjlowe>
Sat Feb 15 17:54:48 2014, comment #6:

I just saw this again, using standard-issue 2.4.2 and experimental ruleset. I am more certain now that capturing a city was the cause and will try to set up a save game.

David Lowe <doctorjlowe>
Sat Nov 16 15:44:32 2013, comment #5:

I've only been using standard issue tar balls on this machine, not checkouts. However, you are right in that this is the experimental ruleset. I apologize for not mentioning that earlier.

David Lowe <doctorjlowe>
Sat Nov 16 11:34:21 2013, comment #4:

(I wouldn't expect 2.4.0 to be any different to 2.4.0-RC2 in this regard -- practically nothing changed.)

Jacob Nevins <jtn>
Project Administrator
Sat Nov 16 11:32:29 2013, comment #3:

> Is this same as bug #20745 or bug #20634?

Sounds more like one of the symptoms in bug #20538 to me.

Is it possible that this was a game started with a development (pre 2.4.0-beta1) version of S2_4? Maybe with the experimental ruleset?

Jacob Nevins <jtn>
Project Administrator
Fri Nov 15 23:06:58 2013, comment #2:

I wish i could say. I captured one more city before my spaceship arrived, and i didn't get the assertion again. The good thing for usability is that it didn't disturb the play session; i wasn't aware of it until i had quit and saw several of these messages sitting in Terminal. The bad thing for debugging is that i wasn't aware of it until it was too late to associate a cause.

David Lowe <doctorjlowe>
Fri Nov 15 21:44:56 2013, comment #1:

Is this same as bug #20745 or bug #20634?

Marko Lindqvist <cazfi>
Project Administrator
Fri Nov 15 21:39:16 2013, original submission:

I just started getting:

"in handle_city_info() [packhand.c::646]: assertion 'citizens_count(pcity) == city_size_get(pcity)' failed."

Note that this just started showing up after a long period of peace. I've a hunch it's happening once per city i capture, but it will take some time to isolate a test case. Then i will finally upgrade to the final release version and see if it still happens.

David Lowe <doctorjlowe>


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #23508:  citizens_count.sav.bz2 added by sls (149kB - application/x-bzip2)
file #20063:  Packhand-646.sav.bz2 added by doctorjlowe (57kB - application/x-bzip2)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by sls (Updated the item)
  • -unavailable- added by jtn (Posted a comment)
  • -unavailable- added by cazfi (Posted a comment)
  • -unavailable- added by doctorjlowe (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Jan 13 15:39:56 2015slsAttached File-=>Added citizens_count.sav.bz2, #23508
    Sat Feb 15 18:33:29 2014doctorjloweAttached File-=>Added Packhand-646.sav.bz2, #20063
    Sat Jan 11 11:32:00 2014jtnSummary[packhand.c::646] assertion=>[packhand.c::646] assertion 'citizens_count(pcity) == city_size_get(pcity)' failed.
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup