https://bugs.kde.org/show_bug.cgi?id=488994

            Bug ID: 488994
           Summary: Kwin crashes when an application e.g game
                    disables/block the compositor
    Classification: Plasma
           Product: kwin
           Version: git-stable-Plasma/6.1
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: core
          Assignee: kwin-bugs-n...@kde.org
          Reporter: andresd.dia...@gmail.com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to