Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X

Votes

0

Found in

2021.3.12f1

2022.2.0b11

2023.1.0a14

Issue ID

UUM-16966

Regression

Yes

Crash with VCCache::GetEntry when trying to access Perforce API in a scripted importer on startup

--

-

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*)

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.