Just FYI,
I think your topic could be related to a similar issue in L4D2:
[L4D2] Script Command Swap - Mem Leak Fix,
caused by using the console command to create VScript instead of logic_script entity.
Sorry for hijacking your topic.
I also have a problem with 1 time per week crash related to CUtlRBTree overflow.
But, my game is Left 4 Dead 1. There is no VScript system at all.
I'm just curious didn't you try to use CStringPool::FreeAll() method on MapEnd?
Crash details:
Code:
#0 0xf604000c in Sys_Error_Internal(bool, char const*, char*) () from /game/bin/engine.so
#0 0xf604000c in Sys_Error_Internal(bool, char const*, char*) () from /game/bin/engine.so
#1 0xf6040033 in Sys_Error(char const*, ...) () from /game/bin/engine.so
#2 0xf6040180 in Sys_SpewFunc(SpewType_t, char const*) () from /game/bin/engine.so
#3 0xf77534a8 in _SpewMessage(SpewType_t, char const*, int, Color const*, char const*, char*, int, int) [clone .isra.1] () from ./bin/libtier0.so
#4 0xf77535d8 in Error () from ./bin/libtier0.so
#5 0xf601cae9 in CUtlRBTree<void*, unsigned short, bool (*)(void* const&, void* const&), CUtlMemory<UtlRBTreeNode_t<void*, unsigned short>, unsigned short> >::NewNode() () from /game/bin/engine.so
#6 0xf601e4a3 in CUtlRBTree<void*, unsigned short, bool (*)(void* const&, void* const&), CUtlMemory<UtlRBTreeNode_t<void*, unsigned short>, unsigned short> >::Insert(void* const&) () from /game/bin/engine.so
#7 0xf601c469 in CFrameSnapshotManager::LevelChanged() () from /game/bin/engine.so
#8 0xf602bf80 in CGameServer::SpawnServer(char*, char*) () from /game/bin/engine.so
#9 0xf5f9956c in Host_Changelevel(bool, char const*, char const*) () from /game/bin/engine.so
#10 0xf5fa447a in CHostState::State_ChangeLevelMP() () from /game/bin/engine.so
#11 0xf5fa48b8 in CHostState::FrameUpdate(float) [clone .constprop.26] () from /game/bin/engine.so
Quote:
L 11/24/2020 - 16:59:54: [bebop.smx] +-------------------------------------------+
L 11/24/2020 - 16:59:54: [bebop.smx] | MAP END |
L 11/24/2020 - 16:59:54: [bebop.smx] +-------------------------------------------+
SoundEmitter: removing map sound overrides [71 to remove, 63 to restore]
---- Host_Changelevel ----
CUtlRBTree overflow!
CUtlRBTree overflow!
|
__________________