Search Issue Tracker
Fixed
Votes
0
Found in
2020.3
2020.3.3f1
2021.1
2021.2
Issue ID
1334322
Regression
No
Opening a project gets stuck in an infinite recompilation loop
Reproduction steps:
1. Unzip the packages into a folder next to the project folder
2. Open the Project "MeshPrefabImport2.zip"
3. Click Ignore in the Safe Mode dialog
4. Click No in the "upgrading the Input" dialog (optional - makes the log cleaner)
Expected result: The project opens successfully
Actual result: Recompiling is stuck on an infinite loop
Reproducible with: 2020.3.8f1, 2021.1.5f1, 2021.2.0a17
Could not test (the project is opened with various errors): 2018.4, 2019.4
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
Package triggers the compilation loop because VersioningEditorCallbacks.cs has this code running on each domain reload:
private static void OnAfterAssemblyReload()
{
Version v = GetAssemblyVersion("Game");
if (v == default)
{
ILog log = LogManager.GetLogger("AssemblyPostProcessor");
log.Info("Must recompile game for versioning");
CompilationPipeline.RequestScriptCompilation();
}
}
There is no "Game" asmdef in the project.
I manually added an asmdef to the project, there is no more compilation loop.