Bug 453695 - KWin crashed in KWin::DrmOutput::renderCursorOpengl() with entering overview mode
Summary: KWin crashed in KWin::DrmOutput::renderCursorOpengl() with entering overview ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-05-12 11:31 UTC by Luofan Chen
Modified: 2022-05-24 06:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
crash message (21.40 KB, text/plain)
2022-05-12 11:33 UTC, Luofan Chen
Details
kwin_wayland crash dump (62.28 KB, text/plain)
2022-05-13 16:31 UTC, Luofan Chen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luofan Chen 2022-05-12 11:31:31 UTC
**Description: **

Kwin crashes when I try to enter the virtual desktop overview mode

**Reproduce:**
When I do the following thing on my laptop:

  1. Trying 4 Finger up gesture to enter the overview mode -> crash

Or:

  1. Move mouse to the top left hot-corner -> crash or sometimes enter the overview
  2. Click on the virtual desktop -> crash

journalctl shows a crash of kwin_wayland.

**Journalctl log:**

```
May 12 18:59:38 bbnarch kwin_wayland[2089]: file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
May 12 18:59:42 bbnarch kwin_wayland[2089]: ASSERT: "created" in file /home/main-builder/pkgwork/src/kwin/src/libkwineffects/kwingltexture.cpp, line 129
May 12 18:59:42 bbnarch kernel: kauditd_printk_skb: 1 callbacks suppressed
May 12 18:59:42 bbnarch kernel: audit: type=1701 audit(1652353182.004:229): auid=1000 uid=1000 gid=1000 ses=3 pid=2089 comm="kwin_wayland" exe="/usr/bin/kwin_wayland" sig=6 res=1
/systemd" hostname=? addr=? terminal=? res=success'
May 12 18:59:42 bbnarch systemd-coredump[3034]: [🡕] Process 2089 (kwin_wayland) of user 1000 dumped core.
```

See coredump [core.kwin_wayland.1000.39512d39c26e42478c6ec31dae803a51.2089.1652353182000000.zst](/uploads/b942666b79a1be539ab52f79e9546cd4/core.kwin_wayland.1000.39512d39c26e42478c6ec31dae803a51.2089.1652353182000000.zst)in the attachment

**Side Note**:

`mutter` is built from source, commit: 654313d46
Comment 1 Luofan Chen 2022-05-12 11:32:34 UTC
I am not able to add the coredump attachment, which is larger than the size limit.
Comment 2 Luofan Chen 2022-05-12 11:33:42 UTC
Created attachment 148758 [details]
crash message
Comment 3 Luofan Chen 2022-05-12 12:29:32 UTC
The problems seems to be caused by 1.25x scale. When I change it back to 1x or 2x, everything is OK
Comment 4 Nate Graham 2022-05-12 15:20:02 UTC
We don't need the whole core, just a backtrace generated from it. Can you get one? make sure you're getting a backtrace from kwin_wayland, as the thing you attached shows a crash in xdg-desktop-portal.
Comment 5 Luofan Chen 2022-05-13 16:31:10 UTC
Created attachment 148803 [details]
kwin_wayland crash dump

Sorry, here it is
Comment 6 Nate Graham 2022-05-16 15:53:20 UTC
Thanks. Pasting inline for searchability:

#0  0x00007f842160820c __pthread_kill_implementation (libc.so.6 + 0x9220c)
                                                #1  0x00007f84215b8838 raise (libc.so.6 + 0x42838)
                                                #2  0x00007f84215a2535 abort (libc.so.6 + 0x2c535)
                                                #3  0x00007f8422652ee4 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x9fee4)
                                                #4  0x00007f8422652f44 _Z9qt_assertPKcS0_i (libQt5Core.so.5 + 0x9ff44)
                                                #5  0x00007f84238092eb n/a (libkwinglutils.so.13 + 0xb2eb)
                                                #6  0x00007f841b21a06e _ZN4KWin9DrmOutput18renderCursorOpenglERK5QSize (KWinWaylandDrmBackend.so + 0x3306e)
                                                #7  0x00007f841b21a640 _ZN4KWin9DrmOutput12updateCursorEv (KWinWaylandDrmBackend.so + 0x33640)
                                                #8  0x00007f8422870463 n/a (libQt5Core.so.5 + 0x2bd463)
                                                #9  0x00007f84239d2374 _ZN4KWin7Cursors20currentCursorChangedEPNS_6CursorE (libkwin.so.5 + 0x15c374)
                                                #10 0x00007f8422870463 n/a (libQt5Core.so.5 + 0x2bd463)
                                                #11 0x00007f8423ad05aa n/a (libkwin.so.5 + 0x25a5aa)
                                                #12 0x00007f8422870463 n/a (libQt5Core.so.5 + 0x2bd463)
                                                #13 0x00007f8423ad2a69 _ZN4KWin23PointerInputRedirection24setEffectsOverrideCursorEN2Qt11CursorShapeE (libkwin.so.5 + 0x25ca69)
                                                #14 0x00007f8423a62204 _ZN4KWin18EffectsHandlerImpl22startMouseInterceptionEPNS_6EffectEN2Qt11CursorShapeE (libkwin.so.5 + 0x1ec204)
                                                #15 0x00007f84238610ff _ZN4KWin16QuickSceneEffect13startInternalEv (libkwineffects.so.13 + 0x370ff)
                                                #16 0x000055abaafca9b2 n/a (kwin_wayland + 0xc49b2)
                                                #17 0x00007f842384e529 n/a (libkwineffects.so.13 + 0x24529)
                                                #18 0x00007f842284daeb _ZNK11QMetaMethod6invokeEP7QObjectN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS5_S5_S5_S5_S5_S5_S5_S5_S5_ (libQt5Core.so.5 + 0x29aaeb)
                                                #19 0x00007f842284e56b _ZN11QMetaObject12invokeMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS7_S7_S7_S7_S7_S7_S7_S7_S7_ (libQt5Core.so.5 + 0x29b56b)
                                                #20 0x00007f8423aeee18 _ZN4KWin4Edge16handleByCallbackEv (libkwin.so.5 + 0x278e18)
                                                #21 0x00007f8423af2159 _ZN4KWin4Edge6handleERK6QPoint (libkwin.so.5 + 0x27c159)
                                                #22 0x00007f8423af2219 _ZN4KWin4Edge5checkERK6QPointRK9QDateTimeb (libkwin.so.5 + 0x27c219)
                                                #23 0x00007f8423af27e5 _ZN4KWin11ScreenEdges9isEnteredEP11QMouseEvent (libkwin.so.5 + 0x27c7e5)
                                                #24 0x00007f8423a839d8 n/a (libkwin.so.5 + 0x20d9d8)
                                                #25 0x00007f8423acec1d _ZN4KWin23PointerInputRedirection21processMotionInternalERK7QPointFRK6QSizeFS6_jyPNS_11InputDeviceE (libkwin.so.5 + 0x258c1d)
                                                #26 0x00007f8423acfe38 _ZN4KWin23PointerInputRedirection13processMotionERK6QSizeFS3_jyPNS_11InputDeviceE (libkwin.so.5 + 0x259e38)
                                                #27 0x00007f8422870463 n/a (libQt5Core.so.5 + 0x2bd463)
                                                #28 0x00007f84239d3687 _ZN4KWin11InputDevice13pointerMotionERK6QSizeFS3_jyPS0_ (libkwin.so.5 + 0x15d687)
                                                #29 0x00007f8423bdfd1e _ZN4KWin8LibInput10Connection13processEventsEv (libkwin.so.5 + 0x369d1e)
                                                #30 0x00007f84228637d6 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2b07d6)
                                                #31 0x00007f8421cf52c6 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x1792c6)
                                                #32 0x00007f842283f5aa _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28c5aa)
                                                #33 0x00007f84228400a9 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x28d0a9)
                                                #34 0x00007f842288ae97 _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d7e97)
                                                #35 0x000055abab053822 n/a (kwin_wayland + 0x14d822)
                                                #36 0x00007f842283788b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x28488b)
                                                #37 0x00007f8422842fd7 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x28ffd7)
                                                #38 0x000055abaaf57ec4 n/a (kwin_wayland + 0x51ec4)
                                                #39 0x00007f84215a3290 __libc_start_call_main (libc.so.6 + 0x2d290)
                                                #40 0x00007f84215a334a __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2d34a)
                                                #41 0x000055abaaf5a295 n/a (kwin_wayland + 0x54295)
Comment 7 Vlad Zahorodnii 2022-05-24 06:42:14 UTC
This crash should be already fixed. Please reopen it if you can still reproduce it.