Author Topic: crash at editor launch due to substance plugin (unable to open project with it)  (Read 842 times)

This is the stacktrace from the editor.log
Code: [Select]
0x00007FFC82B1B4E0 (Substance.Engine) cppShutdownSubstance
0x00007FFC82B15240 (Substance.Engine) cppModifyTexturePacking
0x0000019F17C97A4F (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_00007FFC82B15210 (intptr,string,int[],string,int[],int)
0x0000019F17C97DDC (Mono JIT Code) (wrapper delegate-invoke) <Module>:invoke_void_intptr_string_int[]_string_int[]_int (intptr,string,int[],string,int[],int)
0x0000019F17C977E6 (Mono JIT Code) [F:\EigeneProjekte\fantacity\Assets\Allegorithmic\Plugins\Substance.Platform\NativeFunctions.cs:1028] Substance.Platform.NativeFunctions:cppModifyTexturePacking (intptr,string,int[],string,int[],int)
0x0000019F17C9620B (Mono JIT Code) Substance.Game.SubstanceGraph:UpdateTexturePacking (Substance.Game.SubstanceGraph/TexturePackingItem)
0x0000019F17C8827B (Mono JIT Code) Substance.Game.SubstanceGraph:UpdateTexturePacking ()
0x0000019F17C8800B (Mono JIT Code) Substance.Game.SubstanceGraph:set_tpList (System.Collections.Generic.List`1<Substance.Game.SubstanceGraph/TexturePackingItem>)
0x0000019F17C94853 (Mono JIT Code) Substance.Editor.SubstanceImporter:CommitImporterToSubstance (Substance.Game.Substance)
0x0000019F100CB9AB (Mono JIT Code) Substance.Editor.SubstanceImporter:OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext)
0x0000019F17C5DF58 (Mono JIT Code) [C:\buildslave\unity\build\Modules\AssetPipelineEditor\Public\ScriptedImporter.cs:23] UnityEditor.Experimental.AssetImporters.ScriptedImporter:GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext)
0x0000019F0F8DDEF6 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
0x00007FFC635CBFB0 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFC63552142 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FFC6355B13F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke
0x00007FF793ED1012 (Unity) scripting_method_invoke
0x00007FF793ECACC1 (Unity) ScriptingInvocation::Invoke
0x00007FF7929A95C2 (Unity) ScriptedImporter::GenerateAssetData
0x00007FF7928C051F (Unity) AssetDatabaseV1::ImportAsset
0x00007FF7928D4EDC (Unity) AssetDatabaseV1::UpdateAsset
0x00007FF7928EBDFF (Unity) AssetInterface::ProcessAssetsImplementation
0x00007FF7928F69ED (Unity) AssetInterface::StopAssetEditing
0x00007FF7928F043E (Unity) AssetInterface::RefreshInternal
0x00007FF7928ED418 (Unity) AssetInterface::Refresh
0x00007FF79287A2F0 (Unity) AssetDatabase::Refresh
0x00007FF791F3C608 (Unity) Application::InitializeProject
0x00007FF7927E1843 (Unity) WinMain
0x00007FF79549C962 (Unity) __scrt_common_main_seh
0x00007FFCAC6D7BD4 (KERNEL32) BaseThreadInitThunk
0x00007FFCACB6CED1 (ntdll) RtlUserThreadStart

This is the stacktrace from the editor.log
Code: [Select]
0x00007FFC82B1B4E0 (Substance.Engine) cppShutdownSubstance
0x00007FFC82B15240 (Substance.Engine) cppModifyTexturePacking
0x0000019F17C97A4F (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_00007FFC82B15210 (intptr,string,int[],string,int[],int)
0x0000019F17C97DDC (Mono JIT Code) (wrapper delegate-invoke) <Module>:invoke_void_intptr_string_int[]_string_int[]_int (intptr,string,int[],string,int[],int)
0x0000019F17C977E6 (Mono JIT Code) [F:\EigeneProjekte\fantacity\Assets\Allegorithmic\Plugins\Substance.Platform\NativeFunctions.cs:1028] Substance.Platform.NativeFunctions:cppModifyTexturePacking (intptr,string,int[],string,int[],int)
0x0000019F17C9620B (Mono JIT Code) Substance.Game.SubstanceGraph:UpdateTexturePacking (Substance.Game.SubstanceGraph/TexturePackingItem)
0x0000019F17C8827B (Mono JIT Code) Substance.Game.SubstanceGraph:UpdateTexturePacking ()
0x0000019F17C8800B (Mono JIT Code) Substance.Game.SubstanceGraph:set_tpList (System.Collections.Generic.List`1<Substance.Game.SubstanceGraph/TexturePackingItem>)
0x0000019F17C94853 (Mono JIT Code) Substance.Editor.SubstanceImporter:CommitImporterToSubstance (Substance.Game.Substance)
0x0000019F100CB9AB (Mono JIT Code) Substance.Editor.SubstanceImporter:OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext)
0x0000019F17C5DF58 (Mono JIT Code) [C:\buildslave\unity\build\Modules\AssetPipelineEditor\Public\ScriptedImporter.cs:23] UnityEditor.Experimental.AssetImporters.ScriptedImporter:GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext)
0x0000019F0F8DDEF6 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
0x00007FFC635CBFB0 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFC63552142 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FFC6355B13F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke
0x00007FF793ED1012 (Unity) scripting_method_invoke
0x00007FF793ECACC1 (Unity) ScriptingInvocation::Invoke
0x00007FF7929A95C2 (Unity) ScriptedImporter::GenerateAssetData
0x00007FF7928C051F (Unity) AssetDatabaseV1::ImportAsset
0x00007FF7928D4EDC (Unity) AssetDatabaseV1::UpdateAsset
0x00007FF7928EBDFF (Unity) AssetInterface::ProcessAssetsImplementation
0x00007FF7928F69ED (Unity) AssetInterface::StopAssetEditing
0x00007FF7928F043E (Unity) AssetInterface::RefreshInternal
0x00007FF7928ED418 (Unity) AssetInterface::Refresh
0x00007FF79287A2F0 (Unity) AssetDatabase::Refresh
0x00007FF791F3C608 (Unity) Application::InitializeProject
0x00007FF7927E1843 (Unity) WinMain
0x00007FF79549C962 (Unity) __scrt_common_main_seh
0x00007FFCAC6D7BD4 (KERNEL32) BaseThreadInitThunk
0x00007FFCACB6CED1 (ntdll) RtlUserThreadStart

Hey @Flavelius ,

What version of Unity and what version of the plugin are you using? Also, are you using HDRP/URP or a Standard project?

Standard project, 2019.2.21f1, newest plugin from the asset store (2.4.4 it seems)