Closed konradcl closed 4 years ago
Workaround (confirmed to work by @konradcl) - remove the call to GetFloatBuffer
in Assets/Plugins/Dissonance/Editor/DissonanceAecFilterInspector.cs
.
It's possible this is a bug in the Unity UI (Mac only?) or something in DissonanceNative/webrtc/src/DissonanceAEC.cpp#L225
set up incorrectly.
Dissonance 6.4.5 is now on the asset store, it should fix this issue.
In this case since it seems to be a Unity bug we've added the workaround that I mentioned above, effectively disabling almost all of the AEC statistics in the inspector for MacOS.
Still failed with this expection on Win10 and Dissonance 6.4.6 and Unity 2019.3.4f1
@martindevans BUT! On Unity 2019.3.9f1 works as expected! Just tested.
Thanks for checking that it works in the latest version.
Since it looks like this was broken by Unity only for a small number of versions I'm going to change this issue to "Won't Fix": Anyone else encountering this issue should upgrade to the latest version of 2019.3
or .4
.
Coincidentally Unity support just got in touch with me about this issue and linked me to this duplicate issue that they have fixed: https://issuetracker.unity3d.com/issues/editor-freezes-or-crashes-when-interacting-with-native-audio-plugin-sdks-audio-mixers
Context
I was following the guide in the Dissonance documentation for how to setup Acoustic Echo Cancellation. While trying to verify that the Acoustic Echo Cancellation works as intended, I attempted to select the "Dissonance Echo Cancellation" filter that I previously had attached to an audio mixer. This attempt failed and resulted in a
NullReferenceException
and anAssert failed
error repeatedly being logged to the Unity console (view "Actual Behavior" for error details). If I at this point would exit and reenter play mode, the Unity editor would crash to desktop.Furthermore, I have managed to reproduce the above behavior in a fresh Unity project with Dissonance's Mirror Networking Demo (view "Steps to Reproduce").
Expected Behavior
When clicking on a "Dissonance Echo Cancellation" filter attached to a mixer (after following the outlined in "Steps to Reproduce") I would expect to see something like the below image in the inspector:
Actual Behavior
After following the instructions outlined in "Steps to Reproduce", clicking on the "Dissonance Echo Cancellation" filter attached the mixer results in a
NullReferenceException
and anAssert failed
error repeatedly being logged to the Unity console (errors details shown below). If I at this point would exit and reenter play mode, the Unity editor would crash to desktop.NullReferenceException
Assertion Failed
Steps to Reproduce
To reproduce the described problem in the environment specified below, follow these steps:
x86
andx86_64
directories located inAssets/Libraries/Plugins/Dissonance/Plugins
relative to the location your Unity project. Delete all files ending with the extension.bundle
or.bundle.meta
from these directories. Then, relaunch the Unity editor and ensure that Unity is no longer complaining about the above error(s). If Unity still complains about these after you have deleted the specified files, clear the Unity console and relaunch Unity.Libraries/Dissonance/Integrations/MirrorIgnorance/Demo
. Also remove theSampleScene
from your "Scenes in Build" in your Build Settings.NetworkManager
. Ensure thatOffline Scene
is set upMirrorIgnorance Demo
andOnline Scene
is set toMirrorIgnorance Game World
. Also remove theSampleScene
.Auto Mixer Suspend
on the Master mixer.PlaybackPrefab
located atLibraries/Plugins/Dissonance/Resources
and add the Master mixer as its "Output".DissonanceSetup
game object of the "MirrorIgnorance Game World" scene and drag thePlaybackPrefab
into the "PlaybackPrefab" slot on theDissonanceComms
component attached toDissonanceSetup
. Save your changes to the game world scene.Environment
The described issue was initially encountered and subsequently reproduced in the following environment:
Dissonance version used: v6.4.4
Unity version: 2019.3.0f6 Personal
Editor Operating System and version: macOS Catalina, version 10.15.2
Build Target Platform: macOS
Link to demo project with the bug reproduced: https://drive.google.com/open?id=1S_9I4ufifE10SKG7jp3MkTLrDKtPctZk