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
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
Add comment