UE4.27.2 with Wwise Integration 2022.1.7.8290.2779
If I open my game and hit play, then close the engine, it will crash.
To fix it, I have removed every reference to AK audio object and every function that uses it. After that, I removed all includes for any AKAudio file. If I open the game and hit play, then close it, everything is fine.
If I include "AkAudioEvent.h" in any header file, this check fails:
template<int32 SIZE, int TPaddingForCacheContention, typename TTrackingCounter = FNoopCounter, bool AllowDisablingOfTrim = false>
class TLockFreeFixedSizeAllocator
{
public:
/** Destructor, returns all memory via FMemory::Free **/
~TLockFreeFixedSizeAllocator()
{
check(!NumUsed.GetValue());
Trim();
}