Bug 479153 - PyQt6 app reports The cached device pixel ratio value was stale on window expose.
Summary: PyQt6 app reports The cached device pixel ratio value was stale on window exp...
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-29 11:24 UTC by Barry Scott
Modified: 2023-12-30 10:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
qtbug.py (805 bytes, text/x-python)
2023-12-29 11:24 UTC, Barry Scott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barry Scott 2023-12-29 11:24:45 UTC
Created attachment 164534 [details]
qtbug.py

SUMMARY

PyQt6 programs report "The cached device pixel ratio value was stale on window expose.  Please file a QTBUG which explains how to reproduce." when exiting.

The same code running under Fedora 39 KDE with Qt 6.6.0 does not show the error.

STEPS TO REPRODUCE
1. Run the attached qtbug.py script from a terminal.
2. Click on [X] to close the window
3. Error message shown in terminal.

OBSERVED RESULT

$ py3 qtbug.py
The cached device pixel ratio value was stale on window expose.  Please file a QTBUG which explains how to reproduce.

EXPECTED RESULT

No error printed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora rawhide: KDE plasma 6.0 beta 2
(available in About System)
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.1
PyQt6 Version: python3-pyqt6-6.6.1-1.fc40.x86_64
ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2023-12-29 17:20:32 UTC
Please report this to https://bugreports.qt.io/
Comment 2 Barry Scott 2023-12-30 10:15:04 UTC
Filed: https://bugreports.qt.io/browse/QTBUG-120454