-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
ImGui seems to leaks memory on Linux #4660
Comments
Hi Personally don't think to a ImGui trouble (necessarily ): the references are all inside compiled libraries
Instead, in an other computer, always in Fedora 34, but with AMD drivers, i get this (somewhat different) report:
|
|
Disabling
And is identical (with or w/o flag) with AMD GPU. Tested also SDL version with same results. |
|
|
Hope that helps :/ |
Well I guess it is a “leak” in the nvidia/amd driver, a simple GL window loop would likely have the same issue and therefore it’s probably not an issue we can tackle on dear imgui backends side.
It is possible those leaks are not accumulating and not a real problem apart from showing up in satinization tools.
|
Just for the sake of completeness, I summarize the results with AMD GPU/drivers : example_glfw_opengl3
example_glfw_opengl2
example_sdl_opengl3
example_sdl_opengl2
And ending: no substantial differences with or without Multi-Viewports enabled |
Closing as per #4660 (comment) |
Version/Branch of Dear ImGui:
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: g++-11.1.0
Operating System: linux 5.10.70-1-MANJARO x86_64
My Issue/Question:
Running the example for glfw with opengl3 with sanitizer flags seems to indicate that memory is leaked.
Standalone, minimal, complete and verifiable example: (see #2261)
Running the following commands:
and closing the window shows the following output:
The text was updated successfully, but these errors were encountered: