URL:
  <http://gna.org/bugs/?17089>

                 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  0x00007f591c2c99e5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x00000000005896af in fc_assert_fail (file=0x5f832a "nation.c",
function=0x5f8d50 "nation_of_player", line=430, 
    assertion=<value optimized out>, message=0x0) at log.c:476
        level = LOG_FATAL
#2  0x00000000004f2ba6 in nation_of_player (pplayer=0x10f3670) at
nation.c:430
        __FUNCTION__ = "nation_of_player"
#3  0x00000000004f2d29 in nation_plural_for_player (pplayer=<value optimized
out>) at nation.c:186
No locals.
#4  0x00000000004d6240 in game_load_internal (file=<value optimized out>) at
savegame.c:5261
        pplayer = 0x10f3670
        _pslot = 0xa86130
        worked_tiles = <value optimized out>
        loaded_players = <value optimized out>
        i = 8
        k = <value optimized out>
        game_version = <value optimized out>
        tmp_server_state = <value optimized out>
        rstate = {v = {772277029, 1552936796, 1167570002, 1828173409,
4202898714, 2752651463, 1049242946, 487720806, 3594510812, 
            3646547102, 2384710542, 3248968601, 3824154425, 3179744660,
3698448063, 2430281609, 3805947667, 2813765618, 
            3832268600, 2098391196, 1535992005, 1383444400, 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 = <value optimized out>
        improvement_order_size = 68
        technology_order_size = 89
        civstyle = <value optimized out>
        scen_text = <value optimized out>
        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 = <value optimized out>
        __FUNCTION__ = "game_load_internal"
#5  0x00000000004d8407 in game_load (file=0xa860a0) at savegame.c:4351
        was_send_city_suppressed = false
        was_send_tile_suppressed = false
#6  0x000000000049bc82 in savegame2_load (file=0xa860a0) at savegame2.c:523
        savefile_options = <value optimized out>
        __FUNCTION__ = "savegame2_load"
        loadtimer = 0xfe4360
#7  0x00000000004138bb in load_command (caller=0x0, filename=<value optimized
out>, check=false) at stdinhand.c:3502
        loadtimer = 0xfe42e0
        uloadtimer = 0xfe4320
        file = 0xa860a0
        arg = "m005p010+0001.sav.gz", '\000' <repeats 36 times>"\304,
\001\354\034Y\177", '\000' <repeats 75 times>, "
\000\000\000\000\000\000\030\037\000\000\000\000\000\000\030\037", '\000'
<repeats 14 times>, "\005\000\000\000\000\000\000\000\000 
\000\000\000\000\000\000@ \000\000\000\000\000\200\060
\000\000\000\000\000\b1 \000\000\000\000\000\000
\000\000\000\000\000\000\003", '\000' <repeats 127 times>,
"M\363\353\034Y\177", '\000' <repeats 42 times>"\330,
\332\n\035Y\177\000\000/\000\000\000\000\000\000\000\035F\354\034Y\177\000\000\000\000\000\000\000\000\000\000`\337\n\035Y\177\000\000\022",
'\000' <repeats 11 times>, "\001\000\000\000,", '\000' <repeats 15 times>...
        __FUNCTION__ = "load_command"
#8  0x000000000040a4a1 in srv_prepare () at srv_main.c:2251
No locals.
#9  srv_main () at srv_main.c:2517
        __FUNCTION__ = "srv_main"
#10 0x00000000004041c9 in main (argc=<value optimized out>,
argv=0x7fff39f555a8) at civserver.c:376
        inx = 4
        showhelp = <value optimized out>
        showvers = <value optimized out>
        option = <value optimized out>
        __FUNCTION__ = "main"


Attached is an exemplary savegame.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Dienstag 16.11.2010 um 10:59  Name: m005p010+0001.sav.gz  Size: 69kB  
By: syntron

<http://gna.org/bugs/download.php?file_id=11229>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17089>

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


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

Reply via email to