Hello Unity Community,
I’m developing an open-world RPG and have encountered a memory management error that I’m struggling to resolve. The error message I receive is:
“Internal: deleting an allocation that is older than its permitted lifetime of 4 frames (age = 6)”
This error seems to indicate that some allocations are being held longer than their permitted lifetime and are only being deleted after 6 frames, exceeding the intended 4 frames. Here are some details about my project and what I’ve tried so far:
• Unity Version: 2023.2.1
• Graphics Backend: Using DirectX 12
• Error Context: This error occurs when I open the project, and when I play the scene in the editor.
• Troubleshooting Done: Memory Profiler (although it was my first time using it) only found out that 2d textures take up eight gigs of ram (I have 32 gigs)
I would appreciate any insights or advice on how to better track down and resolve this issue. Specifically, I’m looking for guidance on:
• Effective techniques for identifying the specific allocations causing this issue.
• Best practices for ensuring allocations are disposed of within their lifetime in a complex Unity project.
• Any known issues or common pitfalls with Unity’s memory management that might be causing this behavior.
Thank you in advance for your help!