Page 1 of 1

[fixed] segfault after game start, Hud

PostPosted: 01 Apr 2014, 21:52
by Wuzzy
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.

Re: Recent version segfaults shortly after main menu is up

PostPosted: 02 Apr 2014, 16:33
by CryHam
Ah. Thanks for testing. I pushed a fix (hope so).

Re: [fixed] segfault after game start, Hud

PostPosted: 02 Apr 2014, 18:12
by Wuzzy
Okay. The crash does not happen anymore. :-)