Bug 478040 - Flickering kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 major code: 20, minor code 0
Summary: Flickering kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 major cod...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.5
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: X11-only
Depends on:
Blocks:
 
Reported: 2023-12-04 10:10 UTC by kde
Modified: 2025-02-24 17:58 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2023-12-04 10:10:06 UTC
SUMMARY
I did a system update / upgrade incl install firmware update.
since then, the screen flickers with some programs (mostly vscode)

Logs from journalctl -xe
Dec 04 10:50:50 plasmashell[92517]: kf.xmlgui: cannot find .rc file "kinfocenterui.rc" for component "kinfocenter"
Dec 04 10:50:50 plasmashell[92517]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width"
Dec 04 10:50:50 plasmashell[92517]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width"
Dec 04 10:50:51 plasmashell[92517]: QQmlEngine::setContextForObject(): Object already has a QQmlContext
Dec 04 10:50:51 plasmashell[92517]: Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
Dec 04 10:50:51 plasmashell[92517]: kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
Dec 04 10:51:00 plasmashell[92517]: QQmlEngine::setContextForObject(): Object already has a QQmlContext
Dec 04 10:51:00 plasmashell[92517]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Dec 04 10:51:00 plasmashell[92517]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Dec 04 10:51:00 plasmashell[92517]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Dec 04 10:51:00 plasmashell[92517]: qml: The item SubCategoryPage_QMLTYPE_111(0x55b00279c120) is already in the PageRow
Dec 04 10:51:04 plasmashell[92517]: QQmlEngine::setContextForObject(): Object already has a QQmlContext
Dec 04 10:51:04 plasmashell[92517]: qml: The item SubCategoryPage_QMLTYPE_111(0x55b00279c120) is already in the PageRow
Dec 04 10:51:08 plasmashell[92517]: QQmlEngine::setContextForObject(): Object already has a QQmlContext
Dec 04 10:51:08 plasmashell[92517]: qml: The item SubCategoryPage_QMLTYPE_111(0x55b00279c120) is already in the PageRow
Dec 04 10:51:47 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 46492, resource id: 16847964, major code: 20 (GetProperty), minor code: 0
Dec 04 10:51:48 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 47120, resource id: 16847973, major code: 20 (GetProperty), minor code: 0
Dec 04 10:52:06 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 50225, resource id: 16848660, major code: 20 (GetProperty), minor code: 0
Dec 04 10:52:20 ksmserver[4139]: ATTENTION: default value of option mesa_glthread overridden by environment.
Dec 04 10:52:30 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 55853, resource id: 16848669, major code: 20 (GetProperty), minor code: 0
Dec 04 10:52:45 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 58145, resource id: 16850092, major code: 20 (GetProperty), minor code: 0
Dec 04 10:54:12 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1174, resource id: 16851878, major code: 20 (GetProperty), minor code: 0
Dec 04 10:54:15 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1946, resource id: 16851965, major code: 20 (GetProperty), minor code: 0
Dec 04 10:54:25 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3814, resource id: 16851974, major code: 20 (GetProperty), minor code: 0
Dec 04 10:54:26 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4521, resource id: 16852301, major code: 20 (GetProperty), minor code: 0
Dec 04 10:54:31 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 6210, resource id: 16852337, major code: 20 (GetProperty), minor code: 0
Dec 04 10:54:41 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9775, resource id: 16853282, major code: 20 (GetProperty), minor code: 0
Dec 04 10:54:59 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 12349, resource id: 16853291, major code: 20 (GetProperty), minor code: 0
Dec 04 10:55:16 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 15197, resource id: 16854264, major code: 20 (GetProperty), minor code: 0
Dec 04 10:55:20 ksmserver[4139]: ATTENTION: default value of option mesa_glthread overridden by environment.
Dec 04 10:56:19 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 27003, resource id: 16857075, major code: 20 (GetProperty), minor code: 0
Dec 04 10:56:23 kwin_x11[3569]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 28092, resource id: 16857214, major code: 20 (GetProperty), minor code: 0



STEPS TO REPRODUCE
1. click on wifi icon in status bar or open vscode

OBSERVED RESULT
Flickering in several but not all programs:
 - Statusbar - popups (eg after click on wifi network selection)
 - vscode, completely

No flickering at all
  - firefox

EXPECTED RESULT
No flickering

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.5
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel: 6.1.0-13-amd64 (64-bit)
Debian 12 main
Comment 1 kde 2023-12-04 11:03:09 UTC
I seem to have achieved a weak mitigation of the problem by setting:

vi /etc/X11/xorg.conf.d/20-intel.conf

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "AccelMethod"  "sna"
EndSection

systemctl restart sddm

now I have some lines through graphical elements (eg in alt + tab screenicons) but at least the flickering stopped

# further info about the system:

iris xe graphics

OpenGL vendor string:                   Intel
OpenGL renderer string:                 Mesa Intel(R) Graphics (ADL GT2)
OpenGL version string:                  4.6 (Compatibility Profile) Mesa 22.3.6
OpenGL shading language version string: 4.60
Driver:                                 Intel
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
Mesa version:                           22.3.6
X server version:                       1.21.1
Linux kernel version:                   6.1
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
BlurConfig::instance called after the first use - ignoring
ZoomConfig::instance called after the first use - ignoring
WindowViewConfig::instance called after the first use - ignoring
SlidingPopupsConfig::instance called after the first use - ignoring
SlideConfig::instance called after the first use - ignoring
OverviewConfig::instance called after the first use - ignoring
KscreenConfig::instance called after the first use - ignoring
DesktopGridConfig::instance called after the first use - ignoring
Comment 2 TraceyC 2025-02-24 17:58:32 UTC
Adding the x11-only keyword