Author Topic: Segmentation fault between selecting player and getting to play :(  (Read 1343 times)

twig

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
Every time I want to get on ./psclient loads fine then I connect to the server and get my character spinning around, but when I click to play, the next screen loads but the bar across the bottom never starts to fill with blue (or at all) here is a dump from running it from the shell:

***********************************************************************

DEBUG: Sound System: Software Renderer Initializing..
DEBUG: Sound System: Configured for driver [crystalspace.sndsys.software.driver.oss]
Sound System: OSS driver for software sound renderer initialized.
Loading required GL library /usr/X11R6/lib/libGL.so.1.2

planeshift.application.client:
  PlaneShift Crystal Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
All LOGS are off.
Mounting skin: /this/art/skins/default.zip
Mounting skin: /planeshift/art/skins/base/client_base.zip
  psEngine initialized.
Using fontsize 16 for resolution 1024x768
WARNING! Object \'spikes_05\' is not closed!
WARNING! Object \'spikes_03\' is not closed!
WARNING! Object \'_s_walls_01\' is not closed!
WARNING! Object \'_s_sigil_01\' is not closed!
WARNING! Object \'_s_sigil_05\' is not closed!
WARNING! Object \'_s_bridge_01\' is not closed!
...

crystalspace.graphics3d.shader.fixed:
  Multitexture units: moderate 4

planeshift.application.client:
  PSLoader: step 2: success

ParseFile
:
  Could not find file: /planeshift/world/podium/sound.xml

planeshift.application.client:
  PSLoader: step 3: success

HandleStatsUpdate
:
  Stat request failed because CelClient not ready for 1833

HandleMessage
:
  Still loading maps, ignoring crossing to sector
  SectorWhereWeKeepEntitiesResidingInUnloadedMaps.

crystalspace.engine.warning:
  Lightmaps are not up to date (no \'lm_precalc_info\' found in cache).
  Use -relight cmd option to calc lighting.
Region hydlaa_common loaded successfully in 13509ms

HandleMessage
:
  Still loading maps, ignoring crossing to sector hydlaa_plaza.

CreatePortalWeather
:
  CreatePortalWeather received invalid sector!

HandleDeadReckon
:
  Sector crossed from SectorWhereWeKeepEntitiesResidingInUnloadedMaps to
  hydlaa_plaza after received DR.
Segmentation fault

***********************************************************************

It did not do this once I had died, (I think), but I can\'t get into the game to get my self killed. Is there another way to get ther server to kill me. Or is there a better solution to this. Please Help I have scoured the forums but have not forun anything of use.


 

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #1 on: March 20, 2006, 09:26:02 pm »
What files do you have in art/world/ ?  Should be a bunch of zip files.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
(No subject)
« Reply #2 on: March 20, 2006, 09:36:13 pm »
Just post your character\'s name in Crash preventing login? Post here for taxi service and a GM will move it to a safe location. It is the Linux version of the 0041AC3B crash on Windows.
« Last Edit: March 20, 2006, 09:37:50 pm by Bereror »
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

twig

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #3 on: March 20, 2006, 09:46:51 pm »
Quote
Originally posted by acraig
What files do you have in art/world/ ?  Should be a bunch of zip files.


Thats correct:
akkaio.zip*         hydlaa_plaza.zip*  korogan.zip*       ojaroad01.zip*
arena.zip*          hydungeon.zip*     laanxdungeon.zip*  podium.zip*
deathrealm.zip*     hyjayose.zip*      laanx.zip*         sewers.zip*
hyarena.zip*        hyojapath.zip*     lighting.xml*      tavern_de_kadel.zip*
hydlaa_common.zip*  hysewers.zip*      magicshop.zip*     wtower.zip*
hydlaa_jayose.zip*  jayose.zip*        npcroom.zip*
 
Please  ignore the \' * \' on the end

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #4 on: March 20, 2006, 09:49:09 pm »
Ok, that looks good, wanted to make sure that all the map files were present.  So Bereror has some good advice there.  

Note to self, make \"CreatePortalWeather received invalid sector!\"  Say which sector.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
(No subject)
« Reply #5 on: March 20, 2006, 09:57:21 pm »
Quote
Originally posted by acraig
Note to self, make \"CreatePortalWeather received invalid sector!\"  Say which sector.

Sector is NULL, so it doesn\'t help you very much ;)
Code: [Select]

    if(!sector)
    {
        Error1(\"CreatePortalWeather received invalid sector!\" );
        return;
    }
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #6 on: March 20, 2006, 10:05:03 pm »
Can place a check in different places for that.  Often time the sector is searched for by name first and passed into that function.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
(No subject)
« Reply #7 on: March 20, 2006, 10:11:29 pm »
Did you download the nvidia-toolkit?
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
(No subject)
« Reply #8 on: March 21, 2006, 10:50:21 am »
Here is a deeper analysis, what happens and why clients sometimes crash when loading the world.

1) After connecting to the server and selecting the character, client starts loading maps for the sector where it is supposed to be.

2) At the same time server sends the main actor to the client.

3) Client sends a psDRMessage message to the server in order to trigger the server to update the list of other actors in the proximity (src/client/pscelclient.cpp psCelClient::HandleActor()).

Since maps are not loaded yet, the current sector in that message is \'SectorWhereWeKeepEntitiesResidingInUnloadedMaps\'.

NB! This step was added in version 0.3.013! Version 0.3.012 didn\'t have it and clients didn\'t crash for this particular reason.

4) Server receives the  psDRMessage message and doesn\'t like the sector \'SectorWhereWeKeepEntitiesResidingInUnloadedMaps\'. It tries to move the actor to a valid position and sends that to the client.

I would guess there a many \"Client sent the server DR message with unknown sector\" error messages on the server console.

5) Client receives the message with a valid position, but the map with that sector is not loaded yet. The CreateWeatherPortal() function prints out an error message, because the sector with that name is not found.

6) Client tries to handle that unknown location, which also includes stopping any movements. Unfortunately the object that handles character movements is created after loading all the maps and client crashes (fixed in CVS).


Most of the clients crash when their last position was in the Jayose\'s library because there are many maps to be loaded and the map with the sector \'jayose_inside\' is the last one on the list. In other locations client manages to load the necessary map file before receiving that message from the server and does\'t crash.

In this particular case the PC seems to be extremely slow when loading maps. It took almost 14 seconds to load the first map \'hydlaa_common\'. On my PC it takes less than 4 seconds. So Death Realm seems to be the only safe location for this client, because there we have only one map that needs to be loaded.
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

twig

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #9 on: March 21, 2006, 05:14:36 pm »
Quote

In this particular case the PC seems to be extremely slow when loading maps. It took almost 14 seconds to load the first map \'hydlaa_common\'. On my PC it takes less than 4 seconds. So Death Realm seems to be the only safe location for this client, because there we have only one map that needs to be loaded.


This may be because it was only running at 600 Mega Hertz as the clock speed instead of the usual 1700. Out of interest what is the MIPS for your computer ?

And will updating to CVS completely fix this problem?

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
(No subject)
« Reply #10 on: March 21, 2006, 05:40:09 pm »
cat /proc/cpuinfo shows that bogomips is 5990.64 on my PC.

The crash was fixed in the CVS version on March 6th, but you have to build it yourself from sources. Also keep in mind that the NET version was changed in March 8th and from that day the CVS version is incompatible with the current Laanx server.
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

Felix Yellowhair

  • Hydlaa Resident
  • *
  • Posts: 120
    • View Profile
(No subject)
« Reply #11 on: April 03, 2006, 03:27:23 am »
Quote
Originally posted by Bereror
Here is a deeper analysis, what happens and why clients sometimes crash when loading the world.

1) After connecting to the server and selecting the character, client starts loading maps for the sector where it is supposed to be.

...

Most of the clients crash when their last position was in the Jayose\'s library because there are many maps to be loaded and the map with the sector \'jayose_inside\' is the last one on the list. In other locations client manages to load the necessary map file before receiving that message from the server and does\'t crash.

...


This seems to explains sort of what was happening to me.

While loading Larun after selecting \"join game\" after the image of the  library appeared, his load would crash out.    My other character would have  no problem getting in.     After a dozen or so tries over a week, I finally looked at the logs containing Larun.    i noticed under my Planeshift3D folder that the logs subfolder only contained an old version of Larun and none of  the other  character.    I looked down under applications  and found another Logs folder and after renaming my Planeshift3D folder to Planeshift 3D,  I deleted the old Logs subfolder and its characters and moved the  Logs folder under Applications to be  a subfolder  of Planeshift 3D folder.     Also the  new Logs folder  has both a char and a system section for each of my two charactrs.

I than tried to get into PS using psclient and to my amazement I succeeded and spawned to the Jayose (Library) section of Hydlaa.    that was early this morning and I just succeeded again tonight my time.

I am using a Max OS 10.4.5  2 GHz PowerPC G5 and ! GB DDR SDRAM.
I posted all but this line but I do not think  this theme is just a Linux issue.

 :)
Well two days later I notice my two characters logs are under a folder Logs under Applications and the older logs are still in the Planeshift 3D Folder.  So it appears my thinking is somewhat flawed.   But getting rid of the old logs must have done something right for me.
puzzled!
« Last Edit: April 04, 2006, 11:03:45 pm by Felix Yellowhair »
Felix Yellowhair
:D