Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #927510

in identity_number() [srv_main.c::1880]: assertion '250000 > retries' failed.

Added by Markus Wiesecke 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Server
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I have a big game saved in an older version which I wanted to continue, but the turn done calculations fail (after quite a long time, therefore it was 2.6.3, but as I cannot find any fix 2.6.4 it will stimm be there).
The output of -d 4 of the server while crashing is:
4: In Lubuklinggau, building Mech. Inf.. Beg of Turn shields = 62
4: fc_rand(8) = 7 at map.c:1747
4: packet_chat_msg_100: sending info about ()
4: field 'message' has changed
4: field 'event' has changed
3: sending packet type=PACKET_CHAT_MSG(25) len=104 to mw
4: COMPRESS: sending PACKET_CHAT_MSG alone (1706372 bytes total)
4: COMPRESS: STATS: alone=1706372 compression-expand=47174 compression (before/after) = 13631326/3620222
1: in identity_number() [srv_main.c::1880]: assertion '250000 > retries' failed.
2: Backtrace:
2: 0: /usr/local/lib/libfreeciv.so.0(backtrace_print+0x3b) [0x7fcb1ccac51b]
2: 1: /usr/local/lib/libfreeciv.so.0(vdo_log+0xa1) [0x7fcb1ccb3e41]
2: 2: /usr/local/lib/libfreeciv.so.0(do_log+0xaa) [0x7fcb1ccb3f1a]
2: 3: /usr/local/lib/libfreeciv.so.0(fc_assert_fail+0xb0) [0x7fcb1ccb4150]
2: 4: /usr/local/lib/libfreeciv-srv.so.0(identity_number+0x89) [0x7fcb1d085a49]
2: 5: /usr/local/lib/libfreeciv-srv.so.0(create_unit_full+0x30) [0x7fcb1d0ac700]
2: 6: /usr/local/lib/libfreeciv-srv.so.0(create_unit+0x11) [0x7fcb1d0ac961]
2: 7: /usr/local/lib/libfreeciv-srv.so.0(+0x5b53e) [0x7fcb1cff153e]
2: 8: /usr/local/lib/libfreeciv-srv.so.0(update_city_activities+0x1011) [0x7fcb1cff7ed1]
2: 9: /usr/local/lib/libfreeciv-srv.so.0(srv_main+0x1757) [0x7fcb1d08a487]
2: 10: freeciv-server(main+0x352) [0x558b05b887d2]
2: 11: /lib/x86_64-linux-gnu/libc.so.6(_libc_start_main+0xf3) [0x7fcb1c87d0b3]
2: 12: freeciv-server(_start+0x2e) [0x558b05b8937e]
4: packet_chat_msg_100: sending info about ()
4: field 'message' has changed
3: sending packet type=PACKET_CHAT_MSG(25) len=97 to mw
4: COMPRESS: sending PACKET_CHAT_MSG alone (1706469 bytes total)
4: COMPRESS: STATS: alone=1706469 compression-expand=47174 compression (before/after) = 13631326/3620222
1: Please report this message at https://www.freelists.org/list/freeciv-dev
2: Backtrace:
2: 0: /usr/local/lib/libfreeciv.so.0(backtrace_print+0x3b) [0x7fcb1ccac51b]
2: 1: /usr/local/lib/libfreeciv.so.0(vdo_log+0xa1) [0x7fcb1ccb3e41]
2: 2: /usr/local/lib/libfreeciv.so.0(do_log+0xaa) [0x7fcb1ccb3f1a]
2: 3: /usr/local/lib/libfreeciv.so.0(fc_assert_fail+0x150) [0x7fcb1ccb41f0]
2: 4: /usr/local/lib/libfreeciv-srv.so.0(identity_number+0x89) [0x7fcb1d085a49]
2: 5: /usr/local/lib/libfreeciv-srv.so.0(create_unit_full+0x30) [0x7fcb1d0ac700]
2: 6: /usr/local/lib/libfreeciv-srv.so.0(create_unit+0x11) [0x7fcb1d0ac961]
2: 7: /usr/local/lib/libfreeciv-srv.so.0(+0x5b53e) [0x7fcb1cff153e]
2: 8: /usr/local/lib/libfreeciv-srv.so.0(update_city_activities+0x1011) [0x7fcb1cff7ed1]
2: 9: /usr/local/lib/libfreeciv-srv.so.0(srv_main+0x1757) [0x7fcb1d08a487]
2: 10: freeciv-server(main+0x352) [0x558b05b887d2]
2: 11: /lib/x86_64-linux-gnu/libc.so.6(
_libc_start_main+0xf3) [0x7fcb1c87d0b3]
2: 12: freeciv-server(start+0x2e) [0x558b05b8937e]
4: packet_chat_msg_100: sending info about ()
4: field 'message' has changed
4: field 'event' has changed
3: sending packet type=PACKET_CHAT_MSG(25) len=59 to mw
4: COMPRESS: sending PACKET_CHAT_MSG alone (1706528 bytes total)
4: COMPRESS: STATS: alone=1706528 compression-expand=47174 compression (before/after) = 13631326/3620222
4: packet_chat_msg_100: sending info about ()
4: field 'message' has changed
3: sending packet type=PACKET_CHAT_MSG(25) len=97 to mw
4: COMPRESS: sending PACKET_CHAT_MSG alone (1706625 bytes total)
4: COMPRESS: STATS: alone=1706625 compression-expand=47174 compression (before/after) = 13631326/3620222
0: Exhausted city and unit numbers!
2: Backtrace:
2: 0: /usr/local/lib/libfreeciv.so.0(backtrace_print+0x3b) [0x7fcb1ccac51b]
2: 1: /usr/local/lib/libfreeciv.so.0(vdo_log+0xa1) [0x7fcb1ccb3e41]
2: 2: /usr/local/lib/libfreeciv.so.0(do_log+0xaa) [0x7fcb1ccb3f1a]
2: 3: /usr/local/lib/libfreeciv-srv.so.0(identity_number+0xaf) [0x7fcb1d085a6f]
2: 4: /usr/local/lib/libfreeciv-srv.so.0(create_unit_full+0x30) [0x7fcb1d0ac700]
2: 5: /usr/local/lib/libfreeciv-srv.so.0(create_unit+0x11) [0x7fcb1d0ac961]
2: 6: /usr/local/lib/libfreeciv-srv.so.0(+0x5b53e) [0x7fcb1cff153e]
2: 7: /usr/local/lib/libfreeciv-srv.so.0(update_city_activities+0x1011) [0x7fcb1cff7ed1]
2: 8: /usr/local/lib/libfreeciv-srv.so.0(srv_main+0x1757) [0x7fcb1d08a487]
2: 9: freeciv-server(main+0x352) [0x558b05b887d2]
2: 10: /lib/x86_64-linux-gnu/libc.so.6(
_libc_start_main+0xf3) [0x7fcb1c87d0b3]
2: 11: freeciv-server(_start+0x2e) [0x558b05b8937e]


Related issues

Has duplicate Freeciv - Feature #880100: Out of unit numbersClosed

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Has duplicate Freeciv - Bug #697530: Trouble loading huge saved game from older version into version 2.5.9 or 2.6.xClosed

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Marko Lindqvist 5 months ago

Can you attach the savegame?

#2 Updated by Markus Wiesecke 5 months ago

Well, as said it is a big one but I think the bug is: 250000 is set as the max if identidy numbers, but the used bv can handle only 64k of entries here, so the assignment fails once the numbers reach 65535 though. The number of cities is 13670 in that came, the number of units is 50771 and the number of players 128, the map is 500x500.

#3 Updated by Marko Lindqvist 5 months ago

Markus Wiesecke wrote:

the used bv can handle only 64k of entries here

Where/How is that? What I see is:

BV_DEFINE(bv_identity_numbers, IDENTITY_NUMBER_SIZE);

#4 Updated by Marko Lindqvist 4 months ago

Marko Lindqvist wrote:

Markus Wiesecke wrote:

the used bv can handle only 64k of entries here

Where/How is that? What I see is:

Answering myself:

unsigned short identity_number;

#5 Updated by Marko Lindqvist 4 months ago

#6 Updated by Marko Lindqvist 4 months ago

#7 Updated by Marko Lindqvist 4 months ago

  • Has duplicate Bug #697530: Trouble loading huge saved game from older version into version 2.5.9 or 2.6.x added

#8 Updated by Marko Lindqvist 4 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF