Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Substance Engine in 2018.1 broken?

Discussion in 'Linux' started by zeelot, May 28, 2018.

  1. zeelot

    zeelot

    Joined:
    Apr 16, 2013
    Posts:
    4
    AhoI!

    Has anyone here been able to get the substance designer plugin working on a linux build of 2018.1? This is what I get when I try to import the plugin:

    Substance engine failed to load
    UnityEngine.Debug:LogError(Object)
    Substance.Game.DLLHelpers:LoadDLL(String)
    Substance.Game.NativeFunctions:cppInitSubstance(String)
    Substance.Game.NativeCallbacks:InitSubstance()
    Substance.Game.SubstanceMain:Initialize()
    Substance.Game.SubstanceMain:.cctor()
    UnityEditor.EditorAssemblies:processInitializeOnLoadAttributes()

    If I try to open the Substance Source panel, my log scrolls endlessly with null pointer exceptions.
     
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    I see the same - it looks like a problem with the Substance extension, though.
     
  3. zeelot

    zeelot

    Joined:
    Apr 16, 2013
    Posts:
    4
    Not entirely sure how to contact them about the issue apart from leaving a review on the extension page.
     
  4. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    388
    I think I read something about Gaia plugin not working with substance with 2018 and they are waiting for some update. Maybe try try search Gaia substance issue
     
  5. Rampage_thomas

    Rampage_thomas

    Joined:
    Mar 4, 2018
    Posts:
    1
    I Got a Same Crash Like..

    Substance engine failed to load
    UnityEngine.Debug:LogError(Object)
    Substance.Game.DLLHelpers:LoadDLL(String)
    Substance.Game.NativeFunctions:cppInitSubstance(String)
    Substance.Game.NativeCallbacks:InitSubstance()
    Substance.Game.SubstanceMain:Initialize()
    Substance.Game.SubstanceMain:.cctor()
    UnityEditor.EditorAssemblies:processInitializeOnLoadAttributes()

    On the Win OS.
     
  6. Haro-X64

    Haro-X64

    Joined:
    Aug 13, 2018
    Posts:
    1
    I had the same problem but I found the origin. If you move the folder of your project somewhere else than the default folder "C:\Users\Public\Documents\Unity Projects", the plugin refuse to load with the error message : "Substance engine failed to load". Put it back in the default folder and it should load again.

    My project was in "C:\Users\<username>\Documents\...\<my_project_name>". I had to move it in the default folder. I lost a lot of time looking for a solution.

    Maybe the cause is some special characters in the path. BTW, I'm on Win7.

    Hoping that it will be useful.
     
    ElcolED likes this.
  7. ElcolED

    ElcolED

    Joined:
    Aug 13, 2014
    Posts:
    2
    Thank you, you saved my project.

    For future reference, I am working on W10, with Unity 2019.1.3 and the substance engine 2.3.2 STILL hasn't resolved this issue.
     
  8. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    962
    That's super unprofessional that I can't move it - Who codes hard paths, these days? Let's say I want to throw it in an Assembly so this doesn't add +30s to refreshing?

    EDIT: Tried to manually edit path @ cppInitSubstance: It just crashes Unity.
    EDIT 2: Editing it back... STILL crashes Unity. What the...
    EDIT 3: Removing Substance will ripple to AmplifyShader requirements - seems like Substance or AmplifyShader force-adds files to this dir after it was added, creating awkward requirements. How do I even remove or cleanly re-add Substance properly...? These files are super dirty.
     
    Last edited: Dec 18, 2019