hoffstadt / hoffstadt/DearPyGui

Memory leak with Series

Open
#2,632 7 comments 0 reactions 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui

Version: 2.2
Operating System: Windows10

## My Issue/Question

When using the series in Dear PyGui, a memory leak has been observed. Specifically, after locking the screen (e.g., using Win+L) when a viewport with a series has been created, the memory usage of the main process begins to steadily increase.
I'm also tired test 2.3 bulid on Github Actions and it's still happen

## To Reproduce

Steps to reproduce the behavior:
1. Run the sample code
2. Press Win+L to lock the screen and wait for a while
3. Unlock screen
4. See error

## Expected behavior

Memory usage should remain constant and not increase over time.

## Standalone, minimal, complete and verifiable example

```python
import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title='test', width=600, height=600)

dpg.show_metrics()

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.