-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process memory leak while running page #59
Comments
Need independent tests to identify cause |
We are noticing the same thing. A "simple" web page updating a clock that shows time (incuding milliseconds) makes the process memory increase. Not fast, but slow. Eventually, the process will run out of memory. |
This code example leaks 5.3Gb over 9.5 hours, equal to 9,4Mb per minute. Tested on Windows 11 Pro (10.0.22631), VS 2022 v17.8.3 using System.Diagnostics; var initUsage = Process.GetCurrentProcess().PrivateMemorySize64; AppCoreMethods.SetPlatformFontLoader(); var cfg = new ULConfig(); view.OnFinishLoading += (_, _, _) => view.URL = "https://demo.vindral.com/clock?scale=4"; while (!loaded) long startMem = -1; renderer.LogMemoryUsage(); while (!Console.KeyAvailable)
} renderer.LogMemoryUsage(); System.GC.Collect(); var exitUsage = Process.GetCurrentProcess().PrivateMemorySize64; |
On a complex page, like YouTube, process memory is constantly growing as it runs. Sometimes at 5mb per second. If the page is simple, then it doesn't grow.
Used by Veldrid
The text was updated successfully, but these errors were encountered: