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
- [WebGPU] error with compute shader and read-only RWTexture
- Capacity-size memory is copied instead of Length-size when using UnsafeUtility.memCpy()
- Console displays "SerializedObjectNotCreatableException: Object at index 0 is null" error during Unity theme change while "Tile Palette" window is opened
- Details are not shown when Error Message is still selected after changing Log Entry Count in the Console
- Disabling Unity VCS in Project Settings unfocuses the Project Settings Window
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a3