-
Notifications
You must be signed in to change notification settings - Fork 7
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
Memory leak #288
Comments
@SergeevPavel thanks for the bug report. I am glad to see, that our work is used in a project. |
I don't understand that part about jni. Please describe in more detail. |
I'm working on lib that wrap webrender into jni interface. When I trying to run event loop on jvm thread it leads to constant errors from gfx-metal inside of Second thing is that every swapchain_recreation consume bunch of memory, that leads to total used memory grow. I'm no sure but for me it also looks like mem leak. |
Thank you for the info @SergeevPavel ! |
Hi, thank for your great work.
I doing some experiments on using webrender as a renderer for our ui framework and have faced with couple of problems.
I have simple example, that runs on mac os with metal backend. On every frame it sends display list with two rectangles. The problem with this is constant grow of used memory, according to profile on every frame
render_impl
allocates memory that will never be freed.Second problem is about jni and shader recompilation. When I do same thing like in first example but throw jni most calls of
submit_to_gpu
returnfalse
(particularly error is OutOfDate, but according to this comment I'm not sure, that it's relevant) which leads to swapchain recreation and shader recompilation. Shader recompilation took time and also lead to huge memory leak.I use macos 10.14.5 with Intel Iris Pro 1536 MB
I will be very grateful if you give me some thoughts about this examples
The text was updated successfully, but these errors were encountered: