the mono build has an unclear memory allocation happening over time. According to profiler project csripts allocate 0 bytes, but memory keeps growing over 100 Mb in 1 hour. If the application runs for 100 hours, the memory allocation can grow to 10 GB.
Unity 2022.3.7f + Memory Profiler 1.1.0-pre.1
Below are the memory snapshots in comparison.
Have you had to deal with similar issues?
What direction do you need to look deeper into?
Hi. I can’t say much about the source of the leak, but the fact that it’s “unknown” is a bug.
It happens if someone (inside Unity) isn’t using memory “labeling” functionality.
As an alternative, you can try and upgrade to 2023.2 alpha, and check there. We might have fixed it already and you’ll see the culprit. However, it isn’t always an option, as upgrading a large project might be a long and tedious task.