DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Resizing OS window makes Dear PyGui unresponsive

Open peralmered opened this issue 1 year ago • 8 comments

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.

peralmered avatar Oct 10 '24 15:10 peralmered

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.

v01d-gh avatar Oct 10 '24 18:10 v01d-gh

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

georgedimitriadis avatar Dec 14 '24 23:12 georgedimitriadis

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.

georgedimitriadis avatar Dec 14 '24 23:12 georgedimitriadis

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

SeanChromech avatar Feb 04 '25 06:02 SeanChromech

anyone find the way to solve? I've the same problem with DPG v.2.0.0 and Python 3.9.13

gb88 avatar Mar 24 '25 07:03 gb88

Same issue here, maximizing and resizing again seems to "unfreeze" the app

patwitt avatar Mar 30 '25 20:03 patwitt

me too

hello-abson avatar May 22 '25 06:05 hello-abson

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?

peralmered avatar May 22 '25 10:05 peralmered

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.

paulovcmedeiros avatar Jun 13 '25 14:06 paulovcmedeiros

This is being worked on. No ETA yet but we'll try to fix it soon.

v-ein avatar Jun 17 '25 06:06 v-ein