You are not logged in.

#1 2006-11-26 14:33:26

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

[Solved] Running SDL-stuff = getting thrown out of X

Hey,

I've installed both tuxracer and frozen-bubble with pacman and when I try to start either one of them I'm getting throw out of X. I've checked the logs in /var/logs and dmesg output but I can't find anything. I tried rebuilding tuxracer from source with the PKGBUILD file but the problem persists.

I'm running vanilla 2.6.18.3 kernel with vanilla Nvidia drivers 1.0-9629 which are working fine as far as I can tell (glxgears and flurry (xscreensaver) don't give any problems).

Any ideas on what can be the problem?

EDIT: The same thing happens with The Battle of Wesnoth, which makes me think the problem lies somewhere in SDL.

EDIT2: I just tried one of the demos from the official SDL website and as I suspected I was thrown out of X which means there's some problem with SDL.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#2 2006-11-30 12:37:00

rbl
Member
Registered: 2005-08-29
Posts: 64

Re: [Solved] Running SDL-stuff = getting thrown out of X

Just an idea..
Tuxracer and frozen-bubble both do (try to) change your display resolution on start, which glxgears does not.. maybe some Display lines in your xorg.conf are messed up?

Offline

#3 2006-12-03 14:30:59

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: [Solved] Running SDL-stuff = getting thrown out of X

This is how my resolutions are set up in xorg.conf:

  DefaultDepth    24
  SubSection     "Display"
          Depth       1
          Modes      "1280x1024" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection     "Display"
          Depth       4
          Modes      "1280x1024" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection     "Display"
          Depth       8
          Modes      "1280x1024" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection     "Display"
          Depth       15
          Modes      "1280x1024" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection     "Display"
          Depth       16
          Modes      "1280x1024" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection     "Display"
          Depth       24
          Modes      "1280x1024" "1024x768" "800x600" "640x480"
  EndSubSection

PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#4 2006-12-03 15:58:14

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Solved] Running SDL-stuff = getting thrown out of X

I'm getting very similar behaviour, except for me, my system completely locks up.  Tuxracer and my graphics project, both which use SDL, lock up my system - even magic sysreq doesn't work.  I just tried glxgears, seemed to work fine.

Kind of a pain in the ass since I can't work on my gfx project anymore because of it. hmm

Instead of nvidia, tho, I'm using fglrx.

Should note, as well, that I'm on i686, not x86_64 arch.

Offline

#5 2006-12-03 19:20:03

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: [Solved] Running SDL-stuff = getting thrown out of X

So it's not an Arch64/64-bit compability issue then..hmm.. I wonder what it is. I'm going to try the xorg nv-drivers with libgl-dri later today and see if it works then.

It would be great if any of the SDL-applications provided some logging support so one could see when it dies. I checked the logs in /var/logs/ but found nothing related to getting thrown out of X.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#6 2006-12-03 19:20:50

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Solved] Running SDL-stuff = getting thrown out of X

http://bugs.archlinux.org/task/5907
Added to this, existing, bugreport... seems we may all have some related problem??

Offline

#7 2006-12-04 12:17:50

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: [Solved] Running SDL-stuff = getting thrown out of X

I've tried The Battle of Wesnoth and Super Maryo Chronicles using the official nvidia drivers, X.org opensource nv drivers and the X.org vesa driver and the results are like so:
nvidia: thrown out of X.
nv: PC locks up with a black screen.
vesa: works just fine.

So while in vesa I started wesnoth up and changed from fullscreen to windowed mode.. and now I can play it with both the nv and nvidia drivers. The problem seems to have something to do with fullscreen (at wrong resolution?) and perhaps hardware acceleration.

I also tried starting wesnoth from aterm and logging the output "wesnoth >> wesnout_log 2>&1" but it didn't log anything having with the problems.

Battle for Wesnoth v1.0.2
Started on Mon Dec  4 10:47:51 2006

started game: 1289534290
Checking video mode: 1024x768x32...
32
setting mode to 1024x768x32
locale could not be determined; defaulting to system locale
set locale to
found valid cache at '/home/fredrik/.wesnoth/cache/game.cfg-cache-v1.0.2-MEDIUM-NORMAL' using it
started music
3005433148
showing title screen...
3005433148
Loading tips of day

I uploaded my xorg.conf file incase you want to compare settings or so: http://web.telia.com/~u85920559/xorg.conf.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#8 2006-12-06 12:13:02

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: [Solved] Running SDL-stuff = getting thrown out of X

I've just installed the new nvidia drivers (1.0-9631) and everything is working fine now. Conclusion; next time blame nvidia from the start.

Changelog:

* Fixed an OpenGL crash on some GeForce 3 and GeForce 4 GPUs.
* Fixed an X server crash starting some fullscreen OpenGL games.
* Improved interaction with newer Linux kernels.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#9 2006-12-06 16:11:14

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Solved] Running SDL-stuff = getting thrown out of X

Heh, seems my problem is unrelated then - guess I'll have to fiddle around here and see wth is going on. ;P

Offline

#10 2006-12-06 18:06:54

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: [Solved] Running SDL-stuff = getting thrown out of X

I find it strange that the bug manifested itself in the nv-drivers though.. I'm pretty sure I uninstalled the nvidia drivers inbetween, but I might have tried it after reinstalling and thus be using nvidia's glx.

I really hope you find the cause of your problem, 'cause I found it most annoying not being able to start applications and not being sure whether X would die or not.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

Board footer

Powered by FluxBB