Community Q&A

Where Wwise users help each other out!

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

Unity editor crashes if I trigger too many events too quickly via the AkEvent component

0 votes
I am calling the AkEvent.HandleEvent function about say 5-20 times in a second and if I sustain that rate I get out of memory output such as:

Wwise: Insufficient memory in pool: Lower Engine Default. Attempted alloc size: 12288 bytes.
UnityEngine.Debug:LogError(Object)
AkInitializer:CopyMonitoringInConsole(ErrorCode, ErrorLevel, UInt32, IntPtr, String) (at Assets/Wwise/Deployment/Components/AkInitializer.cs:218)
AkCallbackManager:PostCallbacks() (at Assets/Wwise/Deployment/API/Handwritten/AkCallbackManager.cs:391)
AkInitializer:LateUpdate() (at Assets/Wwise/Deployment/Components/AkInitializer.cs:192)

 

Wwise: Plug-in initialization failure: 7536643(Object: MyGameGizmoObj (UnityEngine.GameObject))
UnityEngine.Debug:LogError(Object)
AkInitializer:CopyMonitoringInConsole(ErrorCode, ErrorLevel, UInt32, IntPtr, String) (at Assets/Wwise/Deployment/Components/AkInitializer.cs:218)
AkCallbackManager:PostCallbacks() (at Assets/Wwise/Deployment/API/Handwritten/AkCallbackManager.cs:391)
AkInitializer:LateUpdate() (at Assets/Wwise/Deployment/Components/AkInitializer.cs:192)

 

And then after that goes on for 10 seconds or so, eventually the editor crashes. This same scene/situation/etc on device crashes about 10x faster (i.e. in a couple seconds).

 

I'm using Unity Version 4.6.3f1. This is my Wwise version info out of version.txt file:

Wwise Unity Integration Version Info:

Stable Version (SVN): 1622

Based on Wwise SDK: 2014.1.2 Build 5195

Unity Integration Version: 5

Installed Platforms: Android Windows iOS Mac

 

I also noticed that this is kind of an old build. What is the recommended Wwise build number for the version of unity that we're using?
asked May 21, 2015 in General Discussion by Kyle B. (120 points)

1 Answer

+1 vote
If you're using the Unity 5 integration, you should be using Wwise 2014.1.4 (if you can wait a little bit longer, we'll have the integration for 2014.1.5 coming pretty soon).  2014.1.2 with the newer Unity integration could definitely cause some issues (not sure if that's the cause of your current issue, but a version mismatch is never a great thing).
answered May 25, 2015 by Mike D. (Audiokinetic) (3,020 points)
I inherited this code from someone so I'm not sure if the Unity 5 integration is the correct one or not. Given that we're using Unity 4, maybe not.

So to be clear, for our version of unity, 4.6.3f1, you recommend using the Wwise 2014.1.4 version?

I don't have a preference, I just need to know what is the best Wwise version for my version of unity.

Thank you!
OK, I just upgraded to 2014.1.4 on Windows and I still get the editor crashes I mentioned above. I also read up a bit more on the pool size stuff, and I can increase our memory pool size a little bit, but what is going to keep it from crashing when I play a lot of sounds?
...