debug assertion failed

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

debug assertion failed

Post by Ememjr » Tue May 30, 2017 10:51 am

any idea why i whould get this error when debugging but not when compiling and running

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Debug Assertion Failed!

Program: ...Projects\..\..\..\..\worldserverlocal\EQ2World__Debug_x64.exe
File: f:\dd\vctools\crt\crtw32\time\strftime.c
Line: 256

Expression: ( timeptr != NULL )

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

---------------------------
Abort Retry Ignore
---------------------------

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: debug assertion failed

Post by Jabantiz » Tue May 30, 2017 3:27 pm

assert() is debug only so when compiled in release they will be disabled. This is saying timeptr == null, the assert implies that timeptr should never be null. As this is a windows file from the looks of it that would mean something is passed incorrectly to the function or something isn't set up right. No clue what function this would be or what calls it, I never get this on my local machine though.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: debug assertion failed

Post by Ememjr » Tue May 30, 2017 4:44 pm

the next time it happens ill try to see what is calling it

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: debug assertion failed

Post by Ememjr » Tue May 30, 2017 4:59 pm

callstack.JPG
so there is the call stack
seems to be something with the packets
You do not have the required permissions to view the files attached to this post.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: debug assertion failed

Post by Ememjr » Tue May 30, 2017 6:04 pm

i was able to bypass the error by commenting out the line that has robert at the end of it,in the eqstream.cpp

Code: Select all

#ifdef EQN_DEBUG
					LogWrite(PACKET__DEBUG, 1, "Packet", "*** Future packet: Expecting Seq=%i, but got Seq=%i", NextInSeq, seq);
					LogWrite(PACKET__DEBUG, 1, "Packet", "[Start]");
					//p->DumpRawHeader(seq); // ROBERT
					LogWrite(PACKET__DEBUG, 1, "Packet", "[End]");
#endif	

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests