[Freeciv-Dev] [bug #17089] error loading old savegames (startpos)

2010-11-19 Thread pepeto

Update of bug #17089 (project freeciv):

  Status:  Ready For Test => Fixed  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

___
  Message posté via/par Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17089] error loading old savegames (startpos)

2010-11-16 Thread Matthias Pfafferodt

Update of bug #17089 (project freeciv):

 Assigned to:None => pepeto 

___

Follow-up Comment #2:

sorry; I did not want to reset this ticket ...

___

Reply to this item at:

  

___
  Nachricht geschickt von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17089] error loading old savegames (startpos)

2010-11-16 Thread Matthias Pfafferodt

Update of bug #17089 (project freeciv):

 Assigned to:  pepeto => None   

___

Follow-up Comment #1:

works like a charm!

___

Reply to this item at:

  

___
  Nachricht geschickt von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17089] error loading old savegames (startpos)

2010-11-16 Thread pepeto

Update of bug #17089 (project freeciv):

  Status:None => Ready For Test 
 Assigned to:None => pepeto 

___

Additional Item Attachment:

File name: trunk_S2_3_load_invalid_nations.diff Size:0 KB


___

Reply to this item at:

  

___
  Message posté via/par Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17089] error loading old savegames (startpos)

2010-11-16 Thread Matthias Pfafferodt

URL:
  

 Summary: error loading old savegames (startpos)
 Project: Freeciv
Submitted by: syntron
Submitted on: Dienstag 16.11.2010 um 10:59
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: svn18451
 Discussion Lock: Any
Operating System: None
 Planned Release: 2.3.0

___

Details:

after bug #13803 old savegames can't be loaded anymore if they have a player
with a wrong nation (happens quit often!):


#> ./ser -f m005p010+0001.sav.gz 
Encodings: Data=UTF-8, Local=UTF-8, Internal=UTF-8
This is the server for Freeciv version 2.2.99-dev
You can learn a lot about Freeciv at http://www.freeciv.org/
2: Loading rulesets.
2: Sergio Osmena has been added as Hard level AI-controlled player.
2: William Henry Harrison has been added as Hard level AI-controlled player.
2: Marechal Deodoro has been added as Hard level AI-controlled player.
2: Ray Bradbury has been added as Hard level AI-controlled player.
2: John Diefenbaker has been added as Hard level AI-controlled player.
2: Recaredo I has been added as Hard level AI-controlled player.
2: Constantine has been added as Hard level AI-controlled player.
2: Seni Pramoya has been added as Hard level AI-controlled player.
2: Gorthaur has been added as Hard level AI-controlled player.
2: Maurits has been added as Hard level AI-controlled player.
2: Attila has been added as Hard level AI-controlled player.
1: No nation found!
1: in nation_of_player() [nation.c::430]: This function has NULL nation
argument.
1: in nation_of_player() [nation.c::430]: assertion
'nation_check(pplayer->nation, log_do_output_for_level_at_location(LOG_ERROR,
"nation.c", 430), "nation.c", __FUNCTION__, 430)' failed.
1: Please report this message at http://gna.org/projects/freeciv/
1: in nation_plural_translation() [nation.c::167]: This function has NULL
nation argument.
1: in nation_plural_translation() [nation.c::167]: assertion
'nation_check(pnation, log_do_output_for_level_at_location(LOG_ERROR,
"nation.c", 167), "nation.c", __FUNCTION__, 167)' failed.
1: Please report this message at http://gna.org/projects/freeciv/
1: Gorthaur had invalid nation; changing to .
2: Now accepting new client connections.

For introductory help, type 'help'.
> 


The debug output:


#0  0x7f591c2c99e5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x005896af in fc_assert_fail (file=0x5f832a "nation.c",
function=0x5f8d50 "nation_of_player", line=430, 
assertion=, message=0x0) at log.c:476
level = LOG_FATAL
#2  0x004f2ba6 in nation_of_player (pplayer=0x10f3670) at
nation.c:430
__FUNCTION__ = "nation_of_player"
#3  0x004f2d29 in nation_plural_for_player (pplayer=) at nation.c:186
No locals.
#4  0x004d6240 in game_load_internal (file=) at
savegame.c:5261
pplayer = 0x10f3670
_pslot = 0xa86130
worked_tiles = 
loaded_players = 
i = 8
k = 
game_version = 
tmp_server_state = 
rstate = {v = {772277029, 1552936796, 1167570002, 1828173409,
4202898714, 2752651463, 1049242946, 487720806, 3594510812, 
3646547102, 2384710542, 3248968601, 3824154425, 3179744660,
3698448063, 2430281609, 3805947667, 2813765618, 
3832268600, 2098391196, 1535992005, 138300, 2559844334,
2163910758, 2427116820, 2455097486, 718658764, 
3059809664, 1651428400, 3211217148, 3265291924, 453608653,
316156917, 281935603, 958436717, 1347315728, 779272565, 
1877275220, 1663715292, 1942218477, 1584460360, 990327900,
3289615203, 3691130707, 1448569018, 1707754564, 
3339348545, 3445866352, 556684927, 4079786966, 3481698700,
1226878619, 3124853297, 3605799211, 3849006087, 
1400991845}, j = 7, k = 38, x = 6, is_init = true}
string = 
improvement_order_size = 68
technology_order_size = 89
civstyle = 
scen_text = 
improvement_order = 0xfe43a0
technology_order = 0xfe45d0
special_order = 0x0
base_order = 0x0
num_base_types = 0
savefile_options = 0xa98d90 "startoptions spacerace2 rulesets
diplchance_percent worklists2 map_editor known32fix turn attributes
watchtower rulesetdir client_worklists orders startunits turn_last_built
improvement_order technolo"...
bval = false
pentry = 
__FUNCTION__ = "game_load_internal"
#5  0x004d8407 in game_load (file=0xa860a0) at savegame.c:4351
was_send_city_suppressed = false
was_send_tile_suppressed = false
#6  0x0049bc82 in savegame2_load (file=0xa860a0) at savegame2.c:523
savefile_options = 
__F