Search Issue Tracker

Fixed

Fixed in 2021.3.30f1, 2022.3.8f1, 2023.1.9f1, 2023.2.0b5, 2023.3.0a1

Votes

0

Found in

2021.3.28f1

2022.3.4f1

2023.1.3f1

2023.2.0a22

2023.3.0a1

Issue ID

UUM-42369

Regression

No

Crash on DynamicHeapAllocator::Allocate during Importer consistency check

--

-

How to reproduce:
1. Unzip the attached “Repro_project.zip“ project
2. Open the Command Prompt
3. Run this command line: "C:\Program Files\Unity\Hub\Editor\2022.3.1f1\Editor\Unity.exe" -projectPath <PATH_TO_REPRO_PROJECT> -refreshImportMode InProcess -desiredWorkerCount 1 -consistencyCheck -consistencyCheckSourceMode local

Expected result: The project finishes importing
Actual result: The project import crashes during the consistency check

Reproducible with: 2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a22

Reproduced on: Windows 10

Unity.exe!ShaderCompilationInfo::GetSnippet(int)    Unknown
Unity.exe!ShaderLab::Program::GetMatchingSubProgram(class Shader const *,class ShaderLab::Pass const *,struct keywords::LocalKeywordState const &,unsigned int,struct keywords::LocalKeywordState *,enum ShaderSnippetResult &,enum AsyncShaderCompilationMode,bool,int,int)    Unknown
Unity.exe!ShaderLab::ShaderState::FindSubProgramsToUse(class Shader const *,class ShaderLab::Pass const *,class ShaderLab::SubPrograms &,struct ShaderPassContext const &,struct keywords::LocalKeywordState const &,bool,int,int)    Unknown
Unity.exe!ShaderLab::Pass::PrepareVariant(class Shader const *,struct ShaderPassContext &,struct keywords::LocalKeywordState const &,bool,int,int)    Unknown
Unity.exe!AsyncSmokeTestCompilationForAllPasses()    Unknown
Unity.exe!ShaderImportPostprocess()    Unknown
Unity.exe!Postprocess(class core::hash_set<struct UnityGUID,struct core::hash<struct UnityGUID>,struct std::equal_to<struct UnityGUID> > const &,class core::hash_set<struct UnityGUID,struct core::hash<struct UnityGUID>,struct std::equal_to<struct UnityGUID> > const &,class core::hash_set<struct UnityGUID,struct core::hash<struct UnityGUID>,struct std::equal_to<struct UnityGUID> > const &,class std::map<struct UnityGUID,class core::basic_string<char,class core::StringStorageDefault<char> >,struct std::less<struct UnityGUID>,class std::allocator<struct std::pair<struct UnityGUID const ,class core::basic_string<char,class core::StringStorageDefault<char> > > > > const &)    Unknown
Unity.exe!CallPostProcessAllAssetsCallbacks()    Unknown
Unity.exe!ProcessPostProcessAllAssetNotificationsAndHotReload()    Unknown
Unity.exe!StopAssetImportingV2Internal()    Unknown
Unity.exe!ImportAssetsV2_Internal<struct dynamic_array<struct UnityGUID,0> >(struct dynamic_array<struct UnityGUID,0> const &,enum AssetDatabase::UpdateAssetOptions)    Unknown
Unity.exe!AssetDatabase::ConsistencyChecker::FullCheck(bool,enum AssetDatabase::ConsistencyCheckSourceMode)    Unknown
Unity.exe!Application::InitializeProject(void)    Unknown
Unity.exe!WinMain()    Unknown
Unity.exe!__scrt_common_main_seh()    Unknown
kernel32.dll!00007ffcf5e226ad()    Unknown
ntdll.dll!00007ffcf7eca9f8()    Unknown

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.