PDA

View Full Version : [Linux] game always crash when loading a game right before being in the pool



Zen
01-12-2011, 01:22 PM
Hi, the game _always_ crash here when finish loading all the players right before being in the pool for the start.
Im using kde 4.6rc with kwin and composite enabled. It seems I don't have the crash if a start the game from another DE like fluxbox
Who's to blame? HON , Kwin or nvidia drivers? who knows...
the crash is always riproducible
here's my specs:

direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 9800 GT/PCI/SSE2
OpenGL version string: 3.3.0 NVIDIA 260.19.29
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL extensions:
GL_EXT_Cg_shader, GL_EXT_depth_bounds_test, GL_EXT_direct_state_access,
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 9800 GT] (rev a2)
Linux tao64 2.6.37-ck #1 SMP PREEMPT Mon Jan 10 20:45:50 CET 2011 x86_64 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux

thanks

Naib
01-12-2011, 05:40 PM
This is downto the nvidia driver (260.x series)
If you provide a crash.log file it will confirm that it is todo with the nvidia drivers and pthreads.

Do you have composite enabled or disabled.


nvidia changed their drivers for 260.x and made them very crashy w.r.t. 3d apps (even 2d apps [like gvim..] which link to a library [cairo] that has 3d capability).

The 260.x series has improved but still is susceptible to this. I suffer from this but not as much as I used to ( I recently did an emerge -e system && emerge -e system and it improved it VASTLY!)

I notice if I tab between application it is more susceptible to crashing.


I see you are using ck kernel. Are you a gentoo user? I ask because people using 260.x and say ubuntu do not crash so it might not be as simple as a driver issue (the nv forums are full of reports on this) or some setting on the system

Zen
01-12-2011, 06:29 PM
well , I'm using archlinux with custom ck-kernel , the problem really has to be related to 260 series as a downgrade to older 253 version doesn't show the issue..
I know 260* sucks but , as you said , it's not as simple to debug this as seems related to my kde (4.6rc) usage with composite , as using hon with fluxbox doesn't trigger this...
A friend of mine has the same system but doesn't crash , but he has a different video card chipset...
so ...I know it's hard to tell , just reporting it here to let you know if in that specific point of the game the code is doing something strange that makes crash some specific chipset under some conditions... lol
BTW It's nice to find someone here that knows what I'm talking about
thanks Naib
cheers

Naib
01-13-2011, 05:50 PM
It might be worth trying:



newx() { DISPLAY=:1.0; xinit $* -- :1; }; newx /path/to/hon.sh

This will spawn a new Xserver (on VT8)

Zen
01-15-2011, 12:03 PM
this is very nice and seems to work good but as downside I have exactly this:
http://forums.heroesofnewerth.com/showthread.php?t=196295

the game is very dark and I can't change the brightness , nothing happens triggering the brightness slider
Any hint?

Naib
01-15-2011, 12:15 PM
how odd.
might have to use xgamma for that one.

eg xgamma -d 2 -gamma 10 or some option. 2 would be because it is the 2nd xorg display

Zen
01-28-2011, 04:06 PM
for future reference I managed to solve this using a second instance of X and running hon on top of it , without kde or kwin interference or bugs , xgamma is used to correct brightness...work like a charm and no more crashes :D
create this honwrap.sh , chmod +x it , run in console

#!/bin/bash

X :1 &
sleep 2
DISPLAY=:1 /home/mangus/HoN/hon.sh &
sleep 2
DISPLAY=:0 xgamma -g 2 -d :1
echo "done"
exit

cherrs

Naib
01-28-2011, 04:29 PM
ill add this to the wiki