bugGlobulation 2 - Bugs: bug #22707, autosave game crashs a 30 to 60s...

 
 

bug #22707: autosave game crashs a 30 to 60s into the game

Submitted by:  Leo Wandersleb <giszmo>
Submitted on:  Sun 23 Mar 2008 07:56:50 PM UTC  
 
Severity: 3 - NormalStatus: Confirmed
Assigned to: NoneOpen/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.

 

Mon 31 Mar 2008 04:39:13 PM UTC, comment #2:

I can not get enough information from the autosave to be able to debug.

Bradley Arsenault <genixpro>
Project Administrator
Sun 23 Mar 2008 08:11:55 PM UTC, comment #1:

This was due to a unit id that had no corresponding unit object. I've added more integrity checks to game load to check for this in branch "default" as changeset 3333:ff8b0c901153

Maybe we want to backport this to rc3-beta in order to ease debugging.

Stephane Magnenat <nct>
Project Administrator
Sun 23 Mar 2008 07:56:50 PM UTC, original submission:

the attached map causes this crash after some seconds. on the 2nd try we got it again but later.

glob2: src/Game.cpp:1631: void Game::drawUnit(int, int, Uint16, int, int, int, int, int, Uint32): Assertion `unit' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x2b4eb2982c10 (LWP 7488)]
0x00002b4eaf463025 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00002b4eaf463025 in raise () from /lib/libc.so.6
#1 0x00002b4eaf464a80 in abort () from /lib/libc.so.6
#2 0x00002b4eaf45c42f in __assert_fail () from /lib/libc.so.6
#3 0x00000000004a6387 in Game::drawUnit (this=0x7ffffd6672e0, x=19, y=33, gid=71, viewportX=87, viewportY=126, screenW=43, screenH=32, localTeam=2,
drawOptions=9) at src/Game.cpp:1631
#4 0x00000000004b5db6 in Game::drawMapGroundUnits (this=0x7ffffd6672e0, left=0, top=0, right=44, bot=33, sw=1400, sh=1050, viewportX=87,
viewportY=126, localTeam=2, drawOptions=9) at src/Game.cpp:1867
#5 0x00000000004a76f8 in Game::drawMap (this=0x7ffffd6672e0, sx=0, sy=0, sw=1400, sh=1050, viewportX=87, viewportY=126, localTeam=2, drawOptions=9,
visibleBuildings=0x7ffffd666fc0) at src/Game.cpp:2556
#6 0x00000000004c7cce in GameGUI::drawAll (this=0x7ffffd6672b0, team=2) at src/GameGUI.cpp:3586
#7 0x000000000049b90c in Engine::run (this=0x7ffffd6672b0) at src/Engine.cpp:358
#8 0x000000000057160b in MultiplayerGame::startEngine (this=0x3a2caa0) at src/MultiplayerGame.cpp:541
#9 0x0000000000573152 in MultiplayerGame::recieveMessage (this=0x3a2caa0, message=@0x7ffffd68ad50) at src/MultiplayerGame.cpp:417
#10 0x000000000061313f in YOGClient::update (this=0xb738b0) at src/YOGClient.cpp:242
#11 0x000000000057471f in MultiplayerGame::update (this=0x3a2caa0) at src/MultiplayerGame.cpp:54
#12 0x000000000057cb09 in MultiplayerGameScreen::onTimer (this=0x7ffffd699040, tick=797730) at src/MultiplayerGameScreen.cpp:125
#13 0x0000000000649d38 in GAGGUI::Screen::dispatchTimer (this=0x7ffffd699040, tick=797730) at libgag/src/GUIBase.cpp:627
#14 0x000000000064af7e in GAGGUI::Screen::execute (this=0x7ffffd699040, gfx=0x9b1200, stepLength=40) at libgag/src/GUIBase.cpp:445
#15 0x000000000061ac16 in YOGClientLobbyScreen::hostGame (this=0x7ffffd6996b0) at src/YOGClientLobbyScreen.cpp:270
#16 0x000000000061af3e in YOGClientLobbyScreen::onAction (this=0x7ffffd6996b0, source=0xb2e8c0, action=GAGGUI::BUTTON_RELEASED, par1=3, par2=0)
at src/YOGClientLobbyScreen.cpp:153
#17 0x000000000064cc36 in GAGGUI::Button::onSDLMouseButtonUp (this=0xb2e8c0, event=0x7ffffd6995d0) at libgag/src/GUIButton.cpp:80
#18 0x000000000064a081 in GAGGUI::Screen::dispatchEvents (this=0x7ffffd6996b0, event=0x7ffffd6995d0) at libgag/src/GUIBase.cpp:596
#19 0x000000000064b0c1 in GAGGUI::Screen::execute (this=0x7ffffd6996b0, gfx=0x9b1200, stepLength=40) at libgag/src/GUIBase.cpp:506
#20 0x0000000000620a17 in YOGLoginScreen::handleYOGClientEvent (this=0x7ffffd699d80, event=@0x7ffffd699820) at src/YOGLoginScreen.cpp:154
#21 0x0000000000611a1a in YOGClient::sendToListeners (this=0xb738b0, event=@0x7ffffd6999e0) at src/YOGClient.cpp:455
#22 0x000000000061256a in YOGClient::update (this=0xb738b0) at src/YOGClient.cpp:149
#23 0x0000000000620e44 in YOGLoginScreen::onTimer (this=0x7ffffd699d80, tick=25381) at src/YOGLoginScreen.cpp:126
#24 0x0000000000649d38 in GAGGUI::Screen::dispatchTimer (this=0x7ffffd699d80, tick=25381) at libgag/src/GUIBase.cpp:627
#25 0x000000000064af7e in GAGGUI::Screen::execute (this=0x7ffffd699d80, gfx=0x9b1200, stepLength=40) at libgag/src/GUIBase.cpp:445
#26 0x00000000004e9643 in Glob2::mutiplayerYOG (this=0x7ffffd6bdaff) at src/Glob2.cpp:107
#27 0x00000000004e9dd3 in Glob2::run (this=0x7ffffd6bdaff, argc=1, argv=0x7ffffd6bdbe8) at src/Glob2.cpp:262
#28 0x00000000004ea047 in main (argc=1, argv=0x7ffffd6bdbe8) at src/Glob2.cpp:337
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/leo/projects/glob2_2/src/glob2
[Thread debugging using libthread_db enabled]
[New Thread 0x2b94c9e09c10 (LWP 7702)]
[New Thread 0x40802950 (LWP 7703)]
[New Thread 0x41077950 (LWP 7704)]
[New Thread 0x41878950 (LWP 7705)]
[New Thread 0x42079950 (LWP 7710)]
[New Thread 0x4287a950 (LWP 7711)]
glob2: src/Game.cpp:1631: void Game::drawUnit(int, int, Uint16, int, int, int, int, int, Uint32): Assertion `unit' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x2b94c9e09c10 (LWP 7702)]
0x00002b94c68ea025 in raise () from /lib/libc.so.6

Leo Wandersleb <giszmo>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #15321:  Auto_save_crash.game.tar.gz added by giszmo (76KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by genixpro (Posted a comment)
  • -unavailable- added by nct (Posted a comment)
  • -unavailable- added by giszmo (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 31 Mar 2008 04:39:13 PM UTCgenixproStatusNone=>Confirmed
      Open/ClosedOpen=>Closed
    Sun 23 Mar 2008 07:56:50 PM UTCgiszmoAttached File-=>Added Auto_save_crash.game.tar.gz, #15321

    Back to the top


    Powered by Savane 3.1-cleanup1