Aller au contenu

Photo

Dedicated server crashes some hours after player's login


  • Veuillez vous connecter pour répondre
19 réponses à ce sujet

#1
Grani

Grani
  • Members
  • 554 messages

I've just fixed one crash problem in my module and here's another. :P Oh well.

 

My module tends to crash about 10 hours (but this is not constant, it sometimes happens earlier, sometimes later) after a first player logs in. At least I think so - while I have no solid proof that logging in causes it to happen at some point later, I've not encountered any crashes many hours from launching it if no player joined.

 

The crash happens whether there are some players on the server or not. 

 

I launch the server with NWNX and the following plugins: nwnx_connect, nwnx_patch, nwnx_serverlist, nwnx_files.

 

It would be very difficult, if not impossible, for anyone to magically know what causes this crash just by looking at this post, but perhaps you know at least where I should start the search for the cause?

 

Thanks. ;)



#2
Shadooow

Shadooow
  • Members
  • 4 465 messages

I've just fixed one crash problem in my module and here's another. :P Oh well.

 

My module tends to crash about 10 hours (but this is not constant, it sometimes happens earlier, sometimes later) after a first player logs in. At least I think so - while I have no solid proof that logging in causes it to happen at some point later, I've not encountered any crashes many hours from launching it if no player joined.

 

The crash happens whether there are some players on the server or not. 

 

I launch the server with NWNX and the following plugins: nwnx_connect, nwnx_patch, nwnx_serverlist, nwnx_files.

 

It would be very difficult, if not impossible, for anyone to magically know what causes this crash just by looking at this post, but perhaps you know at least where I should start the search for the cause?

 

Thanks. ;)

basically when its crashing you need to run it without nwnx, so you run it without nwnx - if it helps then you know the problem is in nwnx and then you start adding plugins one by one

 

however, in your case when the crash occurs randomly, this is a bit problematic...

 

nwnx_files are definitely not the cause

nwnx_connect should also not by the cause but well unlike nwnx_files can't guarantee

 

remains only nwnx_patch and nwnx_serverlist

 

I assume you are using the 1.71 version of nwnx_patch that should be safe, however nwnx_patch is still the most likely cause of the crash.

 

So try it without it, if it helps it means its caused by it. And if, then you need to remove it. You might try the version from 1.72beta12 but it will not be any less stable though...


  • Grani aime ceci

#3
Grani

Grani
  • Members
  • 554 messages

I'll try it out! But as you said, it's a bit problematic with the apparent randomness of the crash.

 

Oh, and nwnservererror log file is empty, so that doesn't help me either.



#4
Grani

Grani
  • Members
  • 554 messages

So I've removed temporarily nwnx_patch and nwnx_serverlist. As of now, the server has been running for 14+ hours (with people playing during this period) with no crashes. I'll wait some time longer, just to be sure, but it looks like, as you said, Shadooow, one of these plugins is the culprit.



#5
Shadooow

Shadooow
  • Members
  • 4 465 messages

you are using the nwnx_patch from CPP 1.71 I assume?



#6
Grani

Grani
  • Members
  • 554 messages

you are using the nwnx_patch from CPP 1.71 I assume?

 

Yes. I even made sure yesterday by downloading CPP 1.71 and comparing my nwnx_patch to the one downloaded.



#7
Shadooow

Shadooow
  • Members
  • 4 465 messages

Yes. I even made sure yesterday by downloading CPP 1.71 and comparing my nwnx_patch to the one downloaded.

Thats unfortunate, so I can't advice you to use older version.

 

It is possible I fixed that problem (when its random like in your case its usually memory leak) already in newer versions, however those contain more new features and are likely cause the same problem again.

 

On the other hand, newer version of nwnx_patch allows to disable hooks via ini so you could try it. So get nwnx_patch from 1.72beta12 or 13 and put this into nwnplayer.ini

[Community Patch]

DisableConnect=1
DisableSetLocalStringHook=1
DisableLoadModuleFinishHook=1
DisableWeaponHooks=0
DisableGetTotalACSkillModHook=1
DisableGetUseMonkAbilitiesHook=1
DisableGetCriticalHitRollHook=1
DisableResolveAttackHook=0
DisableAddEquipItemActionsHook=1
DisableSummonAnimalCompanionHook=1
DisableSummonFamiliarHook=1
DisableSummonAssociateHook=1
DisableGetAssociateIdHook=1
DisableUseItemHook=1
DisableEffectImmunityHook=0
DisableResolveDamageShieldsHook=1
DisableGetRelativeWeaponSizeHook=1
DisableHolyAvengerHook=1
DisableToggleModeHook=1
DisableResolveAmmunitionHook=1
DisableSetActivityHook=1
DisableResolveSpecialAttackDamageBonusHook=1
DisableGetMinEquipLevelHook=1
DisableClearAllPartyInvalidActionsHook=1
DisableFireTrapHook=1
DisableFavoredEnemyHook=1
DisableSpellSlotsInPolymorphHook=1
DisableAttackOfOpportunity=1
DisableEffectCasterLevel=1
DisableOnHitCastSpellHook=1
DisableValidateServerCharacter=1

 

With this settings, it should only provide the functionalities from 1.71. BTW if it will still crash with this you can try to disable other options one by one by changing 0 to 1 - this way you will be able to track what exactly is causing the problem which would be very helpful to me as without it there is not much hope I can fix it.



#8
Grani

Grani
  • Members
  • 554 messages

Thats unfortunate, so I can't advice you to use older version.

 

It is possible I fixed that problem (when its random like in your case its usually memory leak) already in newer versions, however those contain more new features and are likely cause the same problem again.

 

On the other hand, newer version of nwnx_patch allows to disable hooks via ini so you could try it. So get nwnx_patch from 1.72beta12 or 13 and put this into nwnplayer.ini

[Community Patch]

DisableConnect=1
DisableSetLocalStringHook=1
DisableLoadModuleFinishHook=1
DisableWeaponHooks=0
DisableGetTotalACSkillModHook=1
DisableGetUseMonkAbilitiesHook=1
DisableGetCriticalHitRollHook=1
DisableResolveAttackHook=0
DisableAddEquipItemActionsHook=1
DisableSummonAnimalCompanionHook=1
DisableSummonFamiliarHook=1
DisableSummonAssociateHook=1
DisableGetAssociateIdHook=1
DisableUseItemHook=1
DisableEffectImmunityHook=0
DisableResolveDamageShieldsHook=1
DisableGetRelativeWeaponSizeHook=1
DisableHolyAvengerHook=1
DisableToggleModeHook=1
DisableResolveAmmunitionHook=1
DisableSetActivityHook=1
DisableResolveSpecialAttackDamageBonusHook=1
DisableGetMinEquipLevelHook=1
DisableClearAllPartyInvalidActionsHook=1
DisableFireTrapHook=1
DisableFavoredEnemyHook=1
DisableSpellSlotsInPolymorphHook=1
DisableAttackOfOpportunity=1
DisableEffectCasterLevel=1
DisableOnHitCastSpellHook=1
DisableValidateServerCharacter=1

 

With this settings, it should only provide the functionalities from 1.71. BTW if it will still crash with this you can try to disable other options one by one by changing 0 to 1 - this way you will be able to track what exactly is causing the problem which would be very helpful to me as without it there is not much hope I can fix it.

 

Alright, I'll try. But given the nature of this problem, it will take rather long to check all these options (assuming crashes still occur if I use the 1.72 version of the plugin). You didn't mention nwnx_serverlist, so I guess it's unlikely to be the problem?



#9
Shadooow

Shadooow
  • Members
  • 4 465 messages

Alright, I'll try. But given the nature of this problem, it will take rather long to check all these options (assuming crashes still occur if I use the 1.72 version of the plugin). You didn't mention nwnx_serverlist, so I guess it's unlikely to be the problem?

I don't know that plugin. Well sure try to plug that one back first but I assume the problem is in my plugin.

 

After all I couldn't test it in a long-term PW environment and it does a bit complicated stuff so its likely the cause of the crash.


  • Grani aime ceci

#10
Grani

Grani
  • Members
  • 554 messages

I've plugged in nwnx_serverlist and a crash occured, though it was weird. NWNX didn't report any restarts, even though there was one. And it happened rather early, so I'm not sure if nwnx_serverlist really is its cause or if it was something unrelated altogether. I'll try it again with this plugin before trying nwnx_patch.



#11
Baaleos

Baaleos
  • Members
  • 1 315 messages

Just wondering 

Linux or Windows?

If windows - then any crash would most likely have created an entry in Windows Event Viewer (eventvwr.exe)

If Linux - you can configure your system to take a core dump.

 

Both of these will usually have a stack trace or a generic message that points to a faulting module.

Eg: If it says the faulting module was nwserver.exe - (on windows) - then you might have a compatibility issue with the server and the dedicated server application.

(On Amazon EC2 - I had difficulty with 2008+, Had to host on 2003 for stability)

 

More often than not - the error reports will say the faulting module was nwnx_chat or something like that - which then tells you the offset and possibly the method that caused the issue.

if you have symbols for the dlls - you can even get more debug info.



#12
Grani

Grani
  • Members
  • 554 messages

Thanks for the info! I'll try to use it the next time a crash occurs... however! I experienced yet another crash when nwnx_serverlist was plugged in and nwnx_patch wasn't, so I unplugged serverlist and plugged patch. The server has been running for 14 hours straight now without a single crash. Let's see if it crashes later - if it doesn't, then it means nwnx_serverlist was the problem here, not nwnx_patch. :)



#13
Shadooow

Shadooow
  • Members
  • 4 465 messages

Thanks for the info! I'll try to use it the next time a crash occurs... however! I experienced yet another crash when nwnx_serverlist was plugged in and nwnx_patch wasn't, so I unplugged serverlist and plugged patch. The server has been running for 14 hours straight now without a single crash. Let's see if it crashes later - if it doesn't, then it means nwnx_serverlist was the problem here, not nwnx_patch. :)

if thats the case then your options are:

- remove it and live without it

- try older/newer verson of that plugin

- contact author

 

Where you even get this plugin and what it's doing?



#14
Grani

Grani
  • Members
  • 554 messages

if thats the case then your options are:

- remove it and live without it

- try older/newer verson of that plugin

- contact author

 

Where you even get this plugin and what it's doing?

 

If I recall correctly, I got it directy from neverwinternights.info. It adds the server to the browser list, so I can definitely live without it - especially considering there are other methods of getting listed.



#15
Grani

Grani
  • Members
  • 554 messages

Well... it's good that I waited a bit, because the server crashed half an hour ago. I'll unplug both of these plugins again.



#16
KMdS!

KMdS!
  • Members
  • 189 messages

Listing the server was easiest for my by modifying hosts file. w/o any hak for the server.



#17
Grani

Grani
  • Members
  • 554 messages

It's no good. Crashes happen even with nwnx_patch and nwnx_serverlist unplugged :/ I'll see if I can use what Baaleos suggested.

 

Edit: There's no entry from 10:04am or around it, and that's when the server crashed. (Windows)

 

I'll check if it's computer-specific, perhaps. I'll launch the server via NWNX with the same module and same plugins on my personal computer and leave it like this for 24 hours or so.



#18
Grani

Grani
  • Members
  • 554 messages

The crash is apparently computer-specific. There has been no crash on my personal machine for almost 24h as of now. Well, this actually calms me down a little - I was afraid the crash is related to my module, but it's good if that's not the case.

 

Still, I'd like to have it resolved. :P



#19
Empyre65

Empyre65
  • Members
  • 371 messages

Maybe a fresh reinstall of the OS would help?



#20
KMdS!

KMdS!
  • Members
  • 189 messages

Probably not related but I am still running the Orlanhia server on a windows XP platform and while I had NWNCX installed. using an old alternate NWNX system, NWN-FF, the connection to the database would be lost sometime within 24 hours. Since NWN-FF locks out players if the connection is lost, no one could get on and I received a "no databae connection" notification in the log.  I took nxncx out and now no problems again....