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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Add comment