Full Version : Spawner Question
xmlspawner >>Troubleshooting >>Spawner Question
<< Prev | Next >>
koluch- 02-11-2007
Im seriously hoping that it is not my staff trying different things with the spawners that is causing our severe amount of crashes, but I honestly can not tell!
Our server has been pathetic since going past core 147( the updates right at the middle of January on RunUO )
Crashes are pointing at listener.cs in the core, and seem tied to movement - the direction d, etc )
Our AIs are distro, only addin to basecreature is 4 custom hides(leathers), I just dont know anymore.
I was checking out some spawners this morning and went to one I thought was different ( contained a XMLQuestNPC I guess one of the staffers was trying to work on ) and when I used the .xmlfind and that spawner was listed, I clicked to go there and the server crashed.
PLEASE understand, I am not saying there is something wrong with the XML spawner, I am thinking that one of our staff is trying to set some things up on the spawner and it is not set correctly and perhaps that is what is causing problems.
Is this or could something like this be possible?
We had 2 crashes yesterday with SVN 157 in less that 6 hours - all memory(tested 2 gigs ), network card, anti virus, are fine.
We went to SVN 156 which we crash on constanty, but not 2 in 6 hours and it ran fine til this morning when I went to go to that spawner.
errors are always:
Server.Mobiles.BaseAI.DoActionWander()
Server.Mobiles.BaseAI.DoMove(Direction d, Boolean badStateOk)
Map.PooledEnumerable.Free()
Server.Mobile.Move(Direction d)
Server.Mobiles.BaseAI.DoMoveImpl(Direction d)
etc....
*sigh*
There was a change in FastAStarAlgorithm when all this started and Im curious as to what this file affects.
Suggestions as to where to look, ANYWHERE, are greatly appreciated....
Thanks,
koluch
ArteGordon- 02-11-2007
easiest way to see if it is a problem with the spawners is to turn them all off for a while. It will leave the spawns there but the spawners will no longer be running.
[global set running false where xmlspawner
Is that the full error log? Do you have the full debug from the crashes?
I saw that earlier you were getting crashes in the core mobile Move method when freeing an IPooledEnumerable buffer. Is that the same crash?
What I would suspect from that error is that it is some threaded code that is using pooled enumerables and freeing them in the middle of a similar operation in another thread.
One thing you might try is to disable the [xmlfind command for a while since it does use a separate thread for searching.
koluch- 02-11-2007
Would searching for "pooled enumerables" with agent ransack be possible?? to help locate what may be the issue.
I will post the debug code
Thanks for taking the time to help

CODE
Server Crash Report =================== RunUO Version 2.0, Build 2588.28998 Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2 .NET Framework: 2.0.50727.42
Time: 2/11/2007 4:55:01 AM
Mobiles: 56551
Items: 328132
Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.BeginAccept(Socket acceptSocket, Int32 receiveSize, AsyncCallback callback, Object state)
at System.Net.Sockets.Socket.BeginAccept(AsyncCallback callback, Object state)
at Server.Network.Listener.OnAccept(IAsyncResult asyncResult) in C:\Documents and Settings\XXXX\Local Settings\Application Data\Temporary Projects\CoreFix\server\Network\Listener.cs:line 159
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Here is the console from one of the crashes
If this helps any

CODE
Error: System.NullReferenceException: Object reference not set to an instance of an obj ect. at Server.Map.PooledEnumerable.Free() in C:\Documents and Settings\xxx\Loca l Settings\Application Data\Temporary Projects\Core157Fix\server\Map.cs:line 115
1
at Server.Map.ObjectEnumerator.Free() in C:\Documents and Settings\xxxx\Loca
l Settings\Application Data\Temporary Projects\Core157Fix\server\Map.cs:line 147
8
at Server.Map.ObjectEnumerator.Dispose() in C:\Documents and Settings\xxxx\L
ocal Settings\Application Data\Temporary Projects\Core157Fix\server\Map.cs:line
1561
at Server.Mobile.Move(Direction d) in C:\Documents and Settings\xxxx\Local S
ettings\Application Data\Temporary Projects\Core157Fix\server\Mobile.cs:line 318
6
at Server.Mobiles.BaseAI.DoMoveImpl(Direction d) in c:\RUNUO OURS\Scripts\Eng
ines\AI\AI\BaseAI.cs:line 2011
at Server.Mobiles.BaseAI.DoMove(Direction d, Boolean badStateOk) in c:\RUNUO
OURS\Scripts\Engines\AI\AI\BaseAI.cs:line 1976
at Server.Mobiles.BaseAI.DoMove(Direction d) in c:\RUNUO OURS\Scripts\Engines
\AI\AI\BaseAI.cs:line 1971
at Server.Mobiles.BaseAI.WalkRandom(Int32 iChanceToNotMove, Int32 iChanceToDi
r, Int32 iSteps) in c:\RUNUO OURS\Scripts\Engines\AI\AI\BaseAI.cs:line 1897
at Server.Mobiles.BaseAI.WalkRandomInHome(Int32 iChanceToNotMove, Int32 iChan
ceToDir, Int32 iSteps) in c:\RUNUO OURS\Scripts\Engines\AI\AI\BaseAI.cs:line 218
2
at Server.Mobiles.BaseAI.DoActionWander() in c:\RUNUO OURS\Scripts\Engines\AI
\AI\BaseAI.cs:line 897
at Server.Mobiles.AnimalAI.DoActionWander() in c:\RUNUO OURS\Scripts\Engines\
AI\AI\AnimalAI.cs:line 64
at Server.Mobiles.BaseAI.Think() in c:\RUNUO OURS\Scripts\Engines\AI\AI\BaseA
I.cs:line 786
at Server.Mobiles.BaseAI.AITimer.OnTick() in c:\RUNUO OURS\Scripts\Engines\AI
\AI\BaseAI.cs:line 2705
at Server.Timer.Slice() in C:\Documents and Settings\xxxx\Local Settings\App
lication Data\Temporary Projects\Core157Fix\server\Timer.cs:line 499
at Server.Core.Main(String[] args) in C:\Documents and Settings\xxxx\Local S
ettings\Application Data\Temporary Projects\Core157Fix\server\Main.cs:line 450
Crash: Backing up...done
Crash: Generating report...done
This exception is fatal, press return to exit
Error:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.BeginAccept(Socket acceptSocket, Int32 receiveSi
ze, AsyncCallback callback, Object state)
at System.Net.Sockets.Socket.BeginAccept(AsyncCallback callback, Object state
)
at Server.Network.Listener.OnAccept(IAsyncResult asyncResult) in C:\Documents
and Settings\xxxx\Local Settings\Application Data\Temporary Projects\Core157Fi
x\server\Network\Listener.cs:line 160
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr u
serToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Crash: Backing up...done
Crash: Generating report...done
This exception is fatal, press return to exit

Its always pretty much the same thing..