SphereCommunity
Completely random crash? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Completely random crash? (/Thread-Completely-random-crash)

Pages: 1 2 3


Completely random crash? - Ultima One - 01-24-2013 08:27 AM

Code:
23:23:(achievements.scp,161)Chibanga:03dcdfc4 unlocked achievement: Killed 10 players
23:23:(k_MAIN_death.scp,343)Chibanga[TKZAO1] gains 132 karma for killing Jessica Cox[cantador].
23:23:(k_MAIN_events.scp,1385)Victim is 03d6eb4a Jessica Cox Killer is 03dd6d4e Tiesto
23:23:(achievements.scp,161)Tiesto:03dd6d4e unlocked achievement: Killed 10 players
23:23:(k_MAIN_death.scp,343)Tiesto[Spitfire27] gains 132 karma for killing Jessica Cox[cantador].
23:23:P'Jessica Cox' was killed by accident.
23:23:ERROR:(sphere_backward_compatibility.scp,27)Can't resolve <NPC>
23:23:ERROR:(k_functions_char.scp,20)Undefined symbol ''
23:23:e1:'Chibanga' Says UNICODE 'PTG' '2222' mode=0
23:23:(k_MAIN_death.scp,220)Found Char Memory for Varnisha: Color=030
23:23:(k_MAIN_death.scp,235)Found Char Memory for Radagast on Man: Color=035
23:23:(k_MAIN_death.scp,220)Found Char Memory for Analog: Color=031
23:23:(k_MAIN_events.scp,1385)Victim is 03b683dd Shadow Killer is 03de6840 b``
23:23:(k_MAIN_death.scp,343)b``[b``] gains 47 karma for killing Shadow[].
23:23:105:Client connected [Total:67] ('186.214.66.2' 1/1)
23:23:105: Account 'comilao' already in use.
23:23:WARNING:105:Bad Login 1 (The account entered is already being used)
23:23:105:Client disconnected [Total:66] ('186.214.66.2')
23:23:FATAL:Segmentation fault
23:23:FATAL:Server Unstable: Aborted
23:23:FATAL:Server Unstable: Aborted
23:23:FATAL:Server Unstable: Aborted
23:23:FATAL:Server Unstable: Aborted
23:23:FATAL:Server Unstable: Aborted

This happened after normal activity above..

What can cause a Segmentation fault?


RE: Completely random crash? - RanXerox - 01-24-2013 03:10 PM

technically, this is http://en.wikipedia.org/wiki/Segmentation_fault ... another possible explanation for segmentation fault is: the computer just did what the programmer told it to do... :-p


RE: Completely random crash? - Ultima One - 01-24-2013 11:53 PM

So, not something wrong with my scripts? Sphere just dying right?


RE: Completely random crash? - Mordaunt - 01-25-2013 12:02 AM

Never come across this myself, but having read the page referenced by RanXerox, it's not your scripts.


RE: Completely random crash? - Ultima One - 01-25-2013 05:40 AM

Now this happened today...

Code:
18:55:160: Account 'ThiagoMartins' already in use.
18:55:WARNING:160:Bad Login 1 (The account entered is already being used)
18:55:160:Client disconnected [Total:68] ('177.142.87.152')
18:55:d7:'thobiaz' commands 'skillrolls'=1
18:55:15f:'Gaffer' commands 'g eos'=1
18:55:15f:'Gaffer' commands 'g im gonna have to see how many books i got lol'=1
18:55:(k_MAIN_skill_init.scp,632)DynamiC Trying to Tame NPC Maynard
18:55:136:'ivanpi' commands 'remove'=1
18:55:'ivanpi' commands uid=043aecaeb (bloodrock halberd) to 'remove'=1
18:55:136:'ivanpi' commands 'add'=1
19:01:WARNING:Forcing thread 'Main' to terminate...
19:01:CRITICAL:'Main' thread hang, restarting...


No explanation again....


This happened when I first opened my server again about a week ago, then went away. Now it's back...

Any chance something in game is causing this?


RE: Completely random crash? - RanXerox - 01-25-2013 05:49 AM

What build version of sphereserver are you using? For example, when I start my server, the log tells me:

09:59:Sphere Version 0.56b-Nightly [WIN32] by http://www.sphereserver.com, compiled at Oct 21 2012 (00:05:16), internal build #1543

What version/patch level of the UO client is installed on that server, and has that installation been manually modified? For example, when I start my client it says:

UO Version 7.0.23.1 (patch 65)

...and I have never modified or replaced any of the files in that directory.

Lastly, do you run that client while the server is running?


RE: Completely random crash? - Ultima One - 01-25-2013 06:10 AM

20:24:Sphere Version 0.56b-Nightly [Linux] by http://www.sphereserver.com, compiled at Jan 6 2013 (00:01:20), internal build #1556
20:24:WARNING: --- WARNING ---

There is no 'installation' of UO on the server, just the required Muls - Which are pulled from a 5.0.9.1 patch - which is the highest patch we allow our players to use.

We do have a patch, but its a handful of statics changes in Green Acres and some colours and custom housing, which would exist in the Muls on the server being used by Sphere.

The server is a dedicated CentOS6 server. So I don't run UO on the same machine as Sphere.

Segmantation Fault again, after a resync this time.
Put it back up and happened again within 3 minutes...


<_<_<

Now it dies about 30s after starting. Done a hardware restart too. _>_>>

Update:

So, the random crash before was not related to this it seems, but the instant crashes on restart were due to me changing NPC to our own ISNPC function in this code:

Code:
[function brain] //by Darkandus
if !(<ARGN>)
return <NPC>
else
NPC=<ARGN>
endif

I am not sure why it keeps saying NPC isnt defined.. I thought it was a core thing?


RE: Completely random crash? - Shaklaban - 01-25-2013 10:20 AM

if possible and its a dedicated server (not vm), create virtual machine with wmware etc. and try with windows builds (on 32 bit windows), then you can have an idea about the source of problem (sphere, os or scripts).


RE: Completely random crash? - Ultima One - 01-25-2013 10:43 AM

Can give it a go.

Also, getting some strange behaviour recently too.

Characters will randomly Freeze (including admins), it seems Random, only effect one person at a time (maybe a couple but coincidental). You just freeze and cant move, but everyone around you can move and speak fine, and you can see people move and speak...

This got a bit weird like 3 days ago. I have been modifying a lot of scripts, but nothing that should cause all of this O_O

and an increase in unknown packets.. some examples..

Code:
23:50:WARNING:4d:Unknown game packet (0xe5) received.
23:50:WARNING:4d:Unknown game packet (0x9c) received.
23:50:WARNING:4d:Unknown game packet (0xde) received.
23:50:WARNING:4d:Unknown game packet (0x9e) received.
23:50:WARNING:4d:Unknown game packet (0xe9) received.
23:50:WARNING:4d:Unknown game packet (0x28) received.
23:50:WARNING:4d:Unknown game packet (0x67) received.
23:55:14:'Kleopatra' Says UNICODE 'PTG' 'k' mode=0
23:55:WARNING:53:Unknown game packet (0xb2) received.
23:55:WARNING:53:Unknown game packet (0x45) received.
23:55:(k_MAIN_death.scp,181)Varnisha Not charged for killing Fallen Angel. 0200c
23:55:WARNING:53:Unknown game packet (0xb9) received.
23:55:WARNING:53:Unknown game packet (0xf7) received.
23:59:2d:'Morgana' Says 'Guards' mode=0
23:59:WARNING:55:Unknown game packet (0xe7) received.
23:59:WARNING:55:Unknown game packet (0x1b) received.
23:59:WARNING:55:Unknown game packet (0x1e) received.

And - this seems to be a recurring issue, I can't fix it.. NPC is built in to Sphere isn't it? I thought this was long gone, but it is inside the [function brain] - which we use to check for ISNPC.

Code:
02:01:ERROR:(sphere_backward_compatibility.scp,27)Can't resolve <NPC>



RE: Completely random crash? - Skul - 01-25-2013 04:04 PM

Here's a link for unknown packet support: http://forum.spherecommunity.net/Thread-Unknown-Packet-Support