Issue information

Issue ID
#1621
Status
Invalid
Severity
None
Started
Hercules Elf Bot
Jun 6, 2008 0:35
Last Post
Hercules Elf Bot
Apr 18, 2012 15:51
Confirmation
N/A

Hercules Elf Bot - Jun 6, 2008 0:35

Originally posted by [b]Cartoons[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1621

I have received many map crashes due to this issue. Before crashing, it lags for 10-30 minutes or maybe more, I haven't let it stay alive that long for it to die. Before it does, it continually saves some pets (different every crash) thousands of times. The log of the char server points to this in the char.c

QUOTE
int parse_frommap(int fd)
{
int i = 0, j = 0;
int id;

// Sometimes fd=0, and it will cause server crash. Don't know why. :(
if (fd <= 0) {
ShowError("parse_frommap error fd=%d\n", fd);
return 0;
}

ARR_FIND( 0, MAX_MAP_SERVERS, id, server[id].fd == fd );
if(id == MAX_MAP_SERVERS)
set_eof(fd);
if(session[fd]->flag.eof) {
if (id < MAX_MAP_SERVERS) {
unsigned char buf[16384];
ShowStatus("Map-server %d (session #%d) has disconnected.\n", id, fd);


I have had this issue for months and have tried many many different things to attempt to fix it, and it still continues. Please take a look.