Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
Reproduce steps:

Enable ASAN.

Then:

==42656==ERROR: AddressSanitizer: stack-use-after-scope on address 0x000287ffdde0 at pc 0x000322365a24 bp 0x000287ffda70 sp 0x000287ffda68

READ of size 8 at 0x000287ffdde0 thread T4

    #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)

    {

    }

"
in General Discussion by Naiwe X. (100 points)

Please sign-in or register to answer this question.

...