Reproduction steps:
1. Open the attached project
2. If the Editor does not crash, close it
3. Edit the "Assets/TestAsset.test" file in any way
4. Open the project again
Expected result: The project opens up
Actual result: The Editor crashes
Reproducible with: 2021.2.0a20, 2021.3.12f1, 2022.2.0b11, 2023.1.0a14
Not reproducible with: 2020.3.40f1, 2021.2.0a19
Reproduced on: macOS 12.5.1 (Intel)
Stacktrace:
#0 0x000001034cfc14 in std::_1::tree_iterator<std::1::value_type<std::1::pair<UnityGUID, bool>, VCCache::VCCacheEntry>, std::1::tree_node<std::1::value_type<std::1::pair<UnityGUID, bool>, VCCache::VCCacheEntry>, void*>*, long> std::1::tree<std::1::value_type<std::1::pair<UnityGUID, bool>, VCCache::VCCacheEntry>, std::1::map_value_compare<std::1::pair<UnityGUID, bool>, std::1::value_type<std::1::pair<UnityGUID, bool>, VCCache::VCCacheEntry>, std::1::less<std::1::pair<UnityGUID, bool> >, true>, std::1::allocator<std::1::value_type<std::1::pair<UnityGUID, bool>, VCCache::VCCacheEntry> > >::find<std::1::pair<UnityGUID, bool> >(std::_1::pair<UnityGUID, bool> const&)
#1 0x000001034c971c in VCCache::GetEntry(UnityGUID const&, bool, VCAsset&, bool)
#2 0x000001034c5dba in VCCache::GetAssetByPath(core::basic_string<char, core::StringStorageDefault<char> > const&, VCAsset&, bool)
#3 0x000001034c115c in VersionControlBindings::VCProvider::GetAssetByPath(core::basic_string<char, core::StringStorageDefault<char> > const&)
#4 0x00000101e51235 in Provider_CUSTOM_GetAssetByPath(ScriptingBackendNativeStringPtrOpaque*)