Forums

Full Version: Error loading VDrift - Surface creation failed (Fedora 8)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have a few problems with running VDrift on my machine:
Athlon64 3400+
1024Mb RAM
Geforce 6800 GT Ultra With 169.09 drivers from NVidia
Running Fedora 8 32bit

I downloaded the VDrift-2007-03-23-full-2.package from Sourceforge.net and installed it using the autopackage feature, it all installed fine but when i tried to run it from the menu it done nothing. I ran it from the console and i received this error: Segmentation Fault

I then uninstalled it using the autopackage uninstall program from my system menu and went back to Sourceforge.net and downloaded vdrift-2007-12-26-src.tar.bz2 and vdrift-20 07-12-26-data.zip.
I followed the instructions given from: http://wiki.vdrift.net/Compiling and everything went smoothly, i checked i had all the libs and dev-libs installed, then installed bullet and Scons and compiled and installed Vdrift fine.
When i try to run this version from the console (No menu link was installed) from /usr/share/games/vdrift/bin/vdrift i recieve the error: EXCEPTION: Error initilizing VDrift: Surface creation failed

Ive searched the forum and the internet but havent found anything thats able to help me get this game working, so any help is very much appreciated!

Thanks,
Beavis
Hi Beavis, and welcome. It seems that you shouldn't be having any problems considering your hardware and software setup. I'd be interested to see a backtrace from your segfault. Could you install gdb and run
Code:
gdb vdrift
...gdb will start up with the vdrift binary. Type "r" and press enter to run VDrift in gdb. then when it crashes, type "bt" and press enter. This will print out the backtrace. Copy this info and paste it into a post here. It's a good idea to turn off smilies and bbcode on such a post, and put the pasted backtrace inside a code block.
I recreated this problem by running "scons -c install" as root from the compile dir to remove my previously compiled installation. I then checked it deleted all previous Vdrift info, it hadnt. I manually deleted /usr/share/games/vdrift and all child directories as well as the .vdrift directory from /home/user. After all that was gone i reinstalled Vdrift from VDrift-2007-03-23-full-2.package, it ran through flawlessly but still gave me the segmentation fault in the console. So following your advice i ran Vdrift thru gdb and here's it's output:

There were LOTS of different:
Code:
Missing separate debuginfo for /usr/lib/libesd.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/99/575d169ed67c966005b44652ea183f0437b0ee.debug
(no debugging symbols found)
above whats below and at one point it asked me to quit or continue, i continued. and got the below which is the last of the info.

Code:
Missing separate debuginfo for /lib/libnss_files.so.2
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/a7/eabb854181ef5ff0c22b78c3e5048c64a2ebb8.debug
(no debugging symbols found)
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208940816 (LWP 11542)]
0x005f1e7d in ____strtod_l_internal () from /lib/libc.so.6

(gdb) bt
#0  0x005f1e7d in ____strtod_l_internal () from /lib/libc.so.6
#1  0x005ef409 in strtod () from /lib/libc.so.6
#2  0x003d0d69 in ?? () from /usr/lib/libGLU.so.1
#3  0x003d8833 in gluBuild2DMipmaps () from /usr/lib/libGLU.so.1
#4  0x080b4e05 in ?? ()
#5  0x080b599a in ?? ()
#6  0x080b5fce in ?? ()
#7  0x080a92f4 in ?? ()
#8  0x080a9920 in ?? ()
#9  0x080a9b93 in ?? ()
#10 0x080648ee in ?? ()
#11 0x080657cb in ?? ()
#12 0x080658db in ?? ()
#13 0x080521d9 in __gxx_personality_v0 ()
#14 0x08053cce in __gxx_personality_v0 ()
#15 0x005d6390 in __libc_start_main () from /lib/libc.so.6
#16 0x0804e701 in __gxx_personality_v0 ()

(gdb)
If you need any more info or if i need to re-run after installing more libs let me know.... hope this helps. (I'm really looking forward to drifting in that e30 m3!!!)

Regards,
Beavis
Hey, I meant for you to try running the version you compiled with GDB. The releases are compiled without debugging symbols, which is why it didn't really tell you anything. When I compile for release I specify
Code:
scons release=1
to turn on optimizations and turn off debugging symbols. So you should compile it again without release=1, and then run it through gdb again. It should say a bunch of stuff about where it crashed.
thelusiv: When he compiled manually it didn't crash, it gave him the exception he mentioned (surface creation failed).

beavis: Let's just ignore the autopackage, since it's an older version and could have other reasons why it'd crash, and concentrate on the 12-26 version you compiled. The "surface creation failed" error could mean you have something wrong with your system (not VDrift specific). Have you been able to run any other programs that use SDL or OpenGL? Is there any reason you can think of that creating an 800x600 16-bit window (the default) would fail? Did you try removing your ~/.vdrift directory before running the 12-26 version?
Ah ok, i got confused as it was the .package that gave me the segmentation fault. OK, .package version removed through autopackage uninstall feature, /usr/share/games was deleted as well this time. I deleted my .vdrift manually, re-compiled and re-installed the newer version, same problem... surface creation failed.

Heres the gdb output:

Code:
$ gdb vdrift
GNU gdb Red Hat Linux (6.6-43.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /usr/share/games/vdrift/bin/vdrift
Missing separate debuginfo for /lib/ld-linux.so.2
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/ac/2eeb206486bb7315d6ac4cd64de0cb50838ff6.debug
Missing separate debuginfo for /usr/lib/libSDL-1.2.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/0b/110f91cb785a9133102dff41a2eb2503c45937.debug
Missing separate debuginfo for /lib/libpthread.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/6c/1cdbb38ae2a292613c8c31195417ee80ea7e1e.debug
[Thread debugging using libthread_db enabled]
Missing separate debuginfo for /usr/lib/libGLU.so.1
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/e2/bbd1eacd0ca20fb84248cf04046c69c1cdee27.debug
Missing separate debuginfo for /usr/lib/libSDL_image-1.2.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/9f/2a1693625bd05d2aa3ea0603604dd024d029ad.debug
Missing separate debuginfo for /usr/lib/libSDL_net-1.2.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/08/725fe3932a07917cd858dbe4176aece48c9a9d.debug
Missing separate debuginfo for /usr/lib/libSDL_gfx.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/30/ed1041b5c412788d182411cc6c7068ffa3613d.debug
Missing separate debuginfo for /usr/lib/libvorbisfile.so.3
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/ca/e166b18b1d017961777e1cf99ed1b44f326fe2.debug
Missing separate debuginfo for /usr/lib/libstdc++.so.6
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/88/27308433e33aeefb560f42fb133577c8936f20.debug
Missing separate debuginfo for /lib/libm.so.6
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/92/8ab51a53627c59877a85dd9afecc1619ca866c.debug
Missing separate debuginfo for /lib/libgcc_s.so.1
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/db/8cb95645d5df469d4aece301cdb5e60087be21.debug
Missing separate debuginfo for /lib/libc.so.6
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/ba/4ea1118691c826426e9410cafb798f25cefad5.debug
Missing separate debuginfo for /lib/libdl.so.2
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/db/a292aff9720bfc3f25c53fa8e469168460a894.debug
Missing separate debuginfo for /usr/lib/libXext.so.6
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/90/ebf9c172c9332feed316b7c0fdff30ce1a15ae.debug
Missing separate debuginfo for /usr/lib/libX11.so.6
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/03/5807c541381466da2f8457545e62c87066fd4f.debug
Missing separate debuginfo for /usr/lib/libpng12.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/fc/0d33f69c4755d187f2c28e3bf118be4ad378f3.debug
Missing separate debuginfo for /usr/lib/libjpeg.so.62
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/59/90d96516d0966b3e75c018e6129eee43965a6a.debug
Missing separate debuginfo for /usr/lib/libtiff.so.3
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/7b/ca58225dfd79f80915f63c78c2188ead8cd217.debug
Missing separate debuginfo for /lib/libz.so.1
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/07/b722c2a7fed5b96cf4b40ce0f2a06eb0f8d2fc.debug
Missing separate debuginfo for /usr/lib/libvorbis.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/96/85c8747c86bd2878eaeac958c5597936a0f603.debug
Missing separate debuginfo for /usr/lib/libXau.so.6
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/0d/605d38e5e2d23fb14837dd95144b2d330b946c.debug
Missing separate debuginfo for /usr/lib/libxcb-xlib.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/f2/8414adf5c05e495ce77db42b8b14f40bff2fef.debug
Missing separate debuginfo for /usr/lib/libxcb.so.1
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/e6/6176c26fd113826bac909964f08ed95e3b1745.debug
Missing separate debuginfo for /usr/lib/libogg.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/99/bc9d54b8aa97c44c15e8920b7586fff79f92e4.debug
Missing separate debuginfo for /usr/lib/libXdmcp.so.6
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/87/d66bafb3c5d1af9e5a91a447ef5efcc0a3ec3c.debug
BinReloc successfully initialized.
Executable path: /usr/share/games/vdrift/bin/vdrift
Data dir: /usr/share/games/vdrift/data
Localedir: /usr/share/games/vdrift/share/locale
No data_dir found in VDrift.config, using /usr/share/games/vdrift/data
Found config file /home/user/.vdrift/controls.
Found config file /home/user/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /usr/share/games/vdrift/data
Version of game: development-full
Skin name not found in config file...
/usr/share/games/vdrift/share/locale
Warning: option-47 is missing its default value. Assuming "".
[New Thread -1208403344 (LWP 21563)]
Missing separate debuginfo for /usr/lib/libXrender.so.1
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/15/731d3b56abb1be2a6715ef4c7ae84a5c77564c.debug
Missing separate debuginfo for /usr/lib/libXrandr.so.2
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/ed/6226497b8e4f290578cc3fcefed32d169f7406.debug
Missing separate debuginfo for /usr/lib/libXcursor.so.1
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/b8/15f4dcecb6010580bb2ebf9ad8412132353b71.debug
Missing separate debuginfo for /usr/lib/libXfixes.so.3
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/41/b572ad1b8e3fac8fb0dadf6bcc2b61ef6e08a9.debug
Missing separate debuginfo for /usr/lib/libesd.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/99/575d169ed67c966005b44652ea183f0437b0ee.debug
Missing separate debuginfo for /lib/libasound.so.2
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/3b/db6d4e345aec32ec5498236708a53bb49d26c4.debug
Missing separate debuginfo for /usr/lib/libaudiofile.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/04/ae3795bc4da9647985eaafd55123b36729d66c.debug
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:
EXCEPTION: Error initilizing VDrift: Surface creation failed.

Program exited normally.
(gdb) bt
No stack.
(gdb)
Somehow, i don't think that's good?

This is the first OpenGL or SDL App ive tried to use, if you suggest another small app i can try i would be extremely thankful.

Regards,
Beavis
Code:
$ gltron
[error] cannot load .gltronrc from /home/Callum/.gltronrc
[warning] old config file found, overriding using defaults
[warning] defunct config file found, overriding using defaults
[system] Couldn't set GL mode: Could not create GL context

Looks like your bang on the money Joe... anyone have any ideas what to do now?

Thanks.
Beavis
Oops, Joe is right, sorry about that. It is probably something else...usually the surface creation failed error comes when there is a problem with SDL and it is unable to set up a window. This might happen if it's trying to set up a screen at a resolution too high for your screen. This could also happen if there's a problem with your video card drivers.
hmmm is there anyway i can test SDL or my graphics card drivers? I know i can run EVE-online but i think thats using cedega with mono? to mimic directX? so it may not apply. Im running on a 21" crt currently at 1600x1200 so screen res shouldnt be a problem.. im stumped by this one though :?

Any more help would be great,
Thanks,
Beavis