Search Issue Tracker
Fixed in 2022.2.X
Duplicate in 2021.3.X
Votes
0
Found in
2021.2
2021.2.2f1
2022.1
Issue ID
1378193
Regression
No
Infinite loop not detected when importing ShaderGraph assets
Postprocessing materials and ShaderGraph assets can cause an infinite loop, where the same patch of assets is repeatedly imported and post processed.
The AssetDatabase has infinite loop detection for these sorts of scenarios, but the hashing is non-deterministic, so it can fail to detect that the same assets are being repeatedly imported.
The bug can be reproduced by simply opening the attached project.
I also have a native test 'PostProcess_InfiniteLoop_Checking_IsDeterministic' to verify the behaviour at a smaller scale.
Steps to reproduce:
- Open project
Expected behaviour:
- Project opens successfully - maybe with errors/warnings in the console
Actual behaviour:
- Project gets stuck in importing.
- The text 'Importing (iteration xxx)' in the progress bar will keep increasing the iteration number into the hundreds and thousands while importing .mat and .shadergraph assets
Workaround:
- Kill the Unity process and attempt to open the project again
Reproduces on: 2021.2.0b18, 2021.2.2f1, 2022.1.0a14
Not reproduces: 2020.3.22f1
Note: please use both stripped and full project for verification (both can be found in the comment)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment