Resizing OS window makes Dear PyGui unresponsive
When running the demo application (as detailed in #2387), if I resize the OS window before touching the DPG window, the DPG window gets completely unresponsive, and I can only close down the OS window. Python 3.12.6, Windows 10 Pro 22H2, DPG 1.11.1
Version of Dear PyGui
Python v3.12.6 Dear PyGui v1.11.1 Windows 10 Pro 22H2
My Issue/Question
When running the demo application (as detailed in #2387), if I resize the OS window before touching the DPG window, the DPG window gets completely unresponsive, and I can only close down the OS window.
To Reproduce
Steps to reproduce the behavior:
`import dearpygui.dearpygui as dpg import dearpygui.demo as demo
dpg.create_context() dpg.create_viewport(title='Custom Title', width=600, height=600)
demo.show_demo()
dpg.setup_dearpygui() dpg.show_viewport() dpg.start_dearpygui() dpg.destroy_context() `
Run code, resize the OS window, then try clicking or click-dragging any part of the DPG window. It's completely unresponsize, and all I can do it close the OS window.
Expected behavior
I'd expect DPG to run as normal even when resizing the OS window first. If I just click the DPG window before resizing the OS window, all is well. 100% reproducible here.
Yes, yes, yes! I've encountered this same problem many times. Windows 11 23H2. In the end, I decided to prohibit resizing so that there was no way to break it. But if somebody fix it, it would be great. Although first I would like to get support for Python 3.13.
I have the same problem.
I have a DPG application (https://github.com/Heron-Repositories/Heron) that I have to be able to resize. Yet now that I test DPG 2.0 (last I had everything working was 1.11) every time I resize either the OS window or any child window the app just freezes.
This is reproducible also in the smallest working DPG code (like the demo that peralmered mentions and in all other simple DPG code).
I added autosize=True and always_auto_resize=True to the window and child window making functions but it did not help at all.
This behaviour is true on Windows 11 (23H2) but not on Linux machines (tested on a Ubuntu 20.04.6 and on a WSL Ubuntu 22.04.4).d
This is getting even more weird.
I just realised that if I resize a window (and freeze the app) and then proceed to maximize the main window then the app responds perfectly well again. If I unmaximize it then it becomes not responsive once more. I can do that as many time as I want.
Happening on DPG v. 2.0.0 and Python 3.13.1. This seems to only happen when resizing from a side of the window, not from the corner. In metrics, this causes a large time spike in "Viewport prerender."
Tried on multiple Windows machines, but not Linux.
Here's a video (minimal example code, but with show_metrics instead of demo since it's more animated): https://github.com/user-attachments/assets/85bee10f-9731-411d-9757-9e4c3a516b85
anyone find the way to solve? I've the same problem with DPG v.2.0.0 and Python 3.9.13
Same issue here, maximizing and resizing again seems to "unfreeze" the app
me too
Just out of curiosity: this is a complete showstopper for me. I can't deliver software to friends, family or clients with this behavior, which in turn means I have to stick with PySide or tkInter. How can this not be a priority?
I've encountered a similar issue on Windows Server 2022, dearpygui 2.0.0 More like the one reported in https://github.com/hoffstadt/DearPyGui/issues/2361 in my case, though
List of issues I encountered here that may be related to this one:
- https://github.com/hoffstadt/DearPyGui/issues/2361
- https://github.com/hoffstadt/DearPyGui/issues/2477
Following all of them in case there are updates.
This is being worked on. No ETA yet but we'll try to fix it soon.