Skip to main content
New Participant
July 23, 2022
Question

Error on Import

  • July 23, 2022
  • 1 reply
  • 1355 views

Hi,

 

I've just started trying to use the v3 of the plugin in Unity.  When I import the package into a new project (2021.3.6f1) I get this error;

 

DllNotFoundException: sbsario assembly:<unknown assembly> type:<unknown type> member:(null)
Adobe.Substance.NativeMethods.sbsario_shutdown () (at Assets/Adobe/Substance3DForUnity/Runtime/Scripts/NativeMethods.cs:96)
Adobe.Substance.Engine.Shutdown () (at Assets/Adobe/Substance3DForUnity/Runtime/Scripts/Engine.cs:88)
Adobe.SubstanceEditor.SubstanceEditorEngine.TearDown () (at Assets/Adobe/Substance3DForUnity/Editor/Scripts/SubstanceEditorEngine.cs:106)
Adobe.SubstanceEditor.SubstanceEditorEngine+SubstanceEditorEngineInitializer.OnBeforeAssemblyReload () (at Assets/Adobe/Substance3DForUnity/Editor/Scripts/SubstanceEditorEngine.cs:58)
UnityEditor.AssemblyReloadEvents.OnBeforeAssemblyReload () (at <44a70d1b13cf47e29810e30f45ffae08>:0)

 

In Unity 2020.3.35f1

 

DllNotFoundException: sbsario
Adobe.Substance.NativeMethods.sbsario_initialize (System.String pluginPath, System.String engine_path, System.IntPtr memoryBudget) (at Assets/Adobe/Substance3DForUnity/Runtime/Scripts/NativeMethods.cs:85)
Adobe.Substance.Engine.Initialize (System.String pluginPath, System.String enginePath) (at Assets/Adobe/Substance3DForUnity/Runtime/Scripts/Engine.cs:56)
Adobe.SubstanceEditor.SubstanceEditorEngine.Setup () (at Assets/Adobe/Substance3DForUnity/Editor/Scripts/SubstanceEditorEngine.cs:77)
Adobe.SubstanceEditor.SubstanceEditorEngine+SubstanceEditorEngineInitializer.OnAfterAssemblyReload () (at Assets/Adobe/Substance3DForUnity/Editor/Scripts/SubstanceEditorEngine.cs:63)
UnityEditor.AssemblyReloadEvents.OnAfterAssemblyReload () (at <bfe26bbc7be749c7bb22d52435e15888>:0)

 

 

Anyone else experienced this issue?

This topic has been closed for replies.

1 reply

Community Manager
July 26, 2022

Hi, Did you get the error when importing the package for the first time, or did the project already have the plugin installed and then uninstalled?

Participating Frequently
February 2, 2023

I'm having that exact issue but at runtime on Android. The provided "SubstanceRuntimeGraph" doesn't initialize with the exact same style of error:

 

Unable to load DLL 'sbsario'. Tried the load the following dynamic libraries: Unable to load dynamic library 'sbsario' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "sbsario" not found UnityEngine.Logger:Log(LogType, Object) Adobe.Substance.NativeMethods:sbsario_initialize(String, String, IntPtr) Adobe.Substance.Engine:Initialize(String, String) Adobe.Substance.Runtime.SubstanceRuntime:get_Instance() Adobe.Substance.Runtime.SubstanceRuntimeGraph:Awake()

An iOS build does work as expected.

I also find the message weird because the code seems to imply that there's no .dll loaded on android and that it instead uses static compiled library.

Any hints?

Community Manager
February 3, 2023

Hi,

What versoiin of the plugin and Unity are you using? Also, do you get this error whem importing a specific sbsar file or all of them?