加载后Unity Editor崩溃,由Googles Resonance Audio引起

时间:2017-11-28 09:40:47

标签: unity3d google-vr resonance-audio

当团结突然崩溃时,我正在开发我的VR应用程序。我认为它是由Resonance Audio空间化器引起的。有谁能够帮我? 这是Editor.log的开头

Receiving unhandled NULL exception
Obtained 32 stack frames.
#0  0x00000125280a61 in SetListenerGain
#1  0x0000011e02491e in  (wrapper managed-to-native) ResonanceAudio:SetListenerGain (single) + 0xce (0x11e024850 0x11e02494d) [0x138493330 - Unity Child Domain]
#2  0x0000011e024705 in  ResonanceAudio:UpdateAudioListener (ResonanceAudioListener) + 0x105 (0x11e024600 0x11e02477f) [0x138493330 - Unity Child Domain]
#3  0x0000011e0244a7 in  ResonanceAudioListener:Update () + 0x77 (0x11e024430 0x11e0245c7) [0x138493330 - Unity Child Domain]
#4  0x0000011a73221a in  (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0xfa (0x11a732120 0x11a73234d) [0x138493330 - Unity Child Domain]
#5  0x00000137cda12e in mono_get_runtime_build_info
#6  0x00000137e05d56 in mono_runtime_invoke
#7  0x00000100ec1e0a in ScriptingInvocation::Invoke(ScriptingExceptionPtr*, 
[...]

1 个答案:

答案 0 :(得分:2)

(有关详细信息,请参阅the corresponding GitHub issue

问题是由Resonance Audio SDK与GVR Unity SDK中的音频组件之间的重复功能定义引起的。

作为一种直接的解决方法,将ResonanceAudio.cs#L391GvrAudio.cs#L385中的以下行替换为以下行,可以解决编辑器中的崩溃问题:

#if !UNITY_EDITOR && UNITY_IOS

总体而言,强烈建议在与Resonance Audio SDK一起使用时从GVR Unity SDK中删除与音频相关的资源。有关详细信息,请参阅the corresponding section in the "Upgrading existing projects from Google VR audio components" guide