Giter VIP home page Giter VIP logo

Comments (13)

MikeChemi avatar MikeChemi commented on July 19, 2024

Hi @kathleenwest, can you share some more information about your setup? In particular, I'm interested in:

  • Which version of Windows are you using?
  • Which Unity version are you using?
  • Do you have Visual Studio installed? If so, which edition?

from spatialaudio-unity.

kathleenwest avatar kathleenwest commented on July 19, 2024

Which version of Windows are you using? Windows 10 Pro Version 1909 OS build 18363.720
Which Unity version are you using? Project is running on Unity 2019.3.2f1
Do you have Visual Studio installed? If so, which edition? Yes, although I was not using/running VS at the time of the plugin install... my version is Visual Studio 2017 Enterprise Version 15.9.21

from spatialaudio-unity.

MikeChemi avatar MikeChemi commented on July 19, 2024

OK, weird. We also expect the plugin to be fully independent, especially with your setup. Let's try to get to the bottom of this. Having Visual Studio installed should also include the VC Runtime redistributables, but perhaps those are missing? You can try to install the latest from here https://aka.ms/vs/16/release/vc_redist.x64.exe

from spatialaudio-unity.

kathleenwest avatar kathleenwest commented on July 19, 2024

My VS Enterprise is fully up-to-date and customized to my needs. I am not installing that item you posted. As previously mentioned, the error issue is found in Unity, not Visual Studio. Today I went ahead and created a clean project with no game objects and first installed the NuGet package, then searched, downloaded, and installed the Microsoft.SpatialAudio.Spatializer.Unity from NuGet. I got the same errors and something else that may help the project developers. Please now go ahead and try this yourself to verify the issue.

Plugins: Failed to load 'Assets/Packages/Microsoft.SpatialAudio.Spatializer.Unity.1.0.0/Plugins/x86_64/AudioPluginMicrosoftSpatializer.dll' because one or more of its dependencies could not be loaded.
UnityEditor.AssetDatabase:Refresh()
NugetForUnity.NugetHelper:Install(NugetPackage, Boolean)
NugetForUnity.NugetHelper:InstallIdentifier(NugetPackageIdentifier, Boolean)
NugetForUnity.NugetWindow:DrawPackage(NugetPackage, GUIStyle, GUIStyle)
NugetForUnity.NugetWindow:DrawPackages(List`1)
NugetForUnity.NugetWindow:DrawOnline()
NugetForUnity.NugetWindow:OnGUI()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Plugins: Failed to load 'Assets/Packages/Microsoft.SpatialAudio.Spatializer.Unity.1.0.0/Plugins/x86_64/AudioPluginMicrosoftSpatializer.dll' because one or more of its dependencies could not be loaded.

from spatialaudio-unity.

MikeChemi avatar MikeChemi commented on July 19, 2024

We have tested this plugin extensively and have never hit the issue you describe. Unfortunately, there are many reasons why a dependency may be missing, and tracking down dependency issues can be challenging. I understand that Unity is giving the error, and my comments about Visual Studio were only to say that often the VC Runtime is installed as part of Visual Studio, but not always (I believe it is an optional component).

Given your setup and the dependencies I know about for this plugin, I suspect this is a case of a missing VC Runtime on your PC (which can affect plugins loading in Unity). For more information on the VC Runtime, please see the main page for downloading the redistributable https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

from spatialaudio-unity.

kathleenwest avatar kathleenwest commented on July 19, 2024

install
attached is a picture to prove this was already installed. I have like 10+ versions of this as it is pretty standard... and it has been updated. what's next ?

from spatialaudio-unity.

kathleenwest avatar kathleenwest commented on July 19, 2024

So did you try testing this plugin 1.) recently within the past 5 days 2.) in a unity 3D project and 3.) download and installing it from NuGet (which may be the issue?).

from spatialaudio-unity.

MikeChemi avatar MikeChemi commented on July 19, 2024

Yep! I tried this out when you reported it to be sure nothing had changed on our end. Thanks for sharing the picture of the VC Runtimes you have installed. I, too, have a lot of them. Do you also have this one?
image
I uninstalled this one, and was finally able to reproduce the error on my PC:
image

from spatialaudio-unity.

MikeChemi avatar MikeChemi commented on July 19, 2024

I closed Unity, re-installed from the link I shared previously, restarted Unity, and the error is now gone.

from spatialaudio-unity.

kathleenwest avatar kathleenwest commented on July 19, 2024

Did not have that specific version. I'm still very hesitant/concerned to install this because of this disclaimer on the site as it could affect programs built with other C++ installs. Feedback: I'd like to see this Unity plug-in compatible/dependent on the standard/common C++ redistributable option in Visual Studio (2017) installer or what is included with the standard/common Windows Update C++ Redistributable package and not on a mashup that has some potential issues with compatibilities as noted in the link and below.

_Note Visual C++ 2015, 2017 and 2019 all share the same redistributable files.

For example, installing the Visual C++ 2019 redistributable will affect programs built with Visual C++ 2015 and 2017 also. However, installing the Visual C++ 2015 redistributable will not replace the newer versions of the files installed by the Visual C++ 2017 and 2019 redistributables.

This is different from all previous Visual C++ versions, as they each had their own distinct runtime files, not shared with other versions._

from spatialaudio-unity.

MikeChemi avatar MikeChemi commented on July 19, 2024

Sure, that's your prerogative. The shared VC Redist is the officially supported way to dynamically link to the VC Runtime moving forward, not a random mashup that we decided to use. If your use case requires linking an older version of the VC Runtime, feel free to clone the repo and retarget the solution to VS 2017. This is a good page that discusses this shared runtime usage https://docs.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=vs-2019

from spatialaudio-unity.

MikeChemi avatar MikeChemi commented on July 19, 2024

In the meantime, I'll see about adding a blurb about the required VC Runtime version to our documentation.

from spatialaudio-unity.

MikeChemi avatar MikeChemi commented on July 19, 2024

PR submitted on the docs to point out this dependency.

from spatialaudio-unity.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.