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

            Bug ID: 474924
           Summary: Kwin wayland crashes when dynamically changing from
                    software decode to hw code in steam -pipewire-dmabuf
    Classification: Plasma
           Product: kwin
           Version: 5.27.8
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Keywords: wayland
          Severity: crash
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: monkeyboy...@yahoo.com
  Target Milestone: ---
             Flags: Wayland+

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Start steam with `steam -pipewire-dmabuf`
2. Setup steam link with a pair client and host
2. Turn off hardware acceleration on the host
3. Setup a non steam game with 
target /usr/bin/gamescope 
Run in $HOME
application: /usr/share/code/code ## I only tested vscode at the moment.
4. Go to the client steam application and start the steam
5. Go to the host settings and turn on hardware acceleration
6. Kwin crashes

OBSERVED RESULT
Software remote works but hardware acceleration crashes

EXPECTED RESULT
No crash. At least fail gracefully.


    Unit: user@1000.service
     User Unit: plasma-kwin_wayland.service
         Slice: user-1000.slice
     Owner UID: 1000 (doof)
       Boot ID: fa2904d835574194aa15e8ed816493ad
    Machine ID: 5011abe9c25e4cad8dc58ec9dc82abe7
      Hostname: steamdeck.lan
       Storage:
/var/lib/systemd/coredump/core.kwin_wayland.1000.fa2904d835574194aa15e8ed816493ad.22146.1695780986000000.zst
(present)
  Size on Disk: 5.7M
       Message: Process 22146 (kwin_wayland) of user 1000 dumped core.

                Stack trace of thread 22146:
                #0  0x00007f3dffc91e0c __pthread_kill_implementation (libc.so.6
+ 0x91e0c)
                #1  0x00007f3dffc3f0e6 __GI_raise (libc.so.6 + 0x3f0e6)
                #2  0x00007f3dffc268d7 __GI_abort (libc.so.6 + 0x268d7)
                #3  0x00007f3e0218b1ba egl_provider_resolver (libepoxy.so.0 +
0xc11ba)
                #4  0x00007f3e0218e78a epoxy_eglDestroyImageKHR_resolver
(libepoxy.so.0 + 0xc478a)
                #5  0x00007f3e02c25587
_ZN4KWin15EglDmabufBuffer12removeImagesEv (libkwin.so.5 + 0x425587)
                #6  0x00007f3e02c27309 _ZN4KWin9EglDmabufD1Ev (libkwin.so.5 +
0x427309)
                #7  0x00007f3e02c2877c _ZN4KWin18AbstractEglBackendD2Ev
(libkwin.so.5 + 0x42877c)
                #8  0x00007f3e02b6f8e9 _ZN4KWin13EglGbmBackendD0Ev
(libkwin.so.5 + 0x36f8e9)
                #9  0x00007f3e029c5eb7 _ZN4KWin10Compositor4stopEv
(libkwin.so.5 + 0x1c5eb7)
                #10 0x00007f3e029be903 _ZN4KWin10Compositor12reinitializeEv
(libkwin.so.5 + 0x1be903)
                #11 0x00007f3e01125812
_ZN9QtPrivate15QSlotObjectBase4callEP7QObjectPPv (libQt5Core.so.5 + 0x325812)
                #12 0x00007f3e02b0c7ee _ZN4KWin9Workspace15slotReconfigureEv
(libkwin.so.5 + 0x30c7ee)
                #13 0x00007f3e01125812
_ZN9QtPrivate15QSlotObjectBase4callEP7QObjectPPv (libQt5Core.so.5 + 0x325812)
                #14 0x00007f3e011295ea _ZN6QTimer7timeoutENS_14QPrivateSignalE
(libQt5Core.so.5 + 0x3295ea)
                #15 0x00007f3e0111922b _ZN7QObject5eventEP6QEvent
(libQt5Core.so.5 + 0x31922b)
                #16 0x00007f3e005a519e
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 +
0x1a519e)
                #17 0x00007f3e010ed568
_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 +
0x2ed568)
                #18 0x00007f3e01145899 _ZN14QTimerInfoList14activateTimersEv
(libQt5Core.so.5 + 0x345899)
                #19 0x00007f3e01143d40
_ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5Core.so.5 + 0x343d40)
                #20 0x000055b0b79f9a5d
_ZN23QUnixEventDispatcherQPA13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(kwin_wayland + 0x136a5d)
                #21 0x00007f3e010ebffb
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 +
0x2ebffb)
                #22 0x00007f3e010f4490 _ZN16QCoreApplication4execEv
(libQt5Core.so.5 + 0x2f4490)
                #23 0x000055b0b791cf6a main (kwin_wayland + 0x59f6a)
                #24 0x00007f3dffc281b0 __libc_start_call_main (libc.so.6 +
0x281b0)
                #25 0x00007f3dffc28279 __libc_start_main_impl (libc.so.6 +
0x28279)
                #26 0x000055b0b791ea65 _start (kwin_wayland + 0x5ba65)


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:   steamdeck.lan 6.5.0-7.gb5edcad-default 
(available in About System)
KDE Plasma Version: 5.27.8 / wayland
KDE Frameworks Version: 5.110.0
Qt Version: 6.5.0-7.gb5edcad-default (64-bit)

lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE
Description:    openSUSE Tumbleweed
Release:        20230922
Codename:       n/a

Repository     : openSUSE:Tumbleweed
Name           : pipewire
Version        : 0.3.80-1.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 76,3 KiB
Installed      : Yes
Status         : up-to-date
Source package : pipewire-0.3.80-1.1.src



Trying display: wayland
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_19
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.19 (libva 2.19.0)
vainfo: Driver version: Mesa Gallium driver 23.1.7 for AMD Custom GPU 0405
(vangogh, LLVM 16.0.6, DRM 3.54, 6.5.0-7.gb5edcad-default)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

Information for package gamescope:
----------------------------------
Repository     : openSUSE:Tumbleweed
Name           : gamescope
Version        : 3.12.5+git0.a8471d8-2.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 1,5 MiB
Installed      : Yes
Status         : up-to-date
Source package : gamescope-3.12.5+git0.a8471d8-2.1.src
Upstream URL   : https://github.com/Plagman/gamescope

doof@steamdeck:~> zypper info mesa
Loading repository data...
Reading installed packages...


Information for package Mesa:
-----------------------------
Repository     : packman
Name           : Mesa
Version        : 23.1.7-1699.358.pm.3
Arch           : x86_64
Vendor         : http://packman.links2linux.de
Installed Size : 9,4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Mesa-23.1.7-1699.358.pm.3.src
Upstream URL   : https://www.mesa3d.org


ADDITIONAL INFORMATION
Steam Deck Host/Intel OSX client

I only tested vscode. I think you can reproduce this crash with many other
applications

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

Reply via email to