community
community copied to clipboard
Widgets disappears when resizing (old bug reappears in new version)
Software Versions
- Python: 3.12
- OS: Windows 11
- Kivy: 2.3.0
- Kivy installation method: poetry add kivy (I also tried with pip see Stackoverflow post that I shared
Describe the bug The specific problem is that when I resize the application window, everything appears to be working initially, but after a while, all widgets disappear, leaving only a blank screen. The window remains responsive, and I can still move and resize it, but none of the widgets are visible any more.
Full description and additional information is already posted to Stackoverflow https://stackoverflow.com/questions/77872108/kivy-application-widgets-disappear-when-resizing-window-issue/77874372?noredirect=1#comment137290011_77874372
Expected behavior No blank screen, no exceptions.
To Reproduce Try to run with hello world app or any other example snippet, and resize several times after ~5-20 try you'll get the exception in my Stackoverflow post. You'll also find my log file there.
Code and Logs and screenshots Flow the stack overflow link that I shared above
You example on Stack Overflow you show installing both Kivy and KivyMD. I suggest you try to pip install kivy in to a venv, per the instructions and report the results.
The idea is to try and isolate the issue that is causing the problem.
I already did it. My post on stackoverflow summarizes all possible combinations that I tried. I started with Kivy I did both poetry and pip install one after another creating venv's Later I tried with KivyMD doing the same Later I did the same with developers releases I tried any combination I think you should concentrate on errors But first try to replicate this error with same releases Python 3.12 and Kivy 2.3.0 on Windows 11. You can use Hello World application with a single button. Try to resize it several times, soon you should get the same error.
Elliot Garbus @.***>, 31 Oca 2024 Çar, 01:15 tarihinde şunu yazdı:
You example on Stack Overflow you show installing both Kivy and KivyMD. I suggest you try to pip install kivy in to a venv, per the instructions and report the results.
The idea is to try and isolate the issue that is causing the problem.
— Reply to this email directly, view it on GitHub https://github.com/kivy/kivy/issues/8595#issuecomment-1917987759, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGJI6VKBUKPLZSGD42UJF3YRFWGLAVCNFSM6AAAAABCRVUAAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJXHE4DONZVHE . You are receiving this because you authored the thread.Message ID: @.***>
I am mentioning the main symptom here on GitHub so it is searchable, and not subject to a StackExchange question not being deleted:
[INFO ] KivyMD: Color scheme generation. Get a color scheme from an installed palette - 0.004485299999942072 sec.
[WARNING] stderr: Exception ignored on calling ctypes callback function: <bound method _WindowsSysDPIWatch._wnd_proc of <kivy.core.window.window_sdl2._WindowsSysDPIWatch object at 0x00000290FB4F2F90>>
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr: File "d:\Learning\Projects\Kivy\Udemy\hello_kivymd\venv\Lib\site-packages\kivy\core\window\window_sdl2.py", line 998, in _wnd_proc
[WARNING] stderr: return windll.user32.CallWindowProcW(
[WARNING] stderr: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[WARNING] stderr: OSError: exception: access violation reading 0x000002909F58E3A8
[INFO ] Base: Leaving application in progress...```
@aekarahan I can not reproduce your error with the same software configuration. This suggests there could be something in your system configuration causing the issue.
You mentioned you have a 4K monitor. What is your scale setting in Windows? Can you try setting it to 125% or 100%. I know these values work as expected on my laptop and desktop respectively.
I have checked. Unfortunately the same result.
Ok, I'll check, tomorrow
31 Oca 2024 Çar 02:15 tarihinde Elliot Garbus @.***> şunu yazdı:
@aekarahan https://github.com/aekarahan I can not reproduce your error with the same software configuration. This suggests there could be something in your system configuration causing the issue.
You mentioned you have a 4K monitor. What is your scale setting in Windows? Can you try setting it to 125% or 100%. I know these values work as expected on my laptop and desktop respectively.
— Reply to this email directly, view it on GitHub https://github.com/kivy/kivy/issues/8595#issuecomment-1918074011, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGJI6WLBYGSTUJ6KTQDMMDYRF5KVAVCNFSM6AAAAABCRVUAAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYGA3TIMBRGE . You are receiving this because you were mentioned.Message ID: @.***>
Later, I have disconnected the second monitor (Huion Drawing Tablet), disabled its driver and tried with single monitor. Unfortunately the same result again. I have checked the Huion driver, update with new driver version, tried again. Unfortunately the same result again. Finally, I've removed the Huion device and device driver completely, manually checked for updates and retry. Same result. Restart the system with new setting (single monitor) Same result.