Author Topic: ps seg faults, and tells me no 3d  (Read 2067 times)

Homik

  • Hydlaa Resident
  • *
  • Posts: 147
    • View Profile
    • homik's corner
ps seg faults, and tells me no 3d
« on: December 22, 2008, 11:51:41 pm »
I have a strange problem while installing ps on opensuse.
First, i get a seg fault, so i try --mode-text
It installs nicely.
Then, i try ./psclient, it tells me i have no 3d graphics drivers :/
I checked, rechecked, and reinstalled my graphics drivers, THEY ARE THERE.
I even tried turning compiz-fusion off, still no go.

Any suggestions?

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: ps seg faults, and tells me no 3d
« Reply #1 on: December 23, 2008, 12:16:23 am »
do you have direct rendering enabled? what graphics card do you have? what drivers do you have installed?

Homik

  • Hydlaa Resident
  • *
  • Posts: 147
    • View Profile
    • homik's corner
Re: ps seg faults, and tells me no 3d
« Reply #2 on: December 23, 2008, 12:38:30 am »
glxinfo says direct rendering is enabled.
i have a 9300m gs with nvidia driver version 177.82

heres the output of ./pssetup:

Your configuration files are in... /home/homik/.PlaneShift
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

ERROR: FATAL: Cannot open X display
WARNING: failed to initialize plugin 'crystalspace.window.x'
Could not create an instance of crystalspace.window.x!
WARNING: failed to initialize plugin 'crystalspace.graphics2d.glx'
Error loading Graphics2D plugin.
WARNING: failed to initialize plugin 'crystalspace.graphics3d.opengl'
No 3D driver!
psclient:  No 3d driver (iGraphics3D) plugin!
« Last Edit: December 23, 2008, 12:42:23 am by Homik »

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: ps seg faults, and tells me no 3d
« Reply #3 on: December 23, 2008, 01:25:43 am »
you do have X running? you are running pssetup or even psclient from console/terminal and not from tty?

Homik

  • Hydlaa Resident
  • *
  • Posts: 147
    • View Profile
    • homik's corner
Re: ps seg faults, and tells me no 3d
« Reply #4 on: December 23, 2008, 04:51:37 am »
Yes, X is running, and i'm starting pssetup/psclient from terminal. I tried starting as normal user and as root.

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: ps seg faults, and tells me no 3d
« Reply #5 on: December 23, 2008, 08:42:38 am »
don't run from root set permissions correctly also because many distributions doesn't setup x server correctly. others do it only with sudo. you might want to complain with your distributor about the fact they didn't setup xserver permissions correctly

Vonor

  • Hydlaa Resident
  • *
  • Posts: 132
  • Languages: English / German
    • View Profile
Re: ps seg faults, and tells me no 3d
« Reply #6 on: December 23, 2008, 10:46:01 am »
It really sounds like a permission issue to me.

Here's a little checklist for you, make sure everything on the list returns true :)
  • Make sure you are logged in as user, not as root (type 'id' into the console you're using to really make sure)
  • Check if your console emulator (xterm, Konsole, Terminal, whatever) did set your display variable correctly. run 'echo $DISPLAY' if that doesn't return omething like ":0.0" you want to do 'export DISPLAY=":0.0"' (replace the numbers according to your settings,the first zero is the currently running X server, the zero behind the dot is the actual screen on that X server, so if you have two monitors it could also be :0.1)
  • Check what permissions are set on the nvidia device. For me that looks like this:
Code: [Select]
$ ls -l /dev/nvidia0
crw-rw---- 1 root video 195, 0 Dec 20 19:49 /dev/nvidia0
The output tells us the following: crw-rw---- = it's a character device with read/write permissions for user and group / root video = owner of the file is user root and group video / the rest is unimportant for us.
Now check again the output of 'id' and see in what groups you are, for me that looks like this:
Code: [Select]
$ id
uid=1002(vonor) gid=100(users) groups=10(wheel),18(audio),19(cdrom),27(video),80(cdrw),100(users),1000(messagebus),1003(scanner),1005(plugdev),1006(vboxusers)
    You see, I am a member of group "video" and therefor have read and write permissions on the nvidia device. Double check that with your settings and change it accordingly (man usermod to see how to add yourself to a group, to do so you need to be root)[/li]

If everything on that list is correct, you should be able to start ps :)
oh, make sure you have "nvidia" and not "nv" as driver in your xorg.conf :)

good luck
Vonor
Quote from: Mordraugion
Quote from: zanzibar
::|  What just happened?

you got Caarried

Homik

  • Hydlaa Resident
  • *
  • Posts: 147
    • View Profile
    • homik's corner
Re: ps seg faults, and tells me no 3d
« Reply #7 on: December 23, 2008, 06:30:37 pm »
Well, i checked all those, and for the are all correct. I am in the 'video' group where the read/write permissions are set, display is set to 0.0 (don't have any other screens) and xorg.conf lists my drivers as nvidia.


Also, i tried compiling PS and i get this error while compiling cal3d:

linux-0ivz:/home/homik/Dev/cal3d # autoreconf --install --force
configure.in:41: error: possibly undefined macro: AC_DISABLE_STATIC
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:43: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.in:44: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1

We (prospies on irc) have been scratching our heads over this all night and can't find the error. We followed the guide to the letter :/

Any input appreciated ^.^

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: ps seg faults, and tells me no 3d
« Reply #8 on: December 23, 2008, 06:39:14 pm »
maybe http://www.linuxboards.org/archive/index.php/t-2450.html will help. also you might want to check the ubuntu version of the guide for a detailed list of dependencies you need to have installed.

Homik

  • Hydlaa Resident
  • *
  • Posts: 147
    • View Profile
    • homik's corner
Re: ps seg faults, and tells me no 3d
« Reply #9 on: December 23, 2008, 06:44:46 pm »
Thank you Caarrie!!! \\o//

you just solved what 3 people couldn't figure out for the life of them :D

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: ps seg faults, and tells me no 3d
« Reply #10 on: December 23, 2008, 06:50:56 pm »
Thank you Caarrie!!! \\o//

you just solved what 3 people couldn't figure out for the life of them :D

hehe you can thank google :P