Search Issue Tracker
Won't Fix
Votes
6
Found in
2020.3.32f1
2022.1.0b12
2022.2.0a8
Issue ID
UUM-3895
Regression
No
Terrain Detail Mesh creates unnamed "Texture2D" with no reference to an Object when capturing a Snapshot in Memory Profiler
Reproduction steps:
1. Open the attached project "Bug Test.zip"
2. Open the Memory Profiler from "Window > Analysis > Memory Profiler"
3. Press Capture New Snapshot
4. Open the Snapshot
5. Press on "Texture2D" and again on "Texture2D"
6. Observe the "Texture2D"
Expected result: There is no such Texture
Actual result: 'Texture2D "Unnamed Object has no reference"' is created that takes 21.3 MB of memory
Reproducible with: 2020.3.32f1, 2021.2.17f1, 2022.1.0b12, 2022.2.0a8
Could not test with: 2019.4.37f1 - "Terrain" Asset fails to load with error "File may be corrupted or was serialized with a newer version of Unity"
Comments (2)
-
TJHeuvel-net
Mar 23, 2022 12:15
Just to add; if we disable Detail object rendering this texture stays in memory. Our custom detail solution doesnt use the texture.
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
- “Open” button in Inspector does not function for certain Assets
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
Resolution Note:
The solution in this user's case is to reduce the size of the textures on the details that are used on the terrains. This can be done with the import options on the textures themselves. This will result in much smaller texture atlases.
As the user is using a custom detail rendering system, they may want to use two versions of each detail - one for giving to the terrain system for authoring detail coverage, and an equivalent with appropriate texture sizes for their actual rendering.