Memory leaks in femtovg #4079
Replies: 2 comments 2 replies
-
It could be caching of data that we do internally, but I am not deep enough into that code to make any useful statement without investing serious effort. I am afraid it will take a few days to get this answered: The people that wrote that code only return by the end of the week. |
Beta Was this translation helpful? Give feedback.
-
I'm been running your example on my Windows machine under Visual Studio's memory heap profiler. I observe two things:
I also observe that when I change your test case to make the window resizable, the size of the process memory usage depends on the size of the window. If I make the window bigger, the memory usage goes up, if I shrink it it goes down. To me this looks similar to #3376 . I'm not entirely sure there's much that we can do on the Slint side about how the graphics drivers allocate memory. Unless there is a real leak, that is. Does the memory usage grow indefinitely for you, or does it flatten out? |
Beta Was this translation helpful? Give feedback.
-
Hello!
Using Slint 1.3.2 / Windows 11 / FemtoVG
Substantial memory leaks occur when using repeated timer (triggers every 1ms for example) which renders a Text object.
Memory leakage appears with FemtoVG renderer (both debug and release builds).
Skia renderer seems to work ok.
In the example you can see:
Just after start the app consumes 22.4 Mb
After couple minutes of working the app consumes 41.7 Mb
I'm not creating any additional objects in the loop, so why is the application using more and more memory after each timer ticks?
Beta Was this translation helpful? Give feedback.
All reactions