Open zlt999 opened 1 year ago
The code sample you provided does not show increasing memory usage on my machine. I'm testing with windows 10. I will have to check a windows 11 machine.
Ah by the way, I'm using python version 3.10.7
Just found memory also increasing when I lock PC
I have observed the same issue on windows 11.
OS: Windows 11 Dearpygui version 1.10 Python 3.11
If you minimize the app the memory for the raw texture seems to not get de-allocated each time a frame update is happening. The memory linearly increases proportionally to the size of the raw texture image. It will increase until the app hangs and crashes. Although no error message is printed in the terminal. If you de-minimize the window then it stops increasing in memory usage but it still does not free the memory that was not deallocated while minimized.
If you increase the size of the raw texture, the effect linearly increases. So it does appear to be a direct issue with the raw texture and windows 11. This did not seem to be an issue on Windows 10, although now all my systems were recently upgraded to 11 so I don't have access to Windows 10 anymore to test. But I only started to get bug reports from users of our apps when they upgraded to 11.
I was able to log into a Windows 10 machine and verified that the issue is isolated to Windows 11.
OS Windows 10 Dearpygui version 1.10 Python 3.11
No issue - only seen on Windows 11.
I have Windows 11 running with the sample code minimized and I'm not seeing any leaks:
I'm running Python 3.9, 3.10, and 3.11. I'm using an AMD GPU. What GPU are you guys using?
I just ran the code and if I minimize the window and then look in the task manager, the python process memory continues to linearly increase until the app uses all available memory and crashes. If I don't minimize the window it does not do this, the memory usage stays constant.
The system I just tested it on is a HP ZBook Firefly G8 which has a NVIDIA T500 (4 GB GDDR5 dedicated) graphics card and Intel Iris Xe Graphics.
I am running python 3.11.
What timeframe? I let it run for about 10 mins.
It starts happening immediately. I can see the memory usage start to increase right after minimizing. On Apr 15, 2024, at 4:17 PM, Jonathan Hoffstadt @.***> wrote: What timeframe? I let it run for about 10 mins.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Here's the environment I'm using
Version of Dear PyGui
Version: 1.8.0 Operating System: Windows 11
My Issue/Question
Occupied memory keep increasing and app finally crash, if register raw texture and minimize the app window (I'm running code from example: https://dearpygui.readthedocs.io/en/latest/documentation/textures.html#raw-textures)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Hope memory not increasing when using raw texture and minimize the window
Screenshots/Video
Standalone, minimal, complete and verifiable example