Reproduction steps:
1. Open the attached project “PrefabLeak”
2. Double click on prefab ”Assets/Models/Units/Goblin/Goblin_01.prefab”
3. Select the “goblin_shield” GameObject
4. Deactivate and activate the selected GameObject
5. Observe the Console
Expected result: No errors in the console
Actual result: “There are remaining Allocations on the JobTempAlloc. This is a leak, and will impact performance” error is printed
Reproducible with: 2023.1.10f1, 2023.1.11f1, 2023.2.0b7
Not reproducible with: 2021.3.30f1, 2022.3.8f1, 2023.1.9f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- If no warnings appeared after the reproduction steps, then reimporting all assets and following the steps should make the warning appear
- The issue can be reproduced once or twice, afterwards, the warning appears inconsistently (unless assets are reimported)