[fixed]Crash related to drivers

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Auria
Competition winner
Posts: 120
Joined: Wed Feb 18, 2009 1:11 am
Contact:

[fixed]Crash related to drivers

Post by Auria »

Hi,

we got the following report for SuperTuxKart :

Code: Select all



STK rev. 6416
Ubuntu 10.10 86_x64
Bullet 2.77
Irrlicht 1.7.2 rev.3427
If you doesn't have any drivers installed and try to launch STK, it segfaults.
Backtrace:
Trying OpenGL rendering.
Level 1: No doublebuffering available.
Level 2: Fatal error, could not get visual.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a81d99 in irr::CIrrDeviceLinux::~CIrrDeviceLinux (this=0x8b9150,
__in_chrg=<value optimized out>, __vtt_parm=<value optimized out>)
at CIrrDeviceLinux.cpp:133
133 CIrrDeviceLinux.cpp: Нет такого файла или каталога. (No such file or directory)
in CIrrDeviceLinux.cpp
(gdb) bt
#0 0x00007ffff7a81d99 in irr::CIrrDeviceLinux::~CIrrDeviceLinux (
this=0x8b9150, __in_chrg=<value optimized out>,
__vtt_parm=<value optimized out>) at CIrrDeviceLinux.cpp:133
#1 0x00007ffff7a8fc35 in drop (params=...)
at ../../include/IReferenceCounted.h:124
#2 irr::createDeviceEx (params=...) at Irrlicht.cpp:109
#3 0x00007ffff7a8fcdb in irr::createDevice (driverType=<value optimized out>,
windowSize=..., bits=4158400704, fullscreen=false, stencilbuffer=176,
vsync=false, res=0x89d660) at Irrlicht.cpp:62
#4 0x00000000004486ef in IrrDriver::initDevice (this=0x89d660)
at graphics/irr_driver.cpp:164
#5 0x0000000000449e00 in IrrDriver::IrrDriver (this=0x89d660)
at graphics/irr_driver.cpp:57
#6 0x000000000040eaaf in initRest () at main.cpp:548
#7 0x000000000041052d in main (argc=<value optimized out>,
argv=0x7fffffffe298) at main.cpp:640
I'm posting it here because the crash is inside irrlicht (inside irr::createDevice more accurately). Is this a known crash, and can something be done about it?

Thanks
CuteAlien
Admin
Posts: 9929
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Not known yet to my knowledge.
Now I'm wondering what will be easier - figuring out how to disable my driver without wrecking my system or install development environment on another partition with a clean Ubuntu...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Not necessary, rather simple fix. The problem is that the cursor control was not initialized if the visual was not found. But the destructor disables the cursorcontrol without checking for its existence. It's fixed now in trunk.
Auria
Competition winner
Posts: 120
Joined: Wed Feb 18, 2009 1:11 am
Contact:

Post by Auria »

Thanks :D
Post Reply