This question was created in reference to: [Some MetaSounds ‘randomly’ missing from Frontend [Content removed]
Our game has missing sounds accompanied by a spam of this error in the log:
LogMetaSound: Error: Could not find graph with registry graph key ‘External_None.[insert-a-bunch-of-numbers], /Path/To/Metasound/MS_GenericName’
We are getting this issue even after trying the suggested fixes in the linked ticket, specifically:
- resaving affected Metasounds and patches that it references
- turning on cvar au.MetaSound.DisableAsyncGraphRegistration 1
This issue is also really hard to reproduce. It happens for players randomly. Restarting the game always fixes it.
Our Metasound source MS_GenericName has a few Metasound patches that it references. MS_GenericName was never moved outside of its folder, but it was potentially renamed. We have resaved it since.
There were two Metasound patches that were moved around in the editor and they had redirectors. I fixed up the redirectors but I have no idea if that had any effect. I always have to wait for a full-scale playtest to find out if the issue is still there.
I have two questions so far:
- Are there any other insights you can provide into how to fix this issue, or why this issue happens?
- In your opinion, can you confirm or deny if fixing up redirectors for Metasound patches will fix the issue?
- The original answer mentions that “When MetaSounds have dependencies between them (e.g. a patch is used within a source), they have some UPROPERTY fields which describe those dependencies” and that sometimes those dependency UPROPERTYs get messed up, so I’m curious about where that happens.
- So far I only went through FRegistryContainerImpl::BuildAndRegisterGraphFromDocument code to see if there is any point at which graph registration fails. The only suspicious thing is the AssetPath might be different from what we need, but that shouldn’t happen for the Metasound source, it should only happen for Metasound patches that got moved around in our case. Since the log is complaining about Metasound source and not Metasound patch, I’m not sure if that’s the source of the issue. Any insights for this are appreciated.
Thank you.