View previous topic :: View next topic |
Author |
Message |
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Wed Apr 25, 2012 10:48 Post subject: Server hang/freeze |
|
|
Hi!
I decided to create a new topic for this, maybe easier for search.
It's about the server-hang, when the nwserver process do not segfault, but stuck at 98-125% CPU utilization (the latter happens on my linux virtual machine under hyper-v with 2 virtual cpu), every player times out, the server vanish from the server-browser, and logging stops.
Anyone found a solution, or fix? In old threads i found some clues, but those are probably already fixed in 1.69.
On my server, it happens almost every day. First i thought this caused by some SCO/RCO activity. Next i thought it could be the external compiler (using Skywing's), so i compiled with the internal one. It was okay for 2 days...
I attached the gdb to the hanged process, did a simple backtrace, and got this:
http://pastebin.com/GcRuCnvm
http://pastebin.com/Xg0AeezV
Talked to Skywing about this, and as you see, it's stucked somewhere in the AI. Can it be a bugged tileset? Last time there were only 3 players in-game, on standard tileset (CEP modified tilesets actually). I'm really running out of ideas.
R. |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Tue May 29, 2012 12:46 Post subject: |
|
|
After months of struggling, Virusman was so kind to check my hang-bug. He's epic sorcery shed some light on the subject: looks like it was the CEP's "Armor stand" creature.
It's somehow a special creature, modified in the model-level (in toolset, it's an armor-stand, above a rotated bench). In game, somehow they became bumpable and movable by npc-bump after i gave them some armor. And when they tried to occupy the same location, caused the infinite loop in the safe-location search.
Many thanks to Virusman for the debug |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Mon Nov 11, 2013 0:27 Post subject: |
|
|
Hi,
i'm experiencing new server-hangs, but this time it's related to DM's. I have only one DM. Sometimes if he enters the game, the server hangs. About once-twice in a month.
Probably it's never gonna be solved, but i've attached gdb to the hanged process, and done a 'bt':
Code: |
(gdb) bt
#0 0x0829f1c6 in CNetLayerWindow::UnpacketizeFullMessages(int) ()
#1 0x082a07c3 in CNetLayerInternal::ProcessReceivedFrames(int) ()
#2 0x080a04f4 in CServerExoAppInternal::MainLoop(void) ()
#3 0x0804bbe7 in main ()
|
Still in NWN1. |
|
Back to top |
|
|
domaine
Joined: 27 Mar 2008 Posts: 16
|
Posted: Sun Nov 17, 2013 20:17 Post subject: |
|
|
with every pc you use for dm ?
even with a pc without any items in the inventory ?
do you have dmfi installed ? try unistalling it |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Nov 18, 2013 18:29 Post subject: |
|
|
Unfortunately, this backtrace is not enough to find the cause. Investigating hangs, unlike crashes, requires examining the memory of the entire process while it's running.
Looks like some bug in networking code. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Thu Dec 05, 2013 22:51 Post subject: |
|
|
Domaine: sorry i don't know, it's hard to reproduce.
I don't use dmfi, only the standard cep23 stuff, plus some custom tools which uses nwnx_event. |
|
Back to top |
|
|
|