It’s the error window that pops up when the game crashes. As far as I can tell, it just happens sometimes when players are clicking in Scaleform menus. But I think it may also be the same error that appears when I open a lot of Scaleform movies at the same time. I’m not entirely sure I know what caused it, but I think I’ve fixed it…
I was eventually able to set up a battle that made my game crash. The game would crash and my IDE would want to find d:\depot\unrealengine3-sf4-pure\src\kernel\heappt\heappt_freebin.cpp. I don’t have that file, but I do have this header with a very similar name: Development\External\GFx\Src\Kernel\HeapPT\HeapPT_FreeBin.h.
The error in Visual Studio was
Unhandled exception ... Access violation reading location 0xfffffffffffff.
Call stack location:
RPGTacGame.exe!Scaleform::HeapPT::FreeBin::PullBest(unsigned __int64 blocks=0x...) Line 553 + 0x6c bytes
C++ really isn’t my strongest skill, but I could figure out at least that there’s a problem with how the game allocates memory when opening a Scaleform movie. Eventually I combined some movies so that one movie will show all of the status effects when they appear, so I don’t have to make a new movie for each status effect. Then I just limited the maximum number of dialog windows that can appear at once.
And in the menu, around the area where players reported problems, I was just super careful with adding event listeners only once, and removing them only once, and I think that fixed the problem inside the menu.