menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

Hi! We're facing issues with the wwise API, it seems that some threads are throwing exceptions, because they are trying to access GameObject methods which don't support multi-threading. The exceptions are caught by our IDE (JetBrains Rider), but are otherwise undetectable. It seems the threads are killed when trying to finalize and unregister a game object. Since it only throws when finalizing, this apparently doesn't lead to wrong behaviours or bugs. However, this highly reduces the efficiency of our debugging tools, so we need to find a way around this issue. Is this a known issue on your end? If so, what can we do about it? Please find attached the stack trace of the exception thrown, let me know if you need more information.

 

Stack Trace:
System.InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread at UnityEngine.Object.EnsureRunningOnMainThread () [0x0000d] in <10871f9e312b442cb78b9b97db88fdcb>:0 at UnityEngine.Object.GetInstanceID () [0x00001] in <10871f9e312b442cb78b9b97db88fdcb>:0 at AkSoundEngine.InternalGameObjectHash (UnityEngine.GameObject gameObject) [0x00001] in \Assets\Wwise\API\Runtime\Handwritten\Common\AkSoundEngine.cs:68 at AkSoundEngine.GetAkGameObjectID (UnityEngine.GameObject gameObject) [0x00001] in
\Assets\Wwise\API\Runtime\Handwritten\Common\AkSoundEngine.cs:87 at AkSoundEngine.UnregisterGameObj (UnityEngine.GameObject gameObject) [0x00001] in
\Assets\Wwise\API\Runtime\Handwritten\Common\AkSoundEngine.cs:128 at AkSoundEngine+AutoObject.Finalize () [0x00002] in
\Assets\Wwise\API\Runtime\AkSoundEngine.extensions.cs:39
 

 

 

分类:General Discussion | 用户: Antoine B. (150 分)
I'm experiencing the same issue but with a different stack. Would be great to have an update on this. Thanks!

Please sign-in or register to answer this question.

...