bugGlobulation 2 - Bugs: bug #22571, Game crashes when loading a map...

 
 

bug #22571: Game crashes when loading a map that isn't there.

Submitted by:  Kieran <k776>
Submitted on:  Wed 12 Mar 2008 08:09:47 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Bradley Arsenault <genixpro>Open/Closed: Closed
Release: NoneOperating System: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 12 Mar 2008 08:09:47 PM UTC, original submission:

When you go to the load screen, click a map, and delete it, its details still appear in the box to the right.

So when you click Ok to load the map, you get:

#
Engine::loadMapHeader : error, can't open file games/Auto_save.game
#
Engine::loadGameHeader : error, can't open file games/Auto_save.game
#
glob2: libgag/include/StreamBackend.h:74: virtual size_t GAGCore::FileStreamBackend::getPosition(): Assertion `fp' failed.
#

#
Program received signal SIGABRT, Aborted.
#
[Switching to Thread -1229166864 (LWP 7321)]
#
0xffffe410 in __kernel_vsyscall ()
#
Current language: auto; currently c
#
(gdb) bt
#
#0 0xffffe410 in __kernel_vsyscall ()
#
#1 0xb7acfec5 in raise () from /lib/i686/libc.so.6
#
#2 0xb7ad1921 in abort () from /lib/i686/libc.so.6
#
#3 0xb7ac917e in __assert_fail () from /lib/i686/libc.so.6
#
#4 0x08267b04 in GAGCore::FileStreamBackend::getPosition (this=0x83e1bc0) at libgag/include/StreamBackend.h:74
#
#5 0x0826439e in GAGCore::BinaryInputStream::getPosition (this=0x83e1b00) at libgag/include/BinaryStream.h:96
#
#6 0x081a3d87 in MapHeader::load (this=0xbfb81f50, stream=0x83e1b00) at src/MapHeader.cpp:44
#
#7 0x080e83fa in Game::load (this=0xbfbb7c20, stream=0x83e1b00) at src/Game.cpp:831
#
#8 0x0810ae5f in GameGUI::load (this=0xbfbb7c08, stream=0x83e1b00, ignoreGUIData=false) at src/GameGUI.cpp:3800
#
#9 0x0810b4b2 in GameGUI::loadFromHeaders (this=0xbfbb7c08, mapHeader=@0xbfb8efd4, gameHeader=@0xbfb9b66c, setGameHeader=false, ignoreGUIData=false) at src/GameGUI.cpp:3782
#
#10 0x080d938a in Engine::initGame (this=0xbfbb7c08, mapHeader=@0xbfb8efd4, gameHeader=@0xbfb9b66c, setGameHeader=false, ignoreGUIData=false) at src/Engine.cpp:447
#
#11 0x080d9d31 in Engine::initCustom (this=0xbfbb7c08, gameName=@0xbfba8acc) at src/Engine.cpp:133
#
#12 0x080dad3f in Engine::initLoadGame (this=0xbfbb7c08) at src/Engine.cpp:154
#
#13 0x081248c4 in Glob2::run (this=0xbfbc7283, argc=1, argv=0xbfbc7324) at src/Glob2.cpp:244
#
#14 0x08124c4b in main (argc=Cannot access memory at address 0x1c99
#
) at src/Glob2.cpp:338
#
(gdb)

Kieran <k776>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by genixpro (Updated the item)
  • -unavailable- added by k776 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 13 Mar 2008 06:40:34 AM UTCgenixproStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1