Bug 488994 - Kwin crashes when an application e.g game disables/block the compositor
Summary: Kwin crashes when an application e.g game disables/block the compositor
Status: RESOLVED DUPLICATE of bug 488756
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 6.1.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-22 17:58 UTC by Andres
Modified: 2024-06-27 10:01 UTC (History)
6 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 Andres 2024-06-22 17:58:04 UTC
SUMMARY
Kwin crashes when opening games that try to disable the compositor, it causes the windows to flicker and continuously alt tab to desktop until it completely crashes and no windows can be moved or closed I have to restart the pc to fix this issue, disabling Allow applications to block compositing seems to help but it still happens on game start up.

STEPS TO REPRODUCE
1. Login into plasma x11 
2. Open a game that tries to disable composition e.g Minecraft or cs2

OBSERVED RESULT
Windows flicker and continuously alt+ tab to the desktop and back to the game over and over, until the desktop  "freezes", images still render, videos and games still move but no mouse or keyboard action trigger any type of response on opened windows.

EXPECTED RESULT
game runs without crashing kwin.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 6.9.5
(available in About System)
KDE Plasma Version: 6.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Video showing the issue:
https://drive.google.com/file/d/1E7E24199gFz_DTiLV7uV15Bye7TrUJgz/view?usp=drive_link

Crashed process viewer:

           PID: 1075 (kwin_x11)
           UID: 1000 (andres)
           GID: 984 (users)
        Signal: 11 (SEGV)
     Timestamp: Sat 2024-06-22 11:07:00 CST (1min 39s ago)
  Command Line: /usr/bin/kwin_x11 --replace
    Executable: /usr/bin/kwin_x11
 Control Group: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-kwin_x11.service
          Unit: user@1000.service
     User Unit: plasma-kwin_x11.service
         Slice: user-1000.slice
     Owner UID: 1000 (andres)
       Boot ID: c3f7443b83844b2cbac88912a49b42ba
    Machine ID: fb4034a1b6a84da4989b26d8c66aa6ce
      Hostname: Arch
       Storage: /var/lib/systemd/coredump/core.kwin_x11.1000.c3f7443b83844b2cbac88912a49b42ba.1075.1719076020000000.zst (present)
  Size on Disk: 7.3M
       Message: Process 1075 (kwin_x11) of user 1000 dumped core.
                
                Stack trace of thread 1075:
                #0  0x00007c146bca8e44 n/a (libc.so.6 + 0x94e44)
                #1  0x00007c146bc50a30 raise (libc.so.6 + 0x3ca30)
                #2  0x00007c146f4b8643 _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x6643)
                #3  0x00007c146bc50ae0 n/a (libc.so.6 + 0x3cae0)
                #4  0x000064dc39a61b50 n/a (n/a + 0x0)
                #5  0x00007c146c3a17e7 n/a (libQt6Core.so.6 + 0x1a17e7)
                #6  0x00007c146c3a9975 _ZN6QTimer10timerEventEP11QTimerEvent (libQt6Core.so.6 + 0x1a9975)
                #7  0x00007c146c38c0b9 _ZN7QObject5eventEP6QEvent (libQt6Core.so.6 + 0x18c0b9)
                #8  0x00007c146d2fc55c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0xfc55c)
                #9  0x00007c146c344e38 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x144e38)
                #10 0x00007c146c4c3c38 _ZN14QTimerInfoList14activateTimersEv (libQt6Core.so.6 + 0x2c3c38)
                #11 0x00007c146c5a4599 n/a (libQt6Core.so.6 + 0x3a4599)
                #12 0x00007c146b26da89 n/a (libglib-2.0.so.0 + 0x5ca89)
                #13 0x00007c146b2cf9b7 n/a (libglib-2.0.so.0 + 0xbe9b7)
                #14 0x00007c146b26cf95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95)
                #15 0x00007c146c5a28dd _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3a28dd)
                #16 0x00007c146c34f10e _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x14f10e)
                #17 0x00007c146c34945d _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x14945d)
                #18 0x000064dc16925e2b n/a (/usr/bin/kwin_x11 (deleted) + 0x38e2b)
                #19 0x00007c146bc39c88 n/a (libc.so.6 + 0x25c88)
                #20 0x00007c146bc39d4c __libc_start_main (libc.so.6 + 0x25d4c)
                #21 0x000064dc16929a25 n/a (/usr/bin/kwin_x11 (deleted) + 0x3ca25)
                
                Stack trace of thread 1089:
                #0  0x00007c146bd1c39d __poll (libc.so.6 + 0x10839d)
                #1  0x00007c146b2cf8fd n/a (libglib-2.0.so.0 + 0xbe8fd)
                #2  0x00007c146b26cf95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95)
                #3  0x00007c146c5a28dd _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3a28dd)
                #4  0x00007c146c34f10e _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x14f10e)
                #5  0x00007c146c43a4e0 _ZN7QThread4execEv (libQt6Core.so.6 + 0x23a4e0)
                #6  0x00007c146da26dfe n/a (libQt6DBus.so.6 + 0x2ddfe)
                #7  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #8  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #9  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 1444:
                #0  0x00007c146bd1c39d __poll (libc.so.6 + 0x10839d)
                #1  0x00007c146b2cf8fd n/a (libglib-2.0.so.0 + 0xbe8fd)
                #2  0x00007c146b26cf95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95)
                #3  0x00007c146c5a28dd _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3a28dd)
                #4  0x00007c146c34f10e _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x14f10e)
                #5  0x00007c146c440e00 _ZN7QThread3runEv (libQt6Core.so.6 + 0x240e00)
                #6  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #7  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #8  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 1090:
                #0  0x00007c146bd1c39d __poll (libc.so.6 + 0x10839d)
                #1  0x00007c146f52720b n/a (libxcb.so.1 + 0xd20b)
                #2  0x00007c146f528f3d xcb_wait_for_event (libxcb.so.1 + 0xef3d)
                #3  0x00007c1465de6211 n/a (libQt6XcbQpa.so.6 + 0x4e211)
                #4  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #5  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #6  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 4755:
                #0  0x00007c146bca34e9 n/a (libc.so.6 + 0x8f4e9)
                #1  0x00007c146bca6242 pthread_cond_timedwait (libc.so.6 + 0x92242)
                #2  0x00007c146c4ce058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ce058)
                #3  0x00007c146c4c7d52 n/a (libQt6Core.so.6 + 0x2c7d52)
                #4  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #5  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #6  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 1927:
                #0  0x00007c146bd1c39d __poll (libc.so.6 + 0x10839d)
                #1  0x00007c146b2cf8fd n/a (libglib-2.0.so.0 + 0xbe8fd)
                #2  0x00007c146b26cf95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95)
                #3  0x00007c146c5a28dd _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3a28dd)
                #4  0x00007c146c34f10e _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x14f10e)
                #5  0x00007c146c440e00 _ZN7QThread3runEv (libQt6Core.so.6 + 0x240e00)
                #6  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #7  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #8  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 4756:
                #0  0x00007c146bca34e9 n/a (libc.so.6 + 0x8f4e9)
                #1  0x00007c146bca6242 pthread_cond_timedwait (libc.so.6 + 0x92242)
                #2  0x00007c146c4ce058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ce058)
                #3  0x00007c146c4c7d52 n/a (libQt6Core.so.6 + 0x2c7d52)
                #4  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #5  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #6  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 4758:
                #0  0x00007c146bca34e9 n/a (libc.so.6 + 0x8f4e9)
                #1  0x00007c146bca6242 pthread_cond_timedwait (libc.so.6 + 0x92242)
                #2  0x00007c146c4ce058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ce058)
                #3  0x00007c146c4c7d52 n/a (libQt6Core.so.6 + 0x2c7d52)
                #4  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #5  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #6  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 4757:
                #0  0x00007c146bca34e9 n/a (libc.so.6 + 0x8f4e9)
                #1  0x00007c146bca6242 pthread_cond_timedwait (libc.so.6 + 0x92242)
                #2  0x00007c146c4ce058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2ce058)
                #3  0x00007c146c4c7d52 n/a (libQt6Core.so.6 + 0x2c7d52)
                #4  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #5  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #6  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                
                Stack trace of thread 1137:
                #0  0x00007c146bd1c39d __poll (libc.so.6 + 0x10839d)
                #1  0x00007c146b2cf8fd n/a (libglib-2.0.so.0 + 0xbe8fd)
                #2  0x00007c146b26cf95 g_main_context_iteration (libglib-2.0.so.0 + 0x5bf95)
                #3  0x00007c146c5a28dd _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3a28dd)
                #4  0x00007c146c34f10e _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x14f10e)
                #5  0x00007c146c440e00 _ZN7QThread3runEv (libQt6Core.so.6 + 0x240e00)
                #6  0x00007c146c4c96e7 n/a (libQt6Core.so.6 + 0x2c96e7)
                #7  0x00007c146bca6ded n/a (libc.so.6 + 0x92ded)
                #8  0x00007c146bd2a0dc n/a (libc.so.6 + 0x1160dc)
                ELF object binary architecture: AMD x86-64
Comment 1 nebrassy 2024-06-23 01:36:52 UTC
I have the same issue, took me a while to figure out kwin was actually the problem.

kwin 6.0.5-2 didn't have this issue.
Comment 2 Vlad Zahorodnii 2024-06-24 08:16:40 UTC
I cannot reproduce the crash
Comment 3 nebrassy 2024-06-24 11:16:09 UTC
(In reply to Vlad Zahorodnii from comment #2)
> I cannot reproduce the crash

I tried again, enabled the option and you're right, I couldn't get it to crash
Played for a couple hours, and then after switching games it started happening again
Comment 4 Andres 2024-06-24 20:15:48 UTC
(In reply to Vlad Zahorodnii from comment #2)
> I cannot reproduce the crash

Is there any more information I could provide that would be helpful to you or others to reproduce this issue? I won't have access to my pc this week but I could get it to you next week. As mentioned by nebrassy this didn't used to happen in the previous version of kwin.
Comment 5 Josh Ice 2024-06-25 23:52:41 UTC
I've also been experiencing this since I updated to Plasma 6.1. I'm on Endeavour but my version numbers looks the exact same as OP's except I have Qt 6.7.2. It is also maybe worth noting I'm on Nvidia. If there's any additional info we can provide let us know.
Comment 6 S1LV3R 2024-06-26 12:02:53 UTC
This bug seems similar to mine, reported just before https://bugs.kde.org/show_bug.cgi?id=488921
Comment 7 David Edmundson 2024-06-27 10:01:13 UTC
backtraces don't match that, but do match the one I'm linking to. It's not a helpful trace, kwin is mostly just idling.

*** This bug has been marked as a duplicate of bug 488756 ***