Forums » Bugs

seg fault in 1.5.8.1 amd64 version

Apr 22, 2006 andvin link
Hi!

When clicking the 'Play' button in the updater window I get a segmentation fault. I see a very short glimpse (less than a second) of the main game window before it happens.

Here is the trace from gdb:
(gdb) where
#0 0x0000000000542cd5 in trace_stack ()
#1 0x0000000000542e33 in sigsegv_trap ()
#2 <signal handler called>
#3 0x00002aaaab76d655 in free () from /lib/libc.so.6
#4 0x00002aaaab33104e in operator delete ()
from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/libstdc++.so.6
#5 0x00000000005234d5 in GKGlowEffect::~GKGlowEffect ()
#6 0x00000000005199d9 in GKSupervisor::CreateProgram ()
#7 0x0000000000519d73 in GKSupervisor::LoadProgram ()
#8 0x0000000000522a81 in GKSupervisor::CreateGlowTextures ()
#9 0x0000000000516b5b in GKSupervisor::OpenWindow ()
#10 0x00000000004223ad in DoGame ()
#11 0x0000000000428b8b in main ()

Tell me what more information you might need to solve this.

Regards,
Hawkeye
Apr 22, 2006 bobhesketh link
I'm also not able to get into the game on Linux AMD64. The screen blanks and VO just terminates. I don't get to see any error messages, even when starting through konsole. The screen is re-sized to the game resolution as well, and I have to manually change it back
Apr 22, 2006 andvin link
If you run it from a shell and first issue 'ulimit -c unlimited', you should see a core file in the ~/.vendetta directory.

Do the following:
cd ~/.vendetta
gdb vendetta core

And then type 'where' at the prompt.
Does it show the same stacktrace as I have provided?
Apr 22, 2006 bobhesketh link
Found this in dmesg:

vendetta[9138]: segfault at 00000000ffe38d14 rip 0000000000542cd5 rsp 00007fffffe349a0 error 4
vendetta[9247]: segfault at 00000000ffb84d94 rip 0000000000542cd5 rsp 00007fffffb80a20 error 4
vendetta[9255]: segfault at 00000000ffa529c4 rip 0000000000542cd5 rsp 00007fffffa4e650 error 4
vendetta[9329]: segfault at 00000000ffaceec4 rip 0000000000542cd5 rsp 00007fffffacab50 error 4

I must not have the gdb program because when I run:

gdb vendetta core

I get: bash: gdb: command not found

EDIT:

Installed gdb, and get:

(gdb) where
#0 0x0000000000542cd5 in trace_stack ()
#1 0x0000000000542e33 in sigsegv_trap ()
#2 <signal handler called>
#3 0x00002aaaab743705 in free () from /lib/libc.so.6
#4 0x00002aaaab33504e in operator delete () from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/libstdc++.so.6
#5 0x00000000005234d5 in GKGlowEffect::~GKGlowEffect ()
#6 0x00000000005199d9 in GKSupervisor::CreateProgram ()
#7 0x0000000000519d73 in GKSupervisor::LoadProgram ()
#8 0x0000000000522a81 in GKSupervisor::CreateGlowTextures ()
#9 0x0000000000516b5b in GKSupervisor::OpenWindow ()
#10 0x00000000004223ad in DoGame ()
#11 0x0000000000428b8b in main ()
(gdb)
Apr 22, 2006 raybondo link
Ok. I know exactly what the problem is. We found that bug right before launching but the amd64 version didn't get properly compiled with the fix.
It's a result of your video cards not doing the glow effect, either because it's turned off or because the video card doesn't support shaders.
Apr 22, 2006 bobhesketh link
Erm...so how do we fix it?
Apr 22, 2006 andvin link
I've got a Nvidia 6600gt card running with the nvidia 1.0.8756 drivers on a 64 bit gentoo linux installation.
The glow effect was there before this update.
And I think shaders should be supported by this card and its drivers.
Apr 22, 2006 bobhesketh link
Got it working :)

In ~/.vendetta/config.ini

I changed the line doshaders=0 to doshaders=1

Seems to be working.
Apr 22, 2006 roguelazer link
No crash on my 7800GT, and rglow works.
Apr 23, 2006 andvin link
The 'doshaders=1' thing fixed it for me too.
Apr 25, 2006 a1k0n link
This should be fixed regardless by now. Forgot to post about it earlier.