Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

3.0.0-exp.1

3.0.0-exp.2

Issue ID

USDU-283

Regression

Yes

[OSX] USD 3.0.0-exp.1 or exp.2 on MacOS Silicon results in DllNotFoundException

Package: USD Legacy

-

Originally reported on GitHub: [https://github.com/Unity-Technologies/usd-unity-sdk/issues/336]

 

--------------------------------------------------

 

I tried installing both USD 3.0.0-exp.1 and 3.0.0-exp.2, and importing a USD file as a game object on a MacBook Pro Silicon M1.

I keep getting the error:
{code:java}
DllNotFoundException: UsdCs assembly: type: member:(null)
pxr.UsdCsPINVOKE+SWIGExceptionHelper..cctor () (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Dependencies/USD.NET/generated/UsdCs/UsdCsPINVOKE.cs:164)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
pxr.UsdCsPINVOKE..cctor () (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Dependencies/USD.NET/generated/UsdCs/UsdCsPINVOKE.cs:184)
Rethrow as TypeInitializationException: The type initializer for 'pxr.UsdCsPINVOKE' threw an exception.
pxr.PlugRegistry.GetInstance () (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Dependencies/USD.NET/generated/pxr/base/plug/PlugRegistry.cs:47)
Unity.Formats.USD.InitUsd.SetupUsdPath (System.String sourceFilePath) (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Runtime/InitUsd.cs:92)
Unity.Formats.USD.InitUsd.Initialize () (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Runtime/InitUsd.cs:39)
UnityEngine.Debug:LogException(Exception)
Unity.Formats.USD.InitUsd:Initialize() (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Runtime/InitUsd.cs:58)
Unity.Formats.USD.ImportHelpers:InitForOpen(String, InitialLoadSet) (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Runtime/Scripts/IO/Scene/ImportHelpers.cs:161)
Unity.Formats.USD.UsdMenu:MenuImportAsGameObjects() (at Library/PackageCache/com.unity.formats.usd@3.0.0-exp.1/Editor/Scripts/Behaviors/UsdMenu.cs:145){code}
Any workarounds for this?

 

-------------------

While I was not able to reproduce this problem, since im on a Windows PC (will borrow a Mac M1 once I am back in Montreal) there was another user who mentioned the same problem on a different issue ticket:

[https://github.com/Unity-Technologies/usd-unity-sdk/issues/315#issue-1344388808]

 

  1. Resolution Note:

    We don't currently support M1 builds of the plugin, so this is expected. Should hopefully be addressed in the refactored package.

Add comment

Log in to post comment