Fog crashes server.

Old bugs stored here for reference.
Locked
chrrox
Content Designer
Posts: 177
Joined: Wed Oct 17, 2007 8:12 pm

Fog crashes server.

Post by chrrox » Sat Nov 24, 2007 7:48 am

This happens a lot to the server when characters move to certain locations.
// throw -- terminate on thrown exception REPLACEABLE
#define _HAS_EXCEPTIONS 0
#include <cstdio>
#include <cstdlib>
#include <exception>
#include <crtdbg.h>
_STD_BEGIN
_MRTIMP2_NCEEPURE void __CLRCALL_PURE_OR_CDECL _Debug_message(const char *s1, const char *s2)
{ // legacy report error and die
::fflush(0);
::fputs(s1, _cpp_stderr);
::fputs(s2 != 0 ? s2 : "unknown", _cpp_stderr);
::fputs("\n", _cpp_stderr);
::abort();
}
#ifdef _DEBUG
_MRTIMP2_NCEEPURE void __CLRCALL_PURE_OR_CDECL _Debug_message(const wchar_t *message, const wchar_t *file, unsigned int line)
{ // report error and die
if(::_CrtDbgReportW(_CRT_ASSERT, file, line, NULL, message)==1)
{
::_CrtDbgBreak();
}
}
_MRTIMP2_NCEEPURE void __CLRCALL_PURE_OR_CDECL _Debug_message(const unsigned short *message, const unsigned short *file, unsigned int line)
{ // report error and die
_Debug_message((wchar_t *) message, (wchar_t *) file, line);
}
#endif
_STD_END
_X_STD_BEGIN
_MRTIMP2_NCEEPURE void __CLRCALL_PURE_OR_CDECL _Throw(const exception& ex)
{ // report throw exception and die
std::_Debug_message("exception: ", ex.what());
Image

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Sun Nov 25, 2007 7:09 am

I'm a little confused about this. What is the problem? In your screen shot everything seems fine.

chrrox
Content Designer
Posts: 177
Joined: Wed Oct 17, 2007 8:12 pm

Post by chrrox » Sun Nov 25, 2007 7:25 am

The server is crashed at this point. and it always seems to crash when this happens there is a debug window in the background and the text i posted is the first debug text from visual studio.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Sun Nov 25, 2007 7:32 am

Did they spawn anything before they logged out?

chrrox
Content Designer
Posts: 177
Joined: Wed Oct 17, 2007 8:12 pm

Post by chrrox » Sun Nov 25, 2007 3:37 pm

nope.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Sun Nov 25, 2007 5:42 pm

Next time it happens can you look at the call stack and see where it is being called from? The text you posted was the end result and unfortunately it is useless for tracking down the cause.

Diamente
Retired
Posts: 45
Joined: Mon Jul 30, 2007 7:49 am
Location: Oklahoma

Post by Diamente » Mon Dec 31, 2007 12:53 am

The commands /camp and /quit also currently throw this opcode (OP_MapFogDataUpdateMsg), it looks like you may have been receiving the error when the zoneserver was shutting down Antonica. If that is the case, then if you have the latest SVN revision you should no longer have this issue.
Please let us know if you are still having the problem, and as LE suggested, check the call stack to see if you can see what function is throwing the error. Thanks!

Locked

Who is online

Users browsing this forum: No registered users and 0 guests