Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] (PR#18257) get_invention() assert failed
Home

[Freeciv-Dev] (PR#18257) get_invention() assert failed

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#18257) get_invention() assert failed
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Mon, 3 Jul 2006 10:06:43 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18257 >


assert (tech == A_FUTURE || (tech >= 0 && tech < 
game.control.num_tech_types),
     "../../freeciv-patch/common/tech.c", line=63)
failed.

Reproducible with revision 12042 + patch #18222 + attached autogame, but 
only in year 2004.
My guess is that it has something to do with initial science bonus when 
establishing trade routes.


#1  0x004c2c01 in get_invention (pplayer=0x645758, tech=199) at 
../../freeciv-patch/common/tech.c:62
         pplayer = (const struct player *) 0x645758
         tech = 199
#2  0x00422fa0 in choose_tech (plr=0x645758, tech=199) at 
../../freeciv-patch/server/techtools.c:529
         research = (struct player_research *) 0xc7
         plr = (struct player *) 0x645758
         tech = 6575960
#3  0x004e3da1 in ai_manage_tech (pplayer=0x645758) at 
../../freeciv-patch/ai/aitech.c:193
         choice = {choice = 199, want = 0, current_want = -2515}
         goal = {choice = 40, want = 2345, current_want = 2345}
         research = (struct player_research *) 0x5b2634
         penalty = 0
#4  0x004c9d19 in ai_do_last_activities (pplayer=0x645758) at 
../../freeciv-patch/ai/aihand.c:452
         pplayer = (struct player *) 0x645758
         ai = (struct ai_data *) 0x0
         maxrate = 100
         can_celebrate = 17
         total_cities = 55
         trade = 609
         expenses = 165
         maxrate = 100
         can_celebrate = 17
         total_cities = 55
         trade = 609
         expenses = 165
         maxrate = 100
         can_celebrate = 17
         total_cities = 55
         trade = 609
         expenses = 165
         maxrate = 100
         can_celebrate = 17
         total_cities = 55
         trade = 609
         expenses = 165
#5  0x00409246 in main_loop () at ../../freeciv-patch/server/srv_main.c:692
         pplayer = (struct player *) 0x645758
         i = 5
         eot_timer = (struct timer *) 0x101c4308
         save_counter = 5
         is_new_turn = true
#6  0x00409e1a in srv_main () at ../../freeciv-patch/server/srv_main.c:1961
         pplayer = (struct player *) 0x0
         PI_p_itr = 0
         player_name = "Stjepan TomaÅ¡\000rtín\000ir\000(î\"\000å4@"
         PI_p_itr = 10
         PI_p_itr = 10
         player_name = "Stjepan TomaÅ¡\000rtín\000ir\000(î\"\000å4@"
         player_name = "Stjepan TomaÅ¡\000rtín\000ir\000(î\"\000å4@"
         PI_p_itr = 10
#7  0x0040151e in main (argc=3, argv=0x10022288) at 
../../freeciv-patch/server/civserver.c:256
         inx = 3
         showhelp = false
         showvers = false
         option = 0x521470 "freeciv_server"
         argc = 3
         argv = (char **) 0x10022288


  - ML



set savename hardReg

set timeout -1
hard
create Uber
#normal
create Cazfi
#novice
create Me
#easy
create Friendo
set aifill 10
set saveturns 25
set endyear 2800
set startunits c
set generator 5

#normal

set gameseed  1101920552
set mapseed   1723760976

set gamelog   30

start

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#18257) get_invention() assert failed, Marko Lindqvist <=