【问题标题】:Unity Editor crashes after loading, caused by Googles Resonance AudioUnity Editor 加载后崩溃,由 Google 的 Resonance Audio 引起
【发布时间】:2017-11-28 09:40:47
【问题描述】:

unity 突然崩溃时,我正在开发我的 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*, 
[...]

【问题讨论】:

标签: unity3d google-vr resonance-audio


【解决方案1】:

(请参阅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 了解更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-09-20
    • 1970-01-01
    • 1970-01-01
    • 2016-04-26
    • 2012-02-14
    • 2012-10-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多