How to troubleshoot broken KDE Plasma Window Manager?

Hi,

Problem:
After a reboot today, I can open windows, but I cannot move them or switch between them. I am not sure exactly what the problem is or how to troubleshoot it.

Environment

Guess

  • I am guessing this is related to my windows manager, but I am not sure.
  • I don’t knnow how to debug or troubleshoot this
  • I would be more than happy to provide you with any info you require.

Thanks in advance

Welcome to Manjaro! :smiling_face_with_three_hearts:

  1. Please read the information behind this link. It will help you to post necessary information. [HowTo] Provide System Information
  2. Please press the three dots below your post and then press the :pencil2:
  • If you give us information about your system, we can see what we’re talking about and make better suggestions.
  • You can do this by using inxi in a terminal or in console.
sudo inxi --admin --verbosity=7 --filter --no-host --width
  • Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
  • Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
  1. Copy the output from inxi (including the command) and paste it into your post.
  • To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.
    (Wisdom lies in reading :wink: )

Thank you for the kind response.

I could not copy/paste info before because I could not even switch between windows.

For some reason, after the last reboot things are working again - I wish I knew why it wasn’t working earlier.

Are there special windows manager logs, etc I can look into?

Although everything is working now, when I look into system logs I see that plasma-kwin_x11.service: Failed with result 'exit-code' However when I look through ps -aux I still see kwin-x11 running.

Feb 06 13:59:19 rothko kwin_x11[1425]: kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
Feb 06 13:59:19 rothko kwin_x11[1425]: kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
Feb 06 13:59:19 rothko kwin_x11[1425]: OpenGL vendor string:                   NVIDIA Corporation
Feb 06 13:59:19 rothko kwin_x11[1425]: OpenGL renderer string:                 NVIDIA GeForce GTX 1080/PCIe/SSE2
Feb 06 13:59:19 rothko kwin_x11[1425]: OpenGL version string:                  3.1.0 NVIDIA 525.85.05
Feb 06 13:59:19 rothko kwin_x11[1425]: OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Feb 06 13:59:19 rothko kwin_x11[1425]: Driver:                                 NVIDIA
Feb 06 13:59:19 rothko kwin_x11[1425]: Driver version:                         525.85.5
Feb 06 13:59:19 rothko kwin_x11[1425]: GPU class:                              Unknown
Feb 06 13:59:19 rothko kwin_x11[1425]: OpenGL version:                         3.1
Feb 06 13:59:19 rothko kwin_x11[1425]: GLSL version:                           1.40
Feb 06 13:59:19 rothko kwin_x11[1425]: X server version:                       1.21.1
Feb 06 13:59:19 rothko kwin_x11[1425]: Linux kernel version:                   6.1.9
Feb 06 13:59:19 rothko kwin_x11[1425]: Requires strict binding:                no
Feb 06 13:59:19 rothko kwin_x11[1425]: GLSL shaders:                           yes
Feb 06 13:59:19 rothko kwin_x11[1425]: Texture NPOT support:                   yes
Feb 06 13:59:19 rothko kwin_x11[1425]: Virtual Machine:                        no
Feb 06 13:59:30 rothko kwin_x11[1425]: Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
Feb 06 14:06:40 rothko kwin_x11[1425]: The X11 connection broke (error 1). Did the X11 server die?
Feb 06 14:06:40 rothko systemd[1350]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Feb 06 14:06:40 rothko systemd[1350]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Feb 06 14:06:40 rothko systemd[1350]: plasma-kwin_x11.service: Consumed 9.568s CPU time.

Here are some info from inxi

  Kernel: 6.1.9-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=71437e2b-4ee7-4a72-bc2a-92e4afb80df4 rw
    resume=UUID=52c7d3d1-653d-473f-8c0c-9f33ce3b99bd udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 info: latte-dock
    wm: kwin_x11 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A serial: N/A
  Mobo: ASUSTeK model: X99-A II v: Rev 1.xx serial: <filter>
    UEFI: American Megatrends v: 2101 date: 07/10/2019
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1080] vendor: ASUSTeK driver: nvidia
    v: 525.85.05 alternate: nouveau,nvidia_drm non-free: 525.xx+
    status: current (as of 2022-12) arch: Pascal code: GP10x process: TSMC 16nm
    built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1b80 class-ID: 0300
  Device-2: Logitech Webcam C170 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 3-8:3 chip-ID: 046d:082b class-ID: 0102
  Display: x11 server: X.Org v: 21.1.6 compositor: kwin_x11 driver: N/A
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 162 s-size: 602x341mm (23.70x13.43")
    s-diag: 692mm (27.24")
  Monitor-1: DP-0 res: 3840x2160 hz: 60 dpi: 163
    size: 600x340mm (23.62x13.39") diag: 690mm (27.15") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 525.85.05 renderer: NVIDIA GeForce GTX
    1080/PCIe/SSE2 direct render: Yes
1 Like

This could be theme related - if you are using a custom theme.

Custom themes you download and install throught the Settings Manager is neither tested nor validated.

Switch to the Global theme to default Manjaro or Breeze theme - and to be sure you sure the complete default - tick the include box before application.

Then restart to complete the transition.

Thank you for the suggestion. I am using bits & parts of various themes (like icons, etc). But I set that stuff up back in 2019, haven’t touched it since. Which is really a credit to Manjaro’s stability & the communities contributors.

The problem I am experiencing is new to me.

This issue happened again this morning, I rebooted and now all is good again.

Is there a way I can see what’s happening? Are there any logs, I can review?

When I look through journalctl for kwin related logs starting today’s boot (the one that had issues). I see a few logs starting with KCrashs - do these ring a bell - class names seem to suggest OpenGL or Qt?

  3 Feb 07 08:50:28 rothko kwin_x11[1437]: OpenGL renderer string:                 NVIDIA GeForce GTX 1080/PCIe/SSE2
  4 Feb 07 08:50:28 rothko kwin_x11[1437]: OpenGL version string:                  3.1.0 NVIDIA 525.85.05
  5 Feb 07 08:50:28 rothko kwin_x11[1437]: OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
  6 Feb 07 08:50:28 rothko kwin_x11[1437]: Driver:                                 NVIDIA
  7 Feb 07 08:50:28 rothko kwin_x11[1437]: Driver version:                         525.85.5
  8 Feb 07 08:50:28 rothko kwin_x11[1437]: GPU class:                              Unknown
  9 Feb 07 08:50:28 rothko kwin_x11[1437]: OpenGL version:                         3.1
 10 Feb 07 08:50:28 rothko kwin_x11[1437]: GLSL version:                           1.40
 11 Feb 07 08:50:28 rothko kwin_x11[1437]: X server version:                       1.21.1
 12 Feb 07 08:50:28 rothko kwin_x11[1437]: Linux kernel version:                   6.1.9
 13 Feb 07 08:50:28 rothko kwin_x11[1437]: Requires strict binding:                no
 14 Feb 07 08:50:28 rothko kwin_x11[1437]: GLSL shaders:                           yes
 15 Feb 07 08:50:28 rothko kwin_x11[1437]: Texture NPOT support:                   yes
 16 Feb 07 08:50:28 rothko kwin_x11[1437]: Virtual Machine:                        no
 17 Feb 07 08:50:28 rothko kwin_x11[1437]: GlideConfig::instance called after the first use - ignoring
 18 Feb 07 08:50:28 rothko kwin_x11[1437]: BlurConfig::instance called after the first use - ignoring
 19 Feb 07 08:50:28 rothko kwin_x11[1437]: ZoomConfig::instance called after the first use - ignoring
 20 Feb 07 08:50:29 rothko kwin_x11[1437]: WindowViewConfig::instance called after the first use - ignoring
 21 Feb 07 08:50:29 rothko kwin_x11[1437]: SlidingPopupsConfig::instance called after the first use - ignoring
 22 Feb 07 08:50:29 rothko kwin_x11[1437]: SlideConfig::instance called after the first use - ignoring
 23 Feb 07 08:50:29 rothko kwin_x11[1437]: OverviewConfig::instance called after the first use - ignoring
 24 Feb 07 08:50:29 rothko kwin_x11[1437]: KscreenConfig::instance called after the first use - ignoring
 25 Feb 07 08:50:29 rothko kwin_x11[1437]: DesktopGridConfig::instance called after the first use - ignoring
 26 Feb 07 08:50:37 rothko kwin_x11[1437]: QOpenGLVertexArrayObject::destroy() failed to make VAO's context current
 27 Feb 07 08:50:39 rothko kwin_x11[1437]: QOpenGLVertexArrayObject::destroy() failed to make VAO's context current
 28 Feb 07 08:51:44 rothko kwin_x11[1437]: qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions|ResetNotificatio    n), depthBufferSize 0, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat    ::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile)
 29 Feb 07 08:51:44 rothko kwin_x11[1437]: QOpenGLVertexArrayObject::destroy() failed to make VAO's context current
 30 Feb 07 08:51:44 rothko kwin_x11[1437]: Application::crashHandler() called with signal 11; recent crashes: 1
 31 Feb 07 08:51:45 rothko kwin_x11[1437]: KCrash: crashing... crashRecursionCounter = 2
 32 Feb 07 08:51:45 rothko kwin_x11[1437]: KCrash: Application Name = kwin_x11 path = /usr/bin pid = 1437
 33 Feb 07 08:51:45 rothko kwin_x11[1437]: KCrash: Arguments: /usr/bin/kwin_x11 --replace
 34 Feb 07 08:51:45 rothko audit[1437]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 pid=1437 comm="kwin_x11" exe="/usr/bin/kwin_x11" sig=11 res=1
 35 Feb 07 08:51:45 rothko systemd[1363]: plasma-kwin_x11.service: Main process exited, code=dumped, status=11/SEGV
 36 Feb 07 08:51:45 rothko systemd[1363]: plasma-kwin_x11.service: Failed with result 'core-dump'.
 37 Feb 07 08:51:45 rothko systemd[1363]: plasma-kwin_x11.service: Consumed 4min 1.623s CPU time.

Update
Things stopped working, I killed the session using another terminal. And see the following in the journalctl.

Feb 07 10:13:31 rothko kwin_x11[1427]: KCrash: crashing... crashRecursionCounter = 2
Feb 07 10:13:31 rothko kwin_x11[1427]: KCrash: Application Name = kwin_x11 path = /usr/bin pid = 1427
Feb 07 10:13:31 rothko kwin_x11[1427]: KCrash: Arguments: /usr/bin/kwin_x11 --replace
Feb 07 10:13:31 rothko audit[1427]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 pid=1427 comm="kwin_x11" exe="/usr/bin/kwin_x11" sig=11 res=1
Feb 07 10:13:31 rothko kernel: audit: type=1701 audit(1675793611.552:144): auid=1000 uid=1000 gid=1000 ses=3 pid=1427 comm="kwin_x11" exe="/usr/bin/kwin_x11" sig=11 res=1
Feb 07 10:13:31 rothko dbus-daemon[1361]: [session uid=1000 pid=1361] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.97' (uid=1000 pid=8708 comm="/usr/bin/kwin_x11 --crashes 1")
Feb 07 10:13:32 rothko kwin_x11[8708]: qt.qpa.xcb: could not connect to display :0
Feb 07 10:13:32 rothko audit[8708]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 pid=8708 comm="kwin_x11" exe="/usr/bin/kwin_x11" sig=6 res=1
Feb 07 10:13:32 rothko kwin_x11[8708]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Feb 07 10:13:32 rothko kwin_x11[8708]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Feb 07 10:13:32 rothko systemd-coredump[8778]: Process 8708 (kwin_x11) of user 1000 dumped core.
                                               #9  0x00007f846e032965 _ZN4KWin11ApplicationC1ENS0_13OperationModeERiPPc (libkwin.so.5 + 0x232965)
                                               #10 0x0000559a87d60991 n/a (kwin_x11 + 0x3d991)
                                               #13 0x0000559a87d62225 n/a (kwin_x11 + 0x3f225)
Feb 07 10:13:32 rothko systemd-coredump[8739]: Process 1427 (kwin_x11) of user 1000 dumped core.
                                               #4  0x00007f9825003fd4 _ZN4KWin9Workspace14workspaceEventEP19xcb_generic_event_t (libkwin.so.5 + 0x203fd4)
                                               #15 0x00005651e03cae40 n/a (kwin_x11 + 0x3de40)
                                               #18 0x00005651e03cc225 n/a (kwin_x11 + 0x3f225)
Feb 07 10:13:32 rothko systemd[1341]: plasma-kwin_x11.service: Main process exited, code=dumped, status=11/SEGV
Feb 07 10:13:32 rothko systemd[1341]: plasma-kwin_x11.service: Failed with result 'core-dump'.
Feb 07 10:13:32 rothko systemd[1341]: plasma-kwin_x11.service: Consumed 51.876s CPU time.
Feb 07 10:13:40 rothko kwin_x11[8874]: kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
Feb 07 10:13:40 rothko kwin_x11[8874]: kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
Feb 07 10:13:41 rothko kwin_x11[8874]: OpenGL vendor string:                   NVIDIA Corporation
Feb 07 10:13:41 rothko kwin_x11[8874]: OpenGL renderer string:                 NVIDIA GeForce GTX 1080/PCIe/SSE2
Feb 07 10:13:41 rothko kwin_x11[8874]: OpenGL version string:                  3.1.0 NVIDIA 525.85.05
Feb 07 10:13:41 rothko kwin_x11[8874]: OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Feb 07 10:13:41 rothko kwin_x11[8874]: Driver:                                 NVIDIA
Feb 07 10:13:41 rothko kwin_x11[8874]: Driver version:                         525.85.5
Feb 07 10:13:41 rothko kwin_x11[8874]: GPU class:                              Unknown
Feb 07 10:13:41 rothko kwin_x11[8874]: OpenGL version:                         3.1
Feb 07 10:13:41 rothko kwin_x11[8874]: GLSL version:                           1.40
Feb 07 10:13:41 rothko kwin_x11[8874]: X server version:                       1.21.1
Feb 07 10:13:41 rothko kwin_x11[8874]: Linux kernel version:                   6.1.9
Feb 07 10:13:41 rothko kwin_x11[8874]: Requires strict binding:                no
Feb 07 10:13:41 rothko kwin_x11[8874]: GLSL shaders:                           yes
Feb 07 10:13:41 rothko kwin_x11[8874]: Texture NPOT support:                   yes
Feb 07 10:13:41 rothko kwin_x11[8874]: Virtual Machine:                        no
Feb 07 10:13:56 rothko kwin_x11[8874]: Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
Feb 07 10:14:51 rothko kwin_x11[8874]: kwin_core: XCB error: 152 (BadDamage), sequence: 25867, resource id: 16777783, major code: 143 (DAMAGE), minor code: 3 (Subtract)

Please try to do as suggested:

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem

Thank you @andreas85 I saw that as well. But which application is it complaining about…

I have found this thread - I’ll read through it later (qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. | Qt Forum)

Seems like a similar issue…

Could not load the Qt platform plugin “xcb”