View previous topic :: View next topic |
Author |
Message |
chunkymonky
Joined: 20 Feb 2005 Posts: 31
|
Posted: Mon Feb 05, 2007 13:53 Post subject: |
|
|
Ah, that would be most helpful. I will check this out when I get home. thanks. (I am stranded in Lake Placid, 6 hours from home and server...stupid cars...) |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Tue Feb 06, 2007 23:41 Post subject: |
|
|
weird..I seem to be switching names. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Thu Feb 08, 2007 23:33 Post subject: |
|
|
Anyhow, I have a set of logfiles now, and I have looked them all over, and there doesn't seem to be a command that is taking the server down. The last crash was after a prolonged period of no chat commands, as far as I can see. Is there another logging option in NWNx I can set to get more info? _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Thu Feb 08, 2007 23:57 Post subject: |
|
|
You could use the profiler plugin and set it to full logging. That generates a lot of data, but you might spot a certain script that runs just before a crash. _________________ Papillon |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Fri Feb 09, 2007 2:31 Post subject: |
|
|
if thats what it takes, then so be it. I need to know what script is taking this thing down. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Sun Feb 11, 2007 16:55 Post subject: |
|
|
Alright, I have some serious data now, but I cant see a script that is causing the crash. The profiler has been running for 2 days. There was one crash in that time. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Feb 12, 2007 1:49 Post subject: |
|
|
The broken script is basically the last script in the log.
But it can be some rare bug in NWNX. Only core dump+gdb can tell (in Linux.. I don't know much about core dumping in Windows). For example, last week I discovered a strange bug when NWNX tried to call OnRequest from non-existent library (the data at the pointer definitely wasn't a NWNX library class). I still haven't found out what made the Libraries class return that incorrect pointer as well as couldn't reproduce it. |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Mon Feb 12, 2007 5:41 Post subject: |
|
|
Well, I can definitely find that broken script if'n thats the problem.
I will post what I find when I get a sec for looking.
Edit:
I am looking at the logfile, and the last script in the stack is fky_chat
That's not what I was hoping to see. Well, at least I know what script to look into, I guess. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Tue Feb 13, 2007 8:42 Post subject: |
|
|
What that means, of course, is that a speech event triggered the crash, almost definitely due to some script conflict, though possibly to an issue with the plugin itself, or the scriptset. I would enable the text logging, and move it up to the top of the scriipt (after the needed info is retrieved), in hopes of catching the problem text and getting it logged before it causes the crash. Also might want to alert your players to the problem, one of them may remember typing something just before the server downs. It's also possib;e you have a malicious user overloading the chat buffer to crash the server when they want (to dupe, or for whatever reason). I was planning to add an option in SIMTools to guard against that, basically just a length cap on a mesage before it was autosuppressed - you could try adding such a limiter, but I would make the limit good and long if you do. (Send me a PM if you want to learn more about chat buffer crashing). Judging by the onset coinciding with SIMTools though, I spose it's more likely the script or plugin.
Funky |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Feb 13, 2007 9:18 Post subject: |
|
|
There was a bug in NWNX Chat that could cause these crashes. It was discovered and fixed yesterday, but due to technical problems with one of my hard drives I can't access Windows sources now.
Quote: | It's also possib;e you have a malicious user overloading the chat buffer to crash the server when they want (to dupe, or for whatever reason). I was planning to add an option in SIMTools to guard against that, basically just a length cap on a mesage before it was autosuppressed - you could try adding such a limiter, but I would make the limit good and long if you do. (Send me a PM if you want to learn more about chat buffer crashing). | Buffer overloading?! Why don't I know about it?
P.S. The next release of NWNX Chat will contain full sources. |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Tue Feb 13, 2007 21:21 Post subject: |
|
|
Nice! When will the updated linux version be available? Nice catch, and nice fix, both of you!
Funky |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Wed Feb 14, 2007 1:03 Post subject: |
|
|
That may actually be the best news I have gotten all day
Who'da thunk a bug could ever be good news? _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Wed Feb 14, 2007 2:52 Post subject: |
|
|
virusman wrote: | There was a bug in NWNX Chat that could cause these crashes. It was discovered and fixed yesterday, but due to technical problems with one of my hard drives I can't access Windows sources now.
Quote: | It's also possib;e you have a malicious user overloading the chat buffer to crash the server when they want (to dupe, or for whatever reason). I was planning to add an option in SIMTools to guard against that, basically just a length cap on a mesage before it was autosuppressed - you could try adding such a limiter, but I would make the limit good and long if you do. (Send me a PM if you want to learn more about chat buffer crashing). | Buffer overloading?! Why don't I know about it?
P.S. The next release of NWNX Chat will contain full sources. |
Sending you a pm re: chat buffer overloads.
Funky |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Wed Feb 14, 2007 5:36 Post subject: |
|
|
Personally (yes I know the above PM mention was to virusman) I am not too worried about the players crashing the server using chat commands. We have a pretty good bunch on there, and they don't seem the type. If it becomes a problem, I will contact you. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Feb 14, 2007 9:54 Post subject: |
|
|
Anyway, I'll fix the chat buffer overflow bug as well. |
|
Back to top |
|
|
|