RealBot icon indicating copy to clipboard operation
RealBot copied to clipboard

Crash after changelevel

Open brotalnia opened this issue 9 years ago • 3 comments

There is a bug in NodeMachine.cpp that causes hlds to crash after the map changes several times. The error report states that an Access Violation has occurred. Removing the offending lines from the code fixes the crash, but it cripples the bots' navigation system. The exact error is:

Unhandled exception in hlds.exe (REALBOT_MM.DLL): 0xC0000005: Access Violation.

The error occurs in this function: void cNodeMachine::AddToMeredian on this line: if (Meredians[iX][iY].iNodes[i] < 0) {

brotalnia avatar Feb 19 '16 11:02 brotalnia

do you have any idea how often this happens? (after how many map changes?). Is it easy to reproduce?

stefanhendriks avatar May 05 '16 13:05 stefanhendriks

It happens fairly consistently, usually by the 5th map change it has already crashed. However i have since solved the crash by putting a try-catch block around it and that does not break the navigation.

brotalnia avatar May 07 '16 04:05 brotalnia

If you could send me a diff/patch. I can take a look at it. Either apply the patch or fix the actual bug :-)

Will recompile anyway for new metamod version. So i expect to create a new version anyway :-)

Op 7 mei 2016 om 06:11 heeft brotalnia [email protected] het volgende geschreven:

It happens fairly consistently, usually by the 5th map change it has already crashed. However i have since solved the crash by putting a try-catch block around it and that does not break the navigation.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

stefanhendriks avatar May 07 '16 07:05 stefanhendriks