VBSP crashes right before it finishes cleaning up. In specific, it gets a read access violation at memdbg.cpp line 405, which is part of the function inline size_t InternalLogicalSize( void *pmem )
From what I can debug, the program is attempting to free up memory from a File System, and seems to do so successfully, up until a certain point, where for some reason pMem becomes 0xCDCDCDCD (it is ALWAYS this address).
This function is one in a long line of other functions, which in this case starts with the function call CmdLib_TermFileSystem() in CmdLib_Cleanup (cmdlib.cpp line 401).
I tried to bisect up to the move to the src folder, but every single commit had the same issue. I'd go further, but i've always had trouble going back that far.
It's also worth noting that CmdLib_Cleanup() is the very last thing that VBSP does before returning the main function, so it doesn't seem to affect the BSP file itself or any of the other functions of VBSP.
Sorry I can't give anymore info, this was as far as I was able to go with my current knowledge :(
It's understandable if this never gets fixed, due to being a bug with a compiler rather than the actual game itself, but I felt like it'd be good to at least make an issue post just in case.
Checklist
[x] None of the open or closed issues document this problem.
[x] This is a bug, not a new idea.
[x] This is objectively a bug, and not something that people commonly disagree on.
[x] This issue occurs on the latest Team Comtress release, or the master branch.
[ ] This issue occurs on the latest vanilla TF2 update.
[x] This bug is in the code of the game, not in the textures, sounds, or other resources.
Description
VBSP crashes right before it finishes cleaning up. In specific, it gets a read access violation at
memdbg.cpp
line 405, which is part of the functioninline size_t InternalLogicalSize( void *pmem )
From what I can debug, the program is attempting to free up memory from a File System, and seems to do so successfully, up until a certain point, where for some reason pMem becomes 0xCDCDCDCD (it is ALWAYS this address). This function is one in a long line of other functions, which in this case starts with the function callCmdLib_TermFileSystem()
inCmdLib_Cleanup
(cmdlib.cpp
line 401). I tried to bisect up to the move to the src folder, but every single commit had the same issue. I'd go further, but i've always had trouble going back that far. It's also worth noting thatCmdLib_Cleanup()
is the very last thing that VBSP does before returning the main function, so it doesn't seem to affect the BSP file itself or any of the other functions of VBSP. Sorry I can't give anymore info, this was as far as I was able to go with my current knowledge :( It's understandable if this never gets fixed, due to being a bug with a compiler rather than the actual game itself, but I felt like it'd be good to at least make an issue post just in case.Checklist
master
branch.start_tf2.bat
(orstart_server.bat
) with no custom launch options.map
command ingame).Reproduction
Setup Details
Client Settings