PDA

View Full Version : Random Crashes


:: Eru ::
23.05.2007, 09:09
Hi guys!
After a very long time reading this forum, now it's my time to ask for some advice (and hoping for being able to help you in the future)

I'm running a L2C4 server since a month ago, and I've been suffering some random and weird crashes. I start AuthD, CacheD, L2S, L2NPC apparently with no problems. When everything is up & running, a random time passes...and crash. No errors appearing neither on L2Server before it dies, nor on L2NPC. CacheD doesn't show red messages, and it doesn't die! (That's good, in fact =P).

The server is:
- DFI NF4 Ultra-D
- AMD Opteron 165 (2x 1.8GHz)
- 4x 1GB DDR400
- 1x 80GB SATA2 8MB 7200RPM drive
- Windows 2003 R2 x64 Datacenter
- SQL 2000 SP4
All running in the same box.

The last L2NPC Linerror.txt shows:
minidump result : 0
Crashed Thread[1].
CRASH
Server Up Time : Tue May 22 23:46:46 2007
Current Time : Wed May 23 00:22:48 2007
Elapsed Time : 0 days 0 hours 36 minutes 2 seconds
IOBufferPool - 1997 / 2000, PendingWrite 62 bytes [0]
=============== object report
user[11], npc[34828]
[(268) 2007/05/23 00:22:48]: =======================
an Access Violation in module L2NPC.exe at 0033:005de7a2.
start at 2007/5/22 23:46:44
Write to location 00000000 caused an access violation.

Registers:
EAX=0b7fe690 CS=0033 EIP=005de7a2 EFLGS=00010202
EBX=006e4688 SS=002b ESP=427dfd00 EBP=01b289b0
ECX=0067e678 DS=002b ESI=01b289b4 FS=0053
EDX=00000067 ES=002b EDI=00000003 GS=002b
Bytes at CS:EIP:
41 c6 06 01 65 48 8b 04 25 58 00 00 00 48 8b 08
Stack dump:
427dfd00: 006e4688 00000000 00000067 00000000 00000003 00000000 00000001 00000000
427dfd20: 006e4620 00000000 00000040 00000000 fffffffe ffffffff 0025e51c 00000000
427dfd40: 00019870 00000000 0025e54e 00000000 00000000 00000000 0048163c 00000000
427dfd60: 537b7594 00000000 00000008 00000000 00400000 00000000 000198b8 00000000
427dfd80: 00019870 00000000 77d5fd17 00000000 006895c0 00000000 fffffffe ffffffff
427dfda0: 00400000 00000000 00485a94 00000000 427dfdc0 00000000 0048190b 00000000
427dfdc0: 537b7594 00000000 0000002d 00000000 00000000 00000000 00000008 00000000
427dfde0: 00019870 00000000 00000032 00000000 00000001 00000000 0048068f 00000000
427dfe00: 00000001 00000000 0000002d 00000000 00000001 00000000 0000002d 00000000
427dfe20: 00000032 00000000 00000000 00000000 00000000 00000000 537b7594 00000000


GuardInfo :

IOThread [0][15] (good): void IOThread_common(void *arglist)
Lock Stack :

IOThread [1][781] (ahehe): void IOThread_common(void *arglist) -> void CIOSocket::Close() -> void CServerSocket::OnClose() -> server socket closed
Lock Stack :

IOThread [2][0] (good): void IOThread_common(void *arglist) -> void CIOObject::TimerDispatch(bool bRootLoop) -> void CNPC::TimerExpired(int id) -> inline void AddExecutable(MemoryObject *Matrix, Native Func, CExecutionArgument* Arg) -> add exec - func call -> ASYNCHRONOUS_SERIALIZE_IMPL1(CNPC, AsyncTimerExpired, int, id) -> npc_timer_expired_1 -> int CNPC::HandleEvent(CNPCEvent* pEvent) -> int InterlockedHandleEvent(ScriptEvent* pEvent, CAIParameter* pParameter) -> virtual int HandleEvent(ScriptEvent* pEvent, CAIParameter* pParameter) -> virtual int HandleEvent(ScriptEvent* pEvent, CAIParameter* pParameter, CAIProperty* pProp) -> virtual int HandleEvent(ScriptEvent* pEvent, CAIParameter* pParameter, CAIProperty* pProp) -> int CScriptEngine::RunNPCScript(CNPCEvent* pNPCEvent, CNPCEventHandler *pHandler, CScriptBinCode *pCode, CAIParameter *pParam, CAIProperty *pProp) -> inline RecursiveCounter::RecursiveCounter(void)
Lock Stack :

IOThread [3][31] (good): void IOThread_common(void *arglist)
Lock Stack :

ListenThread [13][31] (good): void NPCServer::Run() -> unsigned __stdcall WaitThread(void *)
Lock Stack :

MainThread [12][2484281] (good): Lock Stack :

GuardInfo end



[(268) 2007/05/23 00:22:48]: *.\ioc.cpp:648(Tue Dec 13 02:52:30 2005) exception


This last days I've been working on many fixes posted here, I really appreciate everyone's will to help. Fixed ai.obj, npcdata, added Rune CH, well...a lot. Tried with my original files, and with my patched & updated files...the same problem. Maybe I'm all day long running and suddenly crashes. When I restart, I last just 20 minutes. There isn't a clear pattern...or maybe I cannot see it.

Thanks for advance just for reading this! I'm open to any type of advice.

Again, thanks.
Muchas gracias.

Regards / Saludos

Nicolas .-

Marios145
23.05.2007, 09:25
have you got amped protection?if not then get it fast!!
try installing sql enterprise 2005
then get a second disk and put the sql databases in there

GMan
23.05.2007, 09:27
Well i might be wrong but im starting to understand how to read these error files. The trick is to look for the ahehe and in yours that line points to the connection to the world server closed, So i would guess theres something going on with i guess lag? or just a thought make sure l2NPC is connecting to 127.0.0.1 and not the external IP (im thinking mabey windows fire wall if its on)

again i dont know the cause, just where to look for whats happening.

hope I helped a little if anything

:: Eru ::
23.05.2007, 09:30
Marios: Yes, I have Amped protection. I'm discarding that for now...

GMan: All config files are pointing to 127.0.0.1 and Windows Firewall is not running. Thanks for the "ahehe" tip, I'll look for the same line in L2S' linerror.txt and try to find something else.

Thanks a lot guys.
Anything you need, just ask.

:: Eru ::
23.05.2007, 20:07
Well, I'm still trying to solve this.

Changed SQL2000 for 2005, 2003 for XP64, everything.
And now, the news are: When everyone logins, they get stuck into the floor. Can't move, can't cast, can't anything. Even seeing their own skills. Nothing...And a lot of critical errors in the client.

I'm starting to think that I can be under a spell or something like that xD

:: Eru ::
24.05.2007, 12:33
Just more info:
Actually it's working ok! :D

XP64 + SQL 2005, all in the same machine. The last error (Critical errors in the client, people unable to do anything) was weird. Truly, I almost became crazy trying to find a solution...but the light came.

Looking into the Critical error message showing in my client, saw a function being called that was strange: LoadTutorialHtm. That's called when you open the Tutorial Guide, so I guessed: Maybe the problem is caused by a connection problem, a NIC doing stupid things with all packets passing through.

I was using DFI's onboard Marvell Yukon NIC, then changed it for DFI's onboard Nvidia NIC....and god, what a change.
I've been running over 7hs without a flaw.

Message of the day: Do not use a Marvell NIC :P

Regards / Saludos!