Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.1.0b2
2018.3.0b6
Issue ID
1092432
Regression
Yes
Substance.Engine causes Editor crash on cppShutdownSubstance when opening project containing custom .sbsar files
How to reproduce:
1. Open the attached "1092432_repro.zip" project
-- Editor crashes
Reproducible with - 2018.1.0b2, 2018.1.9f2, 2018.2.0a1, 2018.2.14f1, 2018.3.0b7, 2019.1.0a6
Not reproducible with - 2017.4.0f1, 2017.4.14f1, 2018.1.0a1, 2018.1.0b1
Notes:
- This crash does not occur after removing .sbsar files from the Assets folder
- Before regression, the project would open without crashing, but with Console errors "A scripted importer attempted to register file type 'sbsar', which is handled by a native Unity importer. Registration rejected. UnityEditor.Experimental.AssetImporters.ScriptedImporter:RegisterScriptedImporters()"
Stack trace:
(Substance.Engine) cppShutdownSubstance
(Substance.Engine) cppShutdownSubstance
(Substance.Engine) cppFreeMemory
(Substance.Engine) cppShutdownSubstance
(Substance.Engine) cppShutdownSubstance
(Substance.Engine) cppShutdownSubstance
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFDC1541631)
(Substance.Engine) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFDC1541915)
(Substance.Engine) (function-name not available)
(Substance.Engine) cppInitSubstance
(Mono JIT Code) (wrapper managed-to-native) Substance.Game.NativeFunctions:cppInitSubstance (string)
(Mono JIT Code) Substance.Game.NativeCallbacks:InitSubstance ()
(Mono JIT Code) Substance.Game.Substance:OnEnable ()
(Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
(mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
(mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2919] do_runtime_invoke
(mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2966] mono_runtime_invoke
(Unity) scripting_method_invoke
(Unity) ScriptingInvocation::Invoke
(Unity) ScriptingInvocation::InvokeChecked
(Unity) MonoBehaviour::CallMethodInactive
(Unity) MonoBehaviour::AwakeFromLoad
(Unity) ResetAndApplyDefaultReferencesOnNewMonoBehaviour
(Unity) Scripting::CreateScriptableObjectWithType
(Unity) ScriptableObject_CUSTOM_CreateScriptableObjectInstanceFromType
(Mono JIT Code) (wrapper managed-to-native) UnityEngine.ScriptableObject:CreateScriptableObjectInstanceFromType (System.Type)
(Mono JIT Code) [C:\buildslave\unity\build\Runtime\Export\ScriptableObject.bindings.cs:34] UnityEngine.ScriptableObject:CreateInstance (System.Type)
(Mono JIT Code) [C:\buildslave\unity\build\Runtime\Export\ScriptableObject.bindings.cs:40] UnityEngine.ScriptableObject:CreateInstance<T_REF> ()
(Mono JIT Code) Substance.Game.Substance:CreateInstance (string,byte[],object,uint[],string[],int[])
(Mono JIT Code) Substance.Editor.SubstanceImporter:OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext)
(Mono JIT Code) [C:\buildslave\unity\build\Modules\AssetPipelineEditor\Public\ScriptedImporter.cs:21] UnityEditor.Experimental.AssetImporters.ScriptedImporter:GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext)
(Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
(mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
(mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2919] do_runtime_invoke
(mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2966] mono_runtime_invoke
(Unity) scripting_method_invoke
(Unity) ScriptingInvocation::Invoke
(Unity) ScriptedImporter::GenerateAssetData
(Unity) AssetDatabaseV1::ImportAsset
(Unity) AssetDatabaseV1::UpdateAsset
(Unity) AssetInterface::ProcessAssetsImplementation
(Unity) AssetInterface::StopAssetEditing
(Unity) AssetInterface::RefreshInternal
(Unity) AssetInterface::Refresh
(Unity) AssetDatabase::Refresh
(Unity) Application::InitializeProject
(Unity) WinMain
(Unity) __scrt_common_main_seh
(KERNEL32) BaseThreadInitThunk
(ntdll) RtlUserThreadStart
Comments (3)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Xeekk
Dec 29, 2019 23:37
This isn't fixed in 2018.4 :| I've sent a couple of crash reports in the past few weeks.