|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Forum Newbie
Join Date: Jul 2004
Age: 25
Posts: 48
|
Quote:
Um, any ideas?
__________________
There are only 10 or 01 kinds of people, those who understand big and little endian, and those who do not. |
|
|
|
|
|
|
#2 (permalink) |
|
RunUO Forum Moderator
|
Debug crash report might bring up more ideas.
__________________
I always try to help
![]() Sometimes, I don't know how.... ![]() My Web Page Forum Rules ------------------------------------------------------------- Extensive OWLTR System | Token System | World Teleporters ------------------------------------------------------------- |
|
|
|
|
|
#3 (permalink) | |
|
Forum Newbie
Join Date: Jul 2004
Age: 25
Posts: 48
|
That is the report after I turned on debug though... O_o
I mean, here's the console dump for the server starting: Quote:
__________________
There are only 10 or 01 kinds of people, those who understand big and little endian, and those who do not. |
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
|
Are you running it from the command prompt?
I may be wrong, but I think I heard somebody on this forum (lately) saying that was cause of a similar problem.
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!! |
|
|
|
|
|
#5 (permalink) |
|
Forum Newbie
Join Date: Jul 2004
Age: 25
Posts: 48
|
Well I use a custom solution that restarts the server and lets me remotely stop or restart it as well. So it might be that, but I just spent a good half hour searching for something about this and coming up with a lot of blanks.
If anyone has the solution to this I'd much appreciate knowing.
__________________
There are only 10 or 01 kinds of people, those who understand big and little endian, and those who do not. |
|
|
|
|
|
#8 (permalink) |
|
Forum Newbie
Join Date: Jul 2004
Age: 25
Posts: 48
|
Well without that solution it becomes really hard to manage the server? >_> I suppose I can try that.
And yes, I have a bunch of scripts installed including XmlSpawners, Knives' Townhouses, Sleepable Beds, QuickRestart and a custom script I made for a dye remover item. I fail to see how any of them would throw an exception in Core.Main() though, if it was a script erroring out wouldn't it give me a stack trace to a script and give a lot more information if it's in debug mode? Meh, this thing has me completely dumbfounded. ![]() EDIT: Oh AND they always happen when nobody's on, so far. Which makes it even more mysterious.
__________________
There are only 10 or 01 kinds of people, those who understand big and little endian, and those who do not. Last edited by Shanira; 11-07-2006 at 12:56 PM. |
|
|
|
|
|
#10 (permalink) |
|
Forum Novice
Join Date: May 2004
Age: 48
Posts: 100
|
Have you deleted the
Scripts.cs.dll Scripts.cs.hash From the Scripts output folder ? If not do so Also the reportHistory.xml and StaffHistory.xml from the main directory I would do that before anything else if you have made or added any new scripts and that should fix it. As long as its not a script issue. Good Luck |
|
|
|
|
|
#12 (permalink) |
|
Forum Newbie
Join Date: Jul 2004
Age: 25
Posts: 48
|
If nobody runs a shard with it bugs like this might not come to the surface though?
Well I let a more schooled friend of mine look at him and according to him the problem is in the core file Main.cs, in Core.Main() (stock, I haven't done core modifications) Code:
if ( ( ++sample % sampleInterval ) == 0 ) {
now = DateTime.Now;
m_CyclesPerSecond[m_CycleIndex++ % m_CyclesPerSecond.Length] =
ticksPerSecond / ( now.Ticks - last.Ticks );
last = now;
}
I'll uh, think of a fix later when I'm not distracted by playing PSU but this basically seems to be where the problem is.
__________________
There are only 10 or 01 kinds of people, those who understand big and little endian, and those who do not. Last edited by Shanira; 11-07-2006 at 03:11 PM. |
|
|
|
|
|
#13 (permalink) |
|
RunUO Forum Moderator
|
Actually it use the operator % in order to ensure that it will never go out of bounds.
__________________
I always try to help
![]() Sometimes, I don't know how.... ![]() My Web Page Forum Rules ------------------------------------------------------------- Extensive OWLTR System | Token System | World Teleporters ------------------------------------------------------------- |
|
|
|
|
|
#14 (permalink) |
|
Forum Newbie
Join Date: Jul 2004
Age: 25
Posts: 48
|
Asked him again about it today, and explained what you said here. As I understand m_CycleIndex will increase every loop through. The modulus operator will make sure it won't get out of bounds, I just realized.
Only problem comes up when m_CycleIndex is 2147483647. Apparantly in C# 2147483647 + 1 = -2147483648 I never thought of that as I'm used to getting overflow errors if I try a stunt like that. -2147483648 mod 100 = -48 m_CyclesPerSecond[-48] = ticksPerSecond / ( now.Ticks - last.Ticks ); And considering: private static float[] m_CyclesPerSecond = new float[100]; BOOM index out of range exception, server blows up. Considering the crash was about every 3 days, this should be what's happening as far as I can tell.
__________________
There are only 10 or 01 kinds of people, those who understand big and little endian, and those who do not. Last edited by Shanira; 11-08-2006 at 12:48 PM. |
|
|
|
|
|
#17 (permalink) |
|
Forum Expert
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
|
change it to unsigned int
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." |
|
|
|
|
|
#20 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
|
Fixed in SVN Rev 100 and 101.
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
|
|
#23 (permalink) | |
|
Forum Newbie
Join Date: Sep 2006
Age: 51
Posts: 20
|
Quote:
Searching on SVN comes out with no pages. So if you would be so kind to hand the link. Thank you
__________________
It never hurts to help:) |
|
|
|
|
|
|
#25 (permalink) |
|
Forum Newbie
Join Date: Sep 2006
Age: 51
Posts: 20
|
hmm dunno what you mean but in announcements there is no where the link to: Fixed in SVN Rev 100 and 101. It has only links to TortoiseSVN
and I need to know where to download that as the Main.cs is fixed in there for this problem.
__________________
It never hurts to help:) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|