Bug: Boards won't load properly
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Apr 26, 2010 9:43 am
Magician
GroupMembers
Posts148
JoinedJan 24, 2008
The MUD I work on has been having some problems with crashing lately. It seems that people are sending very long notes through the mail system. When the MUD goes to load, we receive this:
It seems to me like the buffer doesn't count color codes when you input data but I'm not sure. Anyone ever experience anything like this? This was tested on swr1.3fuss stock and also happens on a non FUSS MUD. Any ideas?
Mon Apr 26 10:37:58 2010 :: ../boards/mail_net Mon Apr 26 10:37:58 2010 :: [*****] BUG: fread_string: string too long Mon Apr 26 10:37:58 2010 :: [*****] BUG: read_note: bad key word
It seems to me like the buffer doesn't count color codes when you input data but I'm not sure. Anyone ever experience anything like this? This was tested on swr1.3fuss stock and also happens on a non FUSS MUD. Any ideas?
#2 Apr 26, 2010 12:52 pm
Last edited Apr 26, 2010 12:52 pm by ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008
Take a look at your MSL defines in mud.h
My best guess is the End at the end of the message file is getting chopped off. Default I think the mud can handle 49 lines, or 4094( or 3) bytes. It's defined as 4096 but the \n\r takes up two char spots. Kinda graspin at straws here, but I remember seeing something similar happen to me.
ayuri
My best guess is the End at the end of the message file is getting chopped off. Default I think the mud can handle 49 lines, or 4094( or 3) bytes. It's defined as 4096 but the \n\r takes up two char spots. Kinda graspin at straws here, but I remember seeing something similar happen to me.
ayuri
#3 Apr 26, 2010 12:59 pm
Magician
GroupMembers
Posts239
JoinedJun 13, 2008
What about a Buffer full message?
Editor.c of swfotefuss:
I tried to fill up a mail note and got that. I'll dig some more, but take a peek at your mail file and see if there is something missing.
ayuri
Editor.c of swfotefuss:
if( TOTAL_BUFFER_SIZE( edd ) + linelen + 2 >= edd->max_size ) { send_to_char( "Buffer full.\r\n", ch ); editor_save( ch, edd, "" ); }
I tried to fill up a mail note and got that. I'll dig some more, but take a peek at your mail file and see if there is something missing.
ayuri
#4 Apr 26, 2010 1:52 pm
Magician
GroupMembers
Posts148
JoinedJan 24, 2008
That may work.
Try dropping in a ton of color codes in a note fill it up and then copyover. It crashes for me.
Try dropping in a ton of color codes in a note fill it up and then copyover. It crashes for me.
Pages:<< prev 1 next >>