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.

+1 vote

Hi,

This is more an issue report than a question... but hopefully this can be fixed or help others.
We are running into an issue where our automated test that opens a level and closes the editor and it shows an error logged by the Wwise plugin.

LogAkAudio: Error: Unknown game object ID. Make sure the game object is registered before using it and do not use it once it was unregistered.: 13

 

Using the Wwise Profiler and listening for API calls we were able to narrow it down to a SetPosition call that was causing the error with a Game Object ID of 0. So we ended up putting breakpoints on all the SetPosition calls in the Wwise plugin and found that there was a call to SetPosition with a nullptr for the EditorListener. In our case it was in the OnEditorCameraMoved lambda. It was beind called before the EditorListener was created and thus was still a nullptr.

For now I've surrounded the call with a nullptr check, which should get rid of the error, and I think is actually a reasonable solution.

More info on this error in the profiler https://www.audiokinetic.com/library/edge/?source=Help&id=ErrorCode_UnknownGameObject

Hopefully this can get fixed in a future version or help other with this issue.

in General Discussion by Daan G. (110 points)

Please sign-in or register to answer this question.

...