Search Issue Tracker
Fixed in 0.2.9-preview.3
Votes
1
Found in [Package]
0.2.9-preview.1
Issue ID
1329193
Regression
Yes
A unused variable in the MemoryProfiler package throws an error when the package is installed
How to reproduce:
1. Create a new Unity project
2. Add the attached "csc.rsp" file to the Assets folder
3. Open the Package Manager (Window -> Package Manager)
4. Install the "Memory Profiler" package
5. Check the Console
Expected results: There are no errors in the Console
Actual results: There is an error in the Console
Reproducible with: 0.2.9-preview.1 (2019.4.23f1, 2020.3.4f1)
Not reproducible with: 0.2.9-preview.1 (2018.4.33f1, 2021.1.4f1, 2021.2.0a14)
Note:
- The warning is: Library\PackageCache\com.unity.memoryprofiler@0.2.9-preview.1\Editor\MemorySnapshot\MemorySnapshot.cs(62,30): error CS0414: The field 'QueriedMemorySnapshot.kCurrentVersion' is assigned but its value is never used
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
- Depth of Field doesn't apply correctly to Canvas UI when it is set to World Space Render Mode
- Crash on GetElementMapKey when "None" is assigned to a field with binding path "m_GameObject"
- Stereoscopic skybox renders as monoscopic when using Multi-pass render mode in XR plugin while using URP
- Parameterized Tests with ValueSource fail when supplied parameter is an System.Object
- Error Message "Broken text PPtr in file" is not informative enough to locate the problematic asset
Resolution Note (fix version 0.2.9-preview.3):
Fixed in Memory Profiler 0.2.9-preview.3