Reproduce steps:
Enable ASAN.
Then:
[1m[31m==42656==ERROR: AddressSanitizer: stack-use-after-scope on address 0x000287ffdde0 at pc 0x000322365a24 bp 0x000287ffda70 sp 0x000287ffda68
[1m[0m[1m[34mREAD of size 8 at 0x000287ffdde0 thread T4[1m[0m
#0 0x322365a20 in FWwiseMetadataPlatformInfo* FWwiseMetadataLoader::GetObjectPtr<FWwiseMetadataPlatformInfo>(FWwiseMetadataLoadable*, FString const&) WwiseMetadataLoader.h:99
#1 0x322364e94 in FWwiseMetadataRootFile::FWwiseMetadataRootFile(FWwiseMetadataLoader&) WwiseMetadataRootFile.cpp:35
#2 0x322367fc8 in FWwiseMetadataRootFile::LoadFile(FString&&, FString const&) WwiseMetadataRootFile.cpp:119
#3 0x322369234 in FWwiseMetadataRootFile::LoadFile(FString const&) WwiseMetadataRootFile.cpp:139
#4 0x322400c74 in FWwiseDirectoryVisitor::Visit(char16_t const*, bool) WwiseDirectoryVisitor.cpp:119
#5 0x10511a130 in UE::Core::Private::Function::TFunctionRefCaller<FApplePlatformFile::IterateDirectory(char16_t const*, IPlatformFile::FDirectoryVisitor&)::$_0, bool (dirent*)>::Call(void*, dirent*&) Function.h:465
#6 0x105048d10 in FApplePlatformFile::IterateDirectoryCommon(char16_t const*, TFunctionRef<bool (dirent*)> const&) ApplePlatformFile.cpp:784
#7 0x10504880c in FApplePlatformFile::IterateDirectory(char16_t const*, IPlatformFile::FDirectoryVisitor&) ApplePlatformFile.cpp:728
#8 0x3223c4fac in FWwiseDataStructure::FWwiseDataStructure(FDirectoryPath const&, FName const*, FGuid const*) WwiseDataStructure.cpp:65
#9 0x32243818c in FWwiseProjectDatabaseImpl::UpdateDataStructure(FDirectoryPath const*, FGuid const*) WwiseProjectDatabaseImpl.cpp:83
#10 0x325793e0c in FAkAudioModule::ParseGeneratedSoundBankData() AkAudioModule.cpp:336
#11 0x325790888 in FAkAudioModule::StartupModule() AkAudioModule.cpp:180
#12 0x105cc88c0 in FModuleManager::LoadModuleWithFailureReason(FName, EModuleLoadResult&, ELoadModuleFlags) ModuleManager.cpp:650
#13 0x105cc4c08 in FModuleManager::LoadModule(FName, ELoadModuleFlags) ModuleManager.cpp:385
#14 0x2d97559b0 in FWwiseModule::StartupModule() WwiseModule.cpp:51
#15 0x105cc88c0 in FModuleManager::LoadModuleWithFailureReason(FName, EModuleLoadResult&, ELoadModuleFlags) ModuleManager.cpp:650
#16 0x10255a454 in FModuleDescriptor::LoadModulesForPhase(ELoadingPhase::Type, TArray<FModuleDescriptor, TSizedDefaultAllocator<32>> const&, TMap<FName, EModuleLoadResult, FDefaultSetAllocator, TDefaultMapHashableKeyFuncs<FName, EModuleLoadResult, false>>&) ModuleDescriptor.cpp:695
#17 0x1025af8f0 in FPluginManager::TryLoadModulesForPlugin(FPlugin const&, ELoadingPhase::Type) const PluginManager.cpp:2203
#18 0x1025b691c in FPluginManager::LoadModulesForEnabledPlugins(ELoadingPhase::Type) PluginManager.cpp:2278
#19 0x100f220a8 in FEngineLoop::PreInitPostStartupScreen(char16_t const*) LaunchEngineLoop.cpp:3820
#20 0x100ef4560 in GuardedMain(char16_t const*) Launch.cpp:140
#21 0x100f3e8d8 in -[UEAppDelegate runGameThread:] LaunchMac.cpp:237
#22 0x10588b35c in -[FCocoaGameThread main] CocoaThread.cpp:383
#23 0x18b54dff0 in __NSThread__start__+0x2c8 (Foundation:arm64e+0x53ff0)
#24 0x101f11624 in _pthread_start+0x84 (libsystem_pthread.dylib:arm64e+0x1624)
#25 0x101f1babc in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0xbabc)
To fix this issue
WwiseMetadataLoader.h
remove the references in line 34 and line 46:
like the following
"
struct FWwiseMetadataLoader
{
bool bResult;
const TSharedRef<FJsonObject> JsonObject;
FWwiseMetadataLoader(const TSharedRef<FJsonObject> InJsonObject) :
bResult(true),
JsonObject(InJsonObject)
{
}
"