Search Issue Tracker

Fixed in 2021.2.X

Votes

0

Found in

2019.4

2020.3

2020.3.20f1

2021.1

Issue ID

1376322

Regression

No

Editor crashes when reinstalling dependencies on "Starter Assets"

Asset - Database

-

How to reproduce:
1. Open the attached project "Starter.zip"
2. Open "SampleScene" Scene
3. Click Tools > Starter Assets > Reinstall Dependencies in the Menu Items
4. Repeat step 3 1-5 times

Expected result: dependencies get reinstalled
Actual result: Editor crashes

Reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.1.28f1
Not reproducible with: 2021.2.0a1, 2021.2.3f1, 2022.1.0a15

macOS Stack trace:
#0 0x007fff204ff92e in __pthread_kill
#1 0x007fff20483406 in abort
#2 0x00000159cce26b in mono_log_close_logfile
#3 0x00000159ce145c in monoeg_g_logv
#4 0x00000159ce15d3 in monoeg_assertion_message
#5 0x00000159c05b25 in mono_class_from_mono_type
#6 0x00000159ca63af in mono_type_get_object_checked
#7 0x00000159ca636a in mono_type_get_object
#8 0x000001084c39cd in scripting_class_get_object(ScriptingClassPtr)
#9 0x000001091de3a6 in AssetDatabase::CollectManagedImportDependencyGetters(AssetDatabase::AssetImporterSelection&, ArtifactKey const&)
#10 0x0000010920ae41 in AssetImportManager::Import(core::hash_map<AssetDatabase::ImporterID, ImporterInfo, core::hash<AssetDatabase::ImporterID>, std::__1::equal_to<AssetDatabase::ImporterID> > const&, dynamic_array<PostprocessorInfo, 0ul> const&, AssetResolver&, CategorizedAssets&, IImportProgress*, core::hash_set<UnityGUID, core::hash<UnityGUID>, std::__1::equal_to<UnityGUID> > const&, LoadedImportedAssetsSnapshot const*, core::hash_set<core::basic_string<char, core::StringStorageDefault<char> >, core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > > >&, CrashedAssetImportsDatabase&, bool)
#11 0x00000109279ebc in RefreshInternalV2(AssetDatabase::UpdateAssetOptions, ScanFilter const&, InternalRefreshFlagsV2)
#12 0x000001092584a4 in StopAssetImportingV2(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const*)
#13 0x000001092545d1 in ImportAtPathV2(core::basic_string_ref<char>, AssetDatabase::UpdateAssetOptions)
#14 0x000001091ebc6f in AssetDatabase::ImportAtPath(core::basic_string_ref<char>, AssetDatabase::UpdateAssetOptions)
#15 0x00000109580bc5 in AssetDatabaseBindings::ImportAsset(core::basic_string<char, core::StringStorageDefault<char> > const&, AssetDatabase::UpdateAssetOptions)
#16 0x0000010961de45 in AssetDatabase_CUSTOM_ImportAsset(ScriptingBackendNativeStringPtrOpaque*, AssetDatabase::UpdateAssetOptions)
#17 0x000001972d4175 in (wrapper managed-to-native) UnityEditor.AssetDatabase:ImportAsset (string,UnityEditor.ImportAssetOptions) {0x7fb2897b3380} + 0x65 (0x1972d4110 0x1972d41fd) [0x15a148960 - Unity Child Domain]
#18 0x0000016db849d4 in (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr) {0x7fb269fb32f0} + 0xc4 (0x16db84910 0x16db84a13) [0x15a148960 - Unity Child Domain]
#19 0x00000159ad0c4f in mono_jit_runtime_invoke
#20 0x00000159c6ec2b in do_runtime_invoke

  1. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0a1

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.