Search Issue Tracker

Fixed in 2019.1.X

Votes

0

Found in

2019.1.0a10

2019.1.0a14

Issue ID

1118266

Regression

Yes

Editor crashes when ScriptableObject filename does not match class name when reloading the ScriptableObject

Asset - Importers

-

Steps to reproduce:
1. Open supplied project
2. Click menu item "Examples" -> "Reload ScriptableObject Example"

Expected: no crash
Actual: crashes

Reproduced in: 2019.1.0a10, 2019.1.0a14, 2019.2.0a2
Not reproduced in: 2017.4.0f1, 2017.4.18f1*, 2018.3.3f1*, 2019.1.0a1*, 2019.1.0a9*

Notes:
*Console just throws: Failed to reload ScripableObject.
UnityEngine.Debug:LogError(Object)
ScriptableObjectReload:ReloadScriptableObject() (at Assets/TotallyWrongFilename.cs:76)

Stack trace:
0x00007FF6A1E62FE9 (Unity) SerializableManagedRefTransfer::TransferTextBased<SerializableManagedRefBackupGenerator,YAMLRead>
0x00007FF6A36D8C56 (Unity) MonoBehaviour::VirtualRedirectTransfer
0x00007FF6A1EA9AE3 (Unity) SerializedFile::ReadObject
0x00007FF6A1E791BA (Unity) PersistentManager::ReadAndActivateObjectThreaded
0x00007FF6A1E771E9 (Unity) PersistentManager::LoadObjectsThreaded
0x00007FF6A1E76F60 (Unity) PersistentManager::LoadObjects
0x00007FF6A22C3B81 (Unity) ReloadAssets<core::hash_set<UnityGUID,core::hash<UnityGUID>,std::equal_to<UnityGUID> > >
0x00007FF6A22D29B0 (Unity) AssetInterface::ProcessAssetsImplementation
0x00007FF6A22DD929 (Unity) AssetInterface::StopAssetEditing
0x00007FF6A22D7568 (Unity) AssetInterface::RefreshInternal
0x00007FF6A22D4595 (Unity) AssetInterface::Refresh
0x00007FF6A2264E89 (Unity) AssetDatabase::Refresh
0x00007FF6A16F8694 (Unity) AssetDatabase_CUSTOM_Refresh
0x0000028BCC09E58E (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:Refresh (UnityEditor.ImportAssetOptions)
0x0000028BCC09E463 (Mono JIT Code) [C:\buildslave\unity\build\artifacts\WinEditor\modules\Editor\AssetDatabaseBindings.gen.cs:307] UnityEditor.AssetDatabase:Refresh ()
0x0000028BCC0944C3 (Mono JIT Code) [E:\Downloads\ScriptableObjectReloadCrash\ScriptableObjectReloadCrash\Assets\TotallyWrongFilename.cs:68] ScriptableObjectReload:ReloadScriptableObject ()
0x0000028BCC094885 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FFA557FBFEB (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFA55781F52 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FFA5578AF4F (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2968] mono_runtime_invoke
0x00007FF6A370C0B2 (Unity) scripting_method_invoke
0x00007FF6A3706241 (Unity) ScriptingInvocation::Invoke
0x00007FF6A37064BE (Unity) ScriptingInvocation::InvokeChecked
0x00007FF6A18A9705 (Unity) ScriptCommands::InvokeMenuItemWithContext
0x00007FF6A18A54B1 (Unity) ScriptCommands::Execute
0x00007FF6A1C40E57 (Unity) MenuController::ExecuteMenuItem
0x00007FF6A21D7910 (Unity) ProcessMainWindowMessages
0x00007FF6A21CB4F1 (Unity) ContainerWindow::ContainerWndProc
0x00007FFAC1086D41 (USER32) CallWindowProcW
0x00007FFAC1086713 (USER32) DispatchMessageW
0x00007FF6A21D47FC (Unity) MainMessageLoop
0x00007FF6A21DE0E6 (Unity) WinMain
0x00007FF6A4C683D2 (Unity) __scrt_common_main_seh
0x00007FFABF1B3034 (KERNEL32) BaseThreadInitThunk
0x00007FFAC1703691 (ntdll) RtlUserThreadStart

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.