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

                 Summary: crash when saving the game in campaign mission
alpha 4
                 Project: Warzone Resurrection Project
            Submitted by: jandd
            Submitted on: Freitag 18.04.2008 um 22:04
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: svn/trunk
        Operating System: GNU/Linux
         Planned Release: None

    _______________________________________________________

Details:

the game crashes when trying to save the game in alpha mission 4

here is a full gdb session log:

$ LD_LIBRARY_PATH=/usr/lib/debug:$LD_LIBRARY_PATH LC_ALL=C LANG=C gdb
~/games/bin/warzone2100 
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/usr/lib/debug/libthread_db.so.1".
(gdb) run
Starting program: /home/jan/games/bin/warzone2100 
[Thread debugging using libthread_db enabled]
[New Thread 0x2aead6c08ca0 (LWP 1046)]
[New Thread 0x40804950 (LWP 1051)]
[New Thread 0x410aa950 (LWP 1052)]
warning : Sequence display is currently disabled (sequences/cam1/c001.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/c001.rpl
warning : openLoadFile: optional file sequenceaudio/BrfCom.txt could not be
opened: File not found
warning : openLoadFile: optional file sequenceaudio/cam1/cam1ascv.txt could
not be opened: File not found
warning : Sequence display is currently disabled (sequences/BrfCom.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/BrfCom.rpl
warning : Sequence display is currently disabled
(sequences/cam1/cam1ascv.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/cam1ascv.rpl
warning : eventReset: 3 contexts still allocated at reset
error   : Returned savegame/20080418-03.gam
warning : openLoadFile: optional file sequenceaudio/cam1/cam1b_P.txt could
not be opened: File not found
warning : openLoadFile: optional file sequenceaudio/cam1/cam1b.txt could not
be opened: File not found
warning : Sequence display is currently disabled
(sequences/cam1/cam1b_P.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/cam1b_P.rpl
warning : Sequence display is currently disabled (sequences/cam1/cam1b.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/cam1b.rpl
warning : eventReset: 4 contexts still allocated at reset
error   : Returned savegame/20080418-05.gam
warning : openLoadFile: optional file sequenceaudio/BrfCom.txt could not be
opened: File not found
warning : openLoadFile: optional file sequenceaudio/cam1/CAM1bpow.txt could
not be opened: File not found
warning : Sequence display is currently disabled (sequences/BrfCom.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/BrfCom.rpl
warning : Sequence display is currently disabled
(sequences/cam1/CAM1bpow.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/CAM1bpow.rpl
warning : openLoadFile: optional file sequenceaudio/cam1/sub1_1P.txt could
not be opened: File not found
warning : openLoadFile: optional file sequenceaudio/cam1/sub1_1.txt could not
be opened: File not found
warning : Sequence display is currently disabled
(sequences/cam1/sub1_1P.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/sub1_1P.rpl
warning : Sequence display is currently disabled (sequences/cam1/sub1_1.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/sub1_1.rpl
warning : eventReset: 2 contexts still allocated at reset
warning : openLoadFile: optional file sequenceaudio/inflight.txt could not be
opened: File not found
warning : Sequence display is currently disabled (sequences/inflight.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/inflight.rpl
warning : eventReset: 3 contexts still allocated at reset
error   : Returned savegame/20080418-07.gam
warning : openLoadFile: optional file sequenceaudio/BrfCom.txt could not be
opened: File not found
warning : openLoadFile: optional file sequenceaudio/cam1/sub1_2.txt could not
be opened: File not found
warning : Sequence display is currently disabled (sequences/BrfCom.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/BrfCom.rpl
warning : Sequence display is currently disabled (sequences/cam1/sub1_2.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/sub1_2.rpl
warning : eventReset: 2 contexts still allocated at reset
warning : openLoadFile: optional file sequenceaudio/IncomTns.txt could not be
opened: File not found
warning : openLoadFile: optional file sequenceaudio/cam1/Sub12pt2.txt could
not be opened: File not found
warning : Sequence display is currently disabled (sequences/IncomTns.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/IncomTns.rpl
warning : Sequence display is currently disabled
(sequences/cam1/Sub12pt2.rpl)
warning : seq_StartFullScreenVideo: unable to initialise sequence
sequences/cam1/Sub12pt2.rpl
error   : Invalid value type in buffer
error   : Group trace:
error   :   #0: 0xff EN     0 default:false
error   :   #1: 0x03 GR     1 default:false
error   : While reading 'savegame/20080418-09/game.wzs' using definition file
'tagdefinitions/savegame/map.def'
warzone2100: tagfile.c:500: scanforward: Assertion `!"tagfile error"'
failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x2aead6c08ca0 (LWP 1046)]
0x00002aead33e81d5 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
        in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt full
#0  0x00002aead33e81d5 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
        pid = <value optimized out>
        selftid = <value optimized out>
#1  0x00002aead33e9680 in *__GI_abort () at abort.c:88
        act = {__sigaction_handler = {sa_handler = 0x2aead34c44f3
<_libc_intl_domainname>, sa_sigaction = 0x2aead34c44f3
<_libc_intl_domainname>}, sa_mask = {__val = {47188055712502, 
      47188058019936, 6989871, 140736839910128, 6989861, 140736839910368,
47188054995331, 206158430232, 140736839910384, 140736839910160,
47188054911880, 206158430256, 
      140736839910408, 93976288, 113, 96}}, sa_flags = 16843008, sa_restorer
= 0x7fffd9599732}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00002aead33e175f in *__GI___assert_fail (assertion=0x6aa82f "!\"tagfile
error\"", file=0x6aa825 "tagfile.c", line=500, function=0x6aa9ae
"scanforward") at assert.c:78
        buf = 0x599f6e0 ""
        errstr = "Unexpected error.\n"
#3  0x00000000005dc586 in scanforward (tag=255 '�') at tagfile.c:500
        read_tag = 68 'D'
        tag_type = 248 '
        readsize = 1
        fpos = 81325
        array_size = 1
        groupskip = 2
        __PRETTY_FUNCTION__ = "scanforward"
#4  0x00000000005dca39 in tagReadLeave (tag=3 '\003') at tagfile.c:599
        __PRETTY_FUNCTION__ = "tagReadLeave"
#5  0x0000000000496bd9 in mapLoadTagged (pFileName=0x7fffd9598650
"savegame/20080418-09/game.wzs") at map.c:1003
        count = 0
        i = 0
        mapx = 64
        mapy = 64
        cam = {0, 0, 0}
        definition = 0x6634c8 "tagdefinitions/savegame/map.def"
        psTile = (MAPTILE *) 0x0
        __FUNCTION__ = "mapLoadTagged"
        __PRETTY_FUNCTION__ = "mapLoadTagged"
#6  0x000000000052da24 in writeMapFile (fileName=0x10b8180
"savegame/20080418-09/game.map") at game.c:3889
        pFileData = 0x5c89b20 "map #"
        fileSize = 12368
        fileNameMod =
"savegame/20080418-09/game.wzs\000\000\000L\207Y��\177\000\000�>���*\000\000\000�\000\000\000\000\000\000�\206\002\000\000\000\000\000\n\000\000\000\000\000\000\000��o��*\000\0000",
'\0' <repeats 15 times>,
"\200\002o\001\000\000\000\000L\207Y��\177\000\000\000\000\000\000\000\000\000\000
\231B��*\000\000\033\000\000\000\000\000\000\000��o��*\000\000\001\000\000\000\000\000\000\000\200\002o\001",
'\0' <repeats 12 times>,
"��o��*\000\000\200\234.\001\000\000\000\000\200\002o\001\000\000\000\000\001\000\000\000\000\000\000\000L\207Y��\177\000"...
        dot = 0x7fffd9598669 ".wzs"
---Type <return> to continue, or q <return> to quit---
        status = true
#7  0x000000000052ccf1 in saveGame (aFileName=0x10b8180
"savegame/20080418-09/game.map", saveType=4) at game.c:3563
        fileExtension = 21
        psDroid = (DROID *) 0xbc8ef8c600000000
        psNext = (DROID *) 0x541516
#8  0x0000000000491428 in gameLoop () at loop.c:521
        psCurr = (DROID *) 0x100000024
        psNext = (DROID *) 0x7fffd95fe75e
        psCBuilding = (STRUCTURE *) 0x0
        psNBuilding = (STRUCTURE *) 0x2aead173a0fc
        psCFeat = (FEATURE *) 0xd
        psNFeat = (FEATURE *) 0x2aead178169e
        i = 10986
        widgval = 3544446234
        quitting = 0
        intRetVal = INT_NONE
        clearMode = 4
        __FUNCTION__ = "gameLoop"
        __PRETTY_FUNCTION__ = "gameLoop"
#9  0x000000000049351a in runGameLoop () at main.c:654
No locals.
#10 0x0000000000493906 in mainLoop () at main.c:828
        event = {type = 2 '\002', active = {type = 2 '\002', gain = 0 '\0', 
state =
1 '\001'}, key = {type = 2 '\002', which = 0 '\0', state = 1 '\001', keysym =
{scancode = 36 '$', 
      sym = SDLK_RETURN, mod = KMOD_NUM, unicode = 13}}, motion = {type = 2
'\002', which = 0 '\0', state = 1 '\001', x = 36, y = 0, xrel = 13, yrel =
0}, button = {type = 2 '\002', 
    which = 0 '\0', button = 1 '\001', state = 0 '\0', x = 36, y = 0}, jaxis
= {type = 2 '\002', which = 0 '\0', axis = 1 '\001', value = 36}, jball =
{type = 2 '\002', 
    which = 0 '\0', ball = 1 '\001', xrel = 36, yrel = 0}, jhat = {type = 2
'\002', which = 0 '\0', hat = 1 '\001', value = 0 '\0'}, jbutton = {type = 2
'\002', which = 0 '\0', 
    button = 1 '\001', state = 0 '\0'}, resize = {type = 2 '\002', w = 36, h
= 13}, expose = {type = 2 '\002'}, quit = {type = 2 '\002'}, user = {type = 2
'\002', code = 36, 
    data1 = 0x10000000000d, data2 = 0xd}, syswm = {type = 2 '\002', msg =
0x10000000000d}}
#11 0x0000000000493cb7 in main (argc=1, argv=0x7fffd9598a28) at main.c:974
No locals.
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) quit





    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to