PlaneShift

Support => Linux Specific Issues => Topic started by: kaszak on December 12, 2006, 07:26:43 pm

Title: Error after today update
Post by: kaszak on December 12, 2006, 07:26:43 pm
Hello
Today i updated my PlaneShift and after it i get segfaults in any PS app (psclient, updater, pssetup etc.). The error code is:
Code: [Select]
kaszak@debian:~$ /opt/PlaneShift/psclient
DEBUG: Sound System Software Renderer Initializing...
ALSA lib pcm_direct.c:224:(make_local_socket) connect failed: čÔZĄ: Nie ma takiego pliku ani katalogu < No such file or directory in polish  :P
ALSA lib pcm_dmix.c:894:(snd_pcm_dmix_open) unable to connect client

crystalspace.graphics3d.shadercompiler.xmlshader:
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef __SHADERFRAMEWORK_CG_INC__ ?]
  Unknown command 'Define'
  [node: include,?Define __SHADERFRAMEWORK_CG_INC__ ?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef __SHADERFRAMEWORK_INC__ ?]
  Unknown command 'Define'
  [node: include,?Define __SHADERFRAMEWORK_INC__ ?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef __SHADERCOND_TOOLS_INC__ ?]
  Unknown command 'Define'
  [node: include,?Define __SHADERCOND_TOOLS_INC__ ?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue_SurfaceClassic?]
  Unknown command 'Define'
  [node: include,?Define _glue_SurfaceClassic?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue_LightingClassic?]
  Unknown command 'Define'
  [node: include,?Define _glue_LightingClassic?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue_SectorFog?]
  Unknown command 'Define'
  [node: include,?Define _glue_SectorFog?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue_Parallax?]
  Unknown command 'Define'
  [node: include,?Define _glue_Parallax?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'TemplateWeak'
  [node: include,pass,?TemplateWeak WriteVertexProgram?]
  'Endtemplate' without 'Template'
  [node: include,pass,?Endtemplate?]
  Unknown command 'TemplateWeak'
  [node: include,vp,cgvp,?TemplateWeak CgVertexOptions?]
  'Endtemplate' without 'Template'
  [node: include,vp,cgvp,?Endtemplate?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _resshared_texture?]
  Unknown command 'Define'
  [node: include,?Define _resshared_texture?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue__resshared_texture?]
  Unknown command 'Define'
  [node: include,?Define _glue__resshared_texture?]
  Unknown command 'texture'
  [node: include,?texture?]
  Unknown command ';"'
  [node: include,?;"?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _resshared_primary?]
  Unknown command 'Define'
  [node: include,?Define _resshared_primary?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue__resshared_primary?]
  Unknown command 'Define'
  [node: include,?Define _glue__resshared_primary?]
  Unknown command 'primary'
  [node: include,?primary?]
  Unknown command ':;"'
  [node: include,?:;"?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _resshared_texture?]
  Unknown command 'Define'
  [node: include,?Define _resshared_texture?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue__resshared_texture?]
  Unknown command 'Define'
  [node: include,?Define _glue__resshared_texture?]
  Unknown command 'texture'
  [node: include,?texture?]
  Unknown command ';"'
  [node: include,?;"?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _resshared_primary?]
  Unknown command 'Define'
  [node: include,?Define _resshared_primary?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue__resshared_primary?]
  Unknown command 'Define'
  [node: include,?Define _glue__resshared_primary?]
  Unknown command 'primary'
  [node: include,?primary?]
  Unknown command ':;"'
  [node: include,?:;"?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _resshared_texture?]
  Unknown command 'Define'
  [node: include,?Define _resshared_texture?]
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef _glue__resshared_texture?]
  Unknown command 'Define'
  [node: include,?Define _glue__resshared_texture?]
  Unknown command 'texture'
  [node: include,?texture?]
  Unknown command ';"'
  [node: include,?;"?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
  Unknown command 'SEndIf'
  [node: include,?SEndIf?]
Naruszenie ochrony pamięci < This is segmentation fault  :P
kaszak@debian:~$
I`m using latest Debian Sid, Nvidia GeForce FX 5500 with latest drivers. Other games (like Tremulous, Savage, ET etc.) works fine.
What`s wrong? Please, help  :'(
Title: Re: Error after today update
Post by: Xordan on December 13, 2006, 12:33:36 am
Try running ./fixlibs.sh
Title: Re: Error after today update
Post by: kaszak on December 13, 2006, 03:08:36 pm
Try running ./fixlibs.sh
I did this. Script downloaded something, but i`m getting the same error.
Title: Re: Error after today update
Post by: fozner on December 13, 2006, 06:15:47 pm
I can verify this. I am getting the same error.  It looks like it's trying to execute a data file or some junk.

I tried grepping around for TemplateWeak and SEndIf and got this:

data/shader/snippets/shaderframework.inc
data/shader/snippets/shaderframework-cg.inc
data/shader/snippets/shadercond-tools.inc

By deleting the above files and moving the updater and friends back out of moved/ I was able to run the updater again but it's still not fixed.
Title: Re: Error after today update
Post by: Xordan on December 13, 2006, 06:50:52 pm
Try deleting the libasound.so.2 in your libs/ dir. What effect does that have?
Title: Re: Error after today update
Post by: fozner on December 13, 2006, 06:58:25 pm
no effect from deleting libs/libasound.so.2
I should add that the game was working before update.

I found the troubleshooting guide under planeshift/guide/en/ and I'll read that after breakfast.
Title: Re: Error after today update
Post by: Xordan on December 13, 2006, 07:12:03 pm
ok, I don't have many other ideas... it could be a code bug in CS. Do you have another copy of CS installed on your machine which could be conflicting? I'm surprised that deleting that lib doesn't get rid of the ALSA error at the top of the output at least.
Title: Re: Error after today update
Post by: fozner on December 13, 2006, 07:34:22 pm
I noticed the updater set some of the files noexec, so I went ahead and chmod 755 the entire tree.  Still no change in behavior, though.

from /var/log/messages

Dec 13 08:46:19 aardvark kernel: psc[3943]: segfault at 0000000000000001 rip 0000000000a5a7a8 rsp 00007fff37a5ad80 error 4
Dec 13 08:46:19 aardvark kernel: EDAC k8 MC0: GART TLB errorr: transaction type(generic), cache level(generic)
Dec 13 08:46:19 aardvark kernel: EDAC k8 MC0: extended error code: GART error

uh oh, could be a driver error. It's the beta driver and has bugs.

I'm using Fedora Core 6, aiglx/compiz with nVidia 6800, direct rendering enabled

Here is the output after removing the libs/libasound.so.2

DEBUG: Sound System Software Renderer Initializing...
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default

crystalspace.graphics3d.shadercompiler.xmlshader:
  Unknown command 'SIfNDef'
  [node: include,?SIfNDef __SHADERFRAMEWORK_CG_INC__ ?]
  Unknown command 'Define'
  [node: include,?Define __SHADERFRAMEWORK_CG_INC__ ?]
..snip...           

$ sysinfo

# sysinfo by Henry Kroll III, www.thenerdshow.com

cat ~/bin/sysinfo &&cat /proc/cpuinfo|grep "model name"|cut -d : -f 2 &&glxinfo|grep OpenGL|tail -n 3|head -n 2|cut -d : -f 2 &&echo " `uname -ri`"&&X -version

 AMD Athlon(tm) 64 Processor 2800+
 GeForce 6800/AGP/SSE2
 2.1.0 NVIDIA 97.42
 2.6.18-1.2849.fc6 x86_64

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.9-34.ELsmp x86_64 Red Hat, Inc.
Current Operating System: Linux ns2 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:34:46 EST 2006 x86_64
Build Date: 15 November 2006
Build ID: xorg-x11-server 1.1.1-47.1.fc6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present

                             
Title: Re: Error after today update
Post by: kaszak on December 13, 2006, 07:42:16 pm
Try deleting the libasound.so.2 in your libs/ dir. What effect does that have?
Effect is my Amarok shutted up xD.

I deleted this three shader files too and runned updater.It downloaded something and i getting the same errors  :-X i will wait for more game updates (maybe developers will fix it).
Title: Re: Error after today update
Post by: fozner on December 15, 2006, 11:00:15 am
I downloaded the new version from

http://mirror.psde.de/

http://www.psmirror.org/

http://ftp.snt.utwente.nl/pub/games/planeshift/

and it works great now (even sound, after I renamed the libs dir).  :woot: