Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unity, "Index was out of range" error prevents refreshing project / Populating

0 votes

We're using Unity 2019.3.3f1, Wwise 2019.2.1.7250, and pretty much the default Unity Wwise integration from the launcher. We also use versioning (and have the appropriate setting checked in the Wwise project settings)

Overview of the problem : We can't get anything from Wwise to Unity pretty much. Opening the editor, refreshing the project, and generating soundbanks all generate errors from Unity. Changes to already working events are not updated, and nothing new can come through...

I've put the errors below, any fix for this would be greatly appreciated! Thanks!

The error we get upon editor start-up:

image

The error we get whenever we refresh:

image

Finally, the error we get whenever the Wwise integration tries to Populate:

image

 

asked Apr 15, 2020 in General Discussion by E V. (110 points)

1 Answer

0 votes
answered Apr 15, 2020 by Mads Maretty S. (Audiokinetic) (38,280 points)
Hi Mads, I get this error while updating the integration (by making a copy) : https://puu.sh/FxQfm/180ded6394.png
Hmm.. that's strange. How about if you close Unity (and your source control), delete the Library folder, update it (if you can complete it), then open Unity again?
So I tried to update the integration after having deleted the files you mentioned *without* making a copy, and it worked. (Since I'm on a branch on my version control this is fine)

Now the sounds updated perfectly well within the engine, so thanks!

I'm still concerned about that issue it threw at me when trying to update the integration by copying the project files, and especially about why we got these errors in the first place. Is this tied to a bad practice we may have?
So the issue is still here actually. I didn't notice because the fix worked and I could generate soundbanks with the newly populated project, but now I have new sounds to integrate, and the issue is present once again.

After looking a bit into it, it seems to "break" whenever I change branch on my version control. (Yes, even on the very branch i did the fix)

Here's what ignored in my gitignored for Wwise :
.backup
.cache
*.akd
*.prof
*.validationcache
*.wem
/ProjectName/Assets/StreamingAssets/Audio/GeneratedSoundBanks/Windows/DecodedBanks
ProjectName/Assets/WwiseSettings.xml

I tried to delete my Library folder like you mentionned, but it didn't help much and caused quite a bit of crashes (I kept a backup just in case so no harm here)
...