Search Issue Tracker
Fixed in 0.1.0-preview.7
Votes
0
Found in [Package]
0.1.0-preview.1
Issue ID
1146246
Regression
No
[MemoryProfiler] AddupRawRefCount loop variable overflows when capturing large memory snapshots (> 2^31 entries)
Reproduction steps:
1. Inspect the source code for the "Memory Profiler" package
2. Open the source file "ManagedDataCrawler.cs"
3. Observe the loop inside the AddupRawRefCount method
Expected result: the loop variable "i" is of type uint to match the count it is iterating over
Actual result: the loop variable "i" is of type int while snapshot.connections.Count is a uint resulting in an overflow of "i" when snapshot.connections.Count > 2^31
Reproducible with package: 0.1.0-preview.6
Reproducible with: 2018.3.0a9, 2018.3.13f1, 2019.1.0f2, 2019.2.0a12
Could not test with: 2017.4.26f1 (no package manager), 2018.3.0a8 (unable to open the Memory Profiler Window)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
Add comment