Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2019.4
2020.3
2020.3.24f1
Issue ID
1387503
Regression
No
The value of a variable is changed after taking a Memory Profiler snapshot
Steps to reproduce:
1. Open the user attached project "fep.zip"
2. Open the "TestStackerCrane" Scene in the Assets folder
3. Enter "StackerCraneStateIdleHandler" in the Projects window toolbar's search field and open the returned file with Visual Studio
4. Set a breakpoint on the 135 line of "StackerCraneStateIdleHandler.cs" file
5. In Visual Studio select Attach to Unity and Play
6. In Visual Studio open the Locals window by pressing Ctrl + Alt + V > A
7. In the Locals window navigate to: this > base > Lhds > [0] > Positions > [0] and observe that the variable "StackerMission" is null
8. Remove the breakpoint set in step 2 and press Continue in Visual Studio
9. In Editor open Window > Analysis > Memory Profiler
10. In Memory Profiler window press Capture New Snapshot
11. In Visual Studio set a breakpoint on the 135 line of "StackerCraneStateIdleHandler.cs" file
12. When the breakpoint hits, repeat step 7
13. Observe the value of "StackerMission"
Expected result: the value of "StackerMission" is null
Actual result: the value of "StackerMission" is an empty object
Reproducible with: 2019.4.34f1, 2020.3.25f1
Couldn't test with: 2021.27f1, 2022.1.0b2 due to compilation errors after upgrading the project
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
- 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
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a3