[Freeciv-Dev] et_government: Assertion `game.government_count > 0 && gov
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Full_Name: Markus Linnala
Version: latest cvs
OS: Linux 2.2
Submission from: (NULL) (193.166.82.72)
How to reproduce:
start server and client
make all players ai, including the one at client
start
play one round
quit server
start server
connect client
say 'ai player'
Problem is that you set something that is not yet created in the client.
#4 0x8087daf in get_government (gov=127)
at /usr/src/freeciv/freeciv/common/government.c:152
152 assert(game.government_count > 0 && gov >= 0 && gov <
game.government_count);
(gdb) print gov
$5 = 1077502388
(gdb) print game.government_count
$6 = 6
(gdb) up
#5 0x8078979 in set_bulb_sol_government (bulb=0, sol=0, government=127)
at /usr/src/freeciv/freeciv/client/gui-gtk/mapview.c:450
450 gov_sprite = get_government(government)->sprite;
(gdb) print government
$7 = 127
(gdb) up
#6 0x80782f0 in update_info_label ()
at /usr/src/freeciv/freeciv/client/gui-gtk/mapview.c:262
262 set_bulb_sol_government(8*game.player_ptr->research.researched/
(gdb) print game.player_ptr
$8 = (struct player *) 0x80d0744
(gdb) print *game.player_ptr
$9 = {player_no = 0, name = "Gandhi\000e", '\000' <repeats 23 times>,
username = "UserName", '\000' <repeats 23 times>, is_male = 1,
government = 127, nation = 63, turn_done = 0, nturns_idle = 0, is_alive = 1,
got_tech = 0, revolution = 0, capital = 0, embassy = 0, units = {list = {
nelements = 0, null_link = {next = 0x80d07b4, prev = 0x80d07b4,
dataptr = 0x0}, head_link = 0x80d07b4, tail_link = 0x80d07b4}},
cities = {list = {nelements = 0, null_link = {next = 0x80d07cc,
prev = 0x80d07cc, dataptr = 0x0}, head_link = 0x80d07cc,
tail_link = 0x80d07cc}}, score = {happy = 0, content = 0, unhappy = 0,
taxmen = 0, scientists = 0, elvis = 0, wonders = 0, techs = 0,
techout = 0, landarea = 0, settledarea = 0, population = 0, cities = 0,
units = 0, pollution = 0, literacy = 0, bnp = 0, mfg = 0, spaceship = 0},
economic = {gold = 0, tax = 50, science = 50, luxury = 0}, research = {
researched = 0, researchpoints = 0, researching = 0,
inventions = '\000' <repeats 88 times>}, spaceship = {structurals = 0,
components = 0, modules = 0, structure = '\000' <repeats 31 times>,
fuel = 0, propulsion = 0, habitation = 0, life_support = 0,
solar_panels = 0, state = SSHIP_NONE, launch_year = 9999, population = 0,
mass = 0, support_rate = 0, energy_rate = 0, success_rate = 0,
travel_time = 0}, future_tech = 0, ai = {control = 1, tech_goal = 0,
prev_gold = 0, maxbuycost = 0, tech_want = {0 <repeats 90 times>},
tech_turns = {0 <repeats 90 times>}, handicap = 0, skill_level = 0,
fuzzy = 0, expand = 100, warmth = 0}, is_connected = 1, conn = 0x81bff08,
addr = "localhost\000-.---", '\000' <repeats 16 times>}
--
//
Markus
- [Freeciv-Dev] et_government: Assertion `game.government_count > 0 && gov >= 0 && gov < game.government_count' failed. (PR#128),
maage+freeciv <=
|
|