[fixed] segfault after game start, Hud

[fixed] segfault after game start, Hud

Postby Wuzzy » 01 Apr 2014, 21:52

Oh, well. Version efc544ce7ee530628cf031c38518a36014788682 exists with a segmentation fault for me. :/
I can start the stuntrally executable. It will also go to the main menu. The main menu (which is fully drawn at this point) gets displayed for a second or so, then stuntrally does the segmentation fault. This does not affect sr-editor.

Here’s what gdb said:
{l Code}: {l Select All Code}
Program received signal SIGSEGV, Segmentation fault.
0x082d5674 in CHud::Update (this=0x86e9650, carId=0, time=inf)
    at /home/wuzzy/src/stuntrally/git/stuntrally/source/ogre/Hud_Update.cpp:144
144      {   CarModel* cm = app->carModels[c];


Stack trace:
{l Code}: {l Select All Code}
#0  0x082d5674 in CHud::Update (this=0x86e9650, carId=0, time=inf)
    at /home/wuzzy/src/stuntrally/git/stuntrally/source/ogre/Hud_Update.cpp:144
#1  0x082d0060 in SplitScr::preViewportUpdate (this=0x88751f8, evt=...)
    at /home/wuzzy/src/stuntrally/git/stuntrally/source/ogre/SplitScreen.cpp:207
#2  0xb7d04279 in Ogre::RenderTarget::fireViewportPreUpdate(Ogre::Viewport*) ()
   from /usr/lib/libOgreMain.so.1.9.0
#3  0xb7d044fd in Ogre::RenderTarget::_updateViewport(Ogre::Viewport*, bool) ()
   from /usr/lib/libOgreMain.so.1.9.0
#4  0xb7d044b6 in Ogre::RenderTarget::_updateAutoUpdatedViewports(bool) ()
   from /usr/lib/libOgreMain.so.1.9.0
#5  0xb7d04016 in Ogre::RenderTarget::updateImpl() ()
   from /usr/lib/libOgreMain.so.1.9.0
#6  0xb7d04668 in Ogre::RenderTarget::update(bool) ()
   from /usr/lib/libOgreMain.so.1.9.0
#7  0xb7c43f79 in Ogre::RenderSystem::_updateAllRenderTargets(bool) ()
   from /usr/lib/libOgreMain.so.1.9.0
#8  0xb7c5076d in Ogre::Root::_updateAllRenderTargets() ()
   from /usr/lib/libOgreMain.so.1.9.0
#9  0xb7c50840 in Ogre::Root::renderOneFrame() ()
   from /usr/lib/libOgreMain.so.1.9.0
#10 0xb7c5089d in Ogre::Root::startRendering() ()
   from /usr/lib/libOgreMain.so.1.9.0
#11 0x0826ecff in BaseApp::Run (this=0x86e0f18, showDialog=false)
    at /home/wuzzy/src/stuntrally/git/stuntrally/source/ogre/BaseApp_Create.cpp:160
#12 0x081306fe in main (argc=1, argv=0xbffff6e4)
    at /home/wuzzy/src/stuntrally/git/stuntrally/source/ogre/main.cpp:128


OS: GNU/Linux, Linux 3.12.9
Graphics card: NVIDIA GeForce GTX 460
Graphics driver: NVIDIA 331.38

PS: I deleted game.cfg before this, so SR should have used the default one.
Attachments
ogre.log
(26.54 KiB) Downloaded 315 times
log.txt
(617 Bytes) Downloaded 311 times
Last edited by Wuzzy on 02 Apr 2014, 18:12, edited 1 time in total.
User avatar
Wuzzy
 
Posts: 989
Joined: 28 May 2012, 23:13

Re: Recent version segfaults shortly after main menu is up

Postby CryHam » 02 Apr 2014, 16:33

Ah. Thanks for testing. I pushed a fix (hope so).
User avatar
CryHam
SR Moderator
 
Posts: 1047
Joined: 25 Nov 2012, 08:40

Re: [fixed] segfault after game start, Hud

Postby Wuzzy » 02 Apr 2014, 18:12

Okay. The crash does not happen anymore. :-)
User avatar
Wuzzy
 
Posts: 989
Joined: 28 May 2012, 23:13

Who is online

Users browsing this forum: No registered users and 1 guest

cron