bugGlobulation 2 - Bugs: bug #24625, Crash with old maps

 
 

bug #24625: Crash with old maps

Submitter:  Kieran <k776>
Submitted:  Tue 21 Oct 2008 11:48:46 PM UTC
   
 
Severity:  2 - Minor Status:  In Progress
Assigned to:  genixpro Open/Closed:  Open
Release:  0.9.4 (Beta 4) Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 06 Jan 2009 07:45:04 PM UTC, comment #2: 

hmm... in my case the crashing map has version 0.81
a newly saved map has version 0.79

so i guess there is some other problem that caused those maps being stored with future version numbers.

i vote to close this bug. wont fix. we should nevertheless investigate how this could have happened.

no idea where the 0.81 came from :(

Leo Wandersleb <giszmo>
Group Member
Tue 06 Jan 2009 07:25:11 PM UTC, comment #1: 

from debugging i would say this has nothing to do with -test-games-nox. try opening your map "b" manually and you get the same crash.

it has to do with the expected mission briefing that is not contained in older save games.

Leo Wandersleb <giszmo>
Group Member
Tue 21 Oct 2008 11:48:46 PM UTC, original submission:  

Got the following when running test-games-nox on beta4 codebase

--------------------------------------------------------

Random Seed initial: 1224632802
Randomly Chosen Map: b
Random Seed gameheader: 1224632802    Player: k776 for team 0
    Player: Nicowar 0 for team 1
    Player: ReachToInfinity 1 for team 2
    Player: Nicowar 2 for team 3
    Player: Warrush 3 for team 0
glob2: libgag/src/BinaryStream.cpp:107: virtual std::string GAGCore::BinaryInputStream::readText(const char*): Assertion `len < 1024*1024' failed.
[New Thread 0xb77b96d0 (LWP 11126)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb77b96d0 (LWP 11126)]
0xf57fe416 in __kernel_vsyscall ()
(gdb) bt
#0  0xf57fe416 in __kernel_vsyscall ()
#1  0xb7b00900 in raise () from /lib/libc.so.6
#2  0xb7b02238 in abort () from /lib/libc.so.6
#3  0xb7af970e in __assert_fail () from /lib/libc.so.6
#4  0x08310d34 in GAGCore::BinaryInputStream::readText (this=0x8453860, name=0x835f66b "briefing") at libgag/src/BinaryStream.cpp:107
#5  0x080fd392 in Game::load (this=0xbfaad6ec, stream=0x8453860) at src/Game.cpp:943
#6  0x08124761 in GameGUI::load (this=0xbfaad6b0, stream=0x8453860, ignoreGUIData=false) at src/GameGUI.cpp:4127
#7  0x08124e42 in GameGUI::loadFromHeaders (this=0xbfaad6b0, mapHeader=@0xbfaad0d0, gameHeader=@0xbfaaca90, setGameHeader=true, ignoreGUIData=false, saveAI=false) at src/GameGUI.cpp:4109
#8  0x080ed111 in Engine::initGame (this=0xbfaad6b0, mapHeader=@0xbfaad0d0, gameHeader=@0xbfaaca90, setGameHeader=true, ignoreGUIData=false, saveAI=false) at src/Engine.cpp:595
#9  0x080ef4b8 in Engine::createRandomGame (this=0xbfaad6b0) at src/Engine.cpp:210
#10 0x08148f0b in Glob2::runTestGames (this=0xbfab7223) at src/Glob2.cpp:146
#11 0x081494e3 in Glob2::run (this=0xbfab7223, argc=2, argv=0xbfab72c4) at src/Glob2.cpp:242
#12 0x08149ea6 in main (argc=Cannot access memory at address 0x2b76
) at src/Glob2.cpp:409
(gdb) frame 0
#0  0xf57fe416 in __kernel_vsyscall ()
(gdb) frame 1
#1  0xb7b00900 in raise () from /lib/libc.so.6
(gdb) frame 2
#2  0xb7b02238 in abort () from /lib/libc.so.6
(gdb) frame 3
#3  0xb7af970e in __assert_fail () from /lib/libc.so.6
(gdb) frame 4
#4  0x08310d34 in GAGCore::BinaryInputStream::readText (this=0x8453860, name=0x835f66b "briefing") at libgag/src/BinaryStream.cpp:107
107                     assert(len < 1024*1024);
(gdb) frame 5
#5  0x080fd392 in Game::load (this=0xbfaad6ec, stream=0x8453860) at src/Game.cpp:943
943                     missionBriefing = stream->readText("briefing");
(gdb) frame 6
#6  0x08124761 in GameGUI::load (this=0xbfaad6b0, stream=0x8453860, ignoreGUIData=false) at src/GameGUI.cpp:4127
4127            bool result = game.load(stream);
(gdb) frame 7
#7  0x08124e42 in GameGUI::loadFromHeaders (this=0xbfaad6b0, mapHeader=@0xbfaad0d0, gameHeader=@0xbfaaca90, setGameHeader=true, ignoreGUIData=false, saveAI=false) at src/GameGUI.cpp:4109
4109            bool res = load(stream, ignoreGUIData);
(gdb) frame 8
#8  0x080ed111 in Engine::initGame (this=0xbfaad6b0, mapHeader=@0xbfaad0d0, gameHeader=@0xbfaaca90, setGameHeader=true, ignoreGUIData=false, saveAI=false) at src/Engine.cpp:595
595             if (!gui.loadFromHeaders(mapHeader, gameHeader, setGameHeader, ignoreGUIData, saveAI))
(gdb)

Kieran <k776>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by giszmo (Posted a comment)
  • -email is unavailable- added by k776 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-01-06 giszmo Dependencies- bugs #22134 is dependent
    2009-01-06 giszmo Severity4 - Important 2 - Minor
        StatusNone In Progress
        SummaryCrash with running -test-games-nox on beta4 Crash with old maps
    2008-10-27 k776 ReleaseNone 0.9.4 (Beta 4)

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code