PlaneShift

Development => Development Deliberation => Topic started by: davewb on March 05, 2006, 12:21:14 am

Title: psserver segmentation fault
Post by: davewb on March 05, 2006, 12:21:14 am
Hi

For the first time, I am trying to run \'psserver\' - on Ubuntu Linux.

As far as I can tell, everything has built ok... except I get a segmentation fault, after a bunch of plugin problems...

From the below transcript of a session, can someone spot if the errors are indicative of something obvious that is missing/incorrect about my psserver setup please?

Many thanks
Dave



$ ./psserver
crystalspace.render3d.null:
  Using windowed mode 640x480.
-Server Console initialized (./psserver-V0.1)-
All LOGS are off.
Skipping disallowed word \'i\' in trigger \'i bring glyph from maleenki\' at position 0.
Trigger without dissallowed words: bring glyph from maleenki

Load
:
  NULL psDBMovement (3) found in SpeedOp
  NULL psDBMovement (3) found in SpeedOp
PS Server: loadmap npcroom
Cleaning map file.
Region npcroom loaded successfully in 167ms
PS Server: spawn

crystalspace.pluginmgr.loadplugin:
  could not load plugin \'crystalspace.mesh.loader.factory.sprite.cal3d\'

crystalspace.maploader.parse.meshfact:
  Error loading plugin \'crystalspace.mesh.loader.factory.sprite.cal3d\'![node:
  library,meshfact(name=enkim),plugin]

cel.pfmesh.loadmeshfactory:
  Error loading mesh object factory or library
  \'/planeshift/models/enkim/enkim.cal3d\'!

InitMesh
:
  Could not set mesh with factname=enkim and
  filename=/planeshift/models/enkim/enkim.cal3d. Trying dummy model

crystalspace.pluginmgr.loadplugin:
  could not load plugin \'crystalspace.mesh.loader.factory.sprite.cal3d\'

crystalspace.maploader.parse.meshfact:
  Error loading plugin \'crystalspace.mesh.loader.factory.sprite.cal3d\'![node:
  library,meshfact(name=stonebm),plugin]

cel.pfmesh.loadmeshfactory:
  Error loading mesh object factory or library
  \'/planeshift/models/stonebm/stonebm.cal3d\'!

InitMesh
:
  Could not use dummy CVS mesh with factname=stonebm and
  filename=/planeshift/models/stonebm/stonebm.cal3d

gemObject
:
  Could not create Item because mesh could not be Init\'d.

gemObject
:
  Name: MaleEnki Factory: enkim File: /planeshift/models/enkim/enkim.cal3d

InitLinMove
:
  No entity!  Actor not created.

gemActor
:
  Could not initialize LinMove prop class, so actor not created.

gemNPC
:
  Error in GemNPC enkim constructor File: /planeshift/models/enkim/enkim.cal3d
Error while creating Entity for NPC \'4\'
Segmentation fault

Title:
Post by: DaveG on March 05, 2006, 01:40:02 am
What CS/CEL date did you use?  It should be 18th of February or later.  Did you build the cal3d plugin?  (and cal3d for that matter?)  Did you put the valid models.zip from the updater or package into your art dir, or change the cfg files to point to it?
Title:
Post by: davewb on March 05, 2006, 10:26:01 am
thanks DaveG

For CS/CEL/cal3d I used 16th/17th Feb which is what is advised in the build-guides in /docs folder of PS. Is that now incorrect?

I built it as per the build-guides so I assume the cal3d plugin is there but I shall check.

As for models.zip, I ran updater after building so again I assume its correct...
Title:
Post by: DaveG on March 05, 2006, 02:28:39 pm
Dates are good, and you should be working...  hmm...  Check for stickies; make sure you have updated all the sources clean.  (this looks like an older bug that was in CS, but is fixed at that point; make sure you\'ve updated the entire thing)  Make sure you actually have the real models.zip, with the enkim.cal3d file it wants inside.  Check to make sure you also have your CRYSTAL env var set.
Title:
Post by: davewb on March 05, 2006, 05:37:18 pm
We have Success :)

I have upped cal3d/CS/cel to 18th Feb.

I copied the models.zip from my \'playing\' PS install into my PS-development install and it now works - I think.. does this imply that updater for my PS-dev install got the wrong models.zip?

Just to confirm: the \'world\' is very much reduced: a square field, with a smithy, various dwarfs and a couple of guys standing about, potions lying around, etc...

A case of RTFM ;) I think I have confirmed this myself by reading build-faqs in the PS CVS...
Title:
Post by: DaveG on March 05, 2006, 09:19:46 pm
Much testing just needs the NPC room map.  (it\'s on Laanx too, and is used as a staging area for GMs)  However, you can load each map from the server with the loadmap command.  Laziest thing to do is to just make a script to load all the maps, and do \"exec this/filename\" with the script in the PS dir.
Title:
Post by: StarsAndBars_1018 on April 01, 2006, 04:25:38 pm
@davewb: I\'m running the exact same OS as you are, and I seem to have had this problem. For the moment I\'ve been loading psserver without the \"spawn\" step. I\'ll see if your solution works for me too. :)

(EDIT: And it hasn\'t. Sigh.

I don\'t know why. . . Cal3d, CS and Cel are all from the Mar 15 build date, and Planeshift is the latest version.

Also, this is the export section I\'ve added to .bashrc, if that will help anyone:

export MYSQL=/usr/local/mysql
export LD_LIBRARY_PATH=/home/rgandy/Development/cal3d/src/cal3d/.libs/:$LD_LIBRARY_PATH
export CRYSTAL=/home/rgandy/Development/CS
export CEL=/home/rgandy/Development/cel
export CSCONFPATH=/home/rgandy/Development/cel)