Bug 459740

Summary: KWin Crashes when I launch LibreSprite
Product: [Plasma] kwin Reporter: Charlie Baker <charl.cj.monke>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: charl.cj.monke, kde, nate
Priority: NOR    
Version: 5.25.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Charlie Baker 2022-09-27 15:32:46 UTC
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
***
KWin crashes whenever I try launching LibreSprite - as a LibreSprite dev and talking with other devs, it isn't a LibreSprite issue - something is wrong with KWin - so basically when I launch LibreSprite (both from terminal and app launcher), all my open apps stay running, KWin crashes and gives the crash notification

STEPS TO REPRODUCE
1. Compile LibreSprite
2. Run LibreSprite
3. Observe

OBSERVED RESULT
KWin crashes whenever LibreSprite is launched.

EXPECTED RESULT
LibreSprite to launch normally, with KWin not crashing.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 36 KDE Spin
(available in About System)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Comment 1 David Edmundson 2022-09-27 16:00:11 UTC
It doesn't crash here, I'm afraid we will need a crash log of kwin to proceed.

Please check coredumpctl kwin_wayland
Comment 2 Charlie Baker 2022-09-27 19:29:33 UTC
(In reply to David Edmundson from comment #1)
> It doesn't crash here, I'm afraid we will need a crash log of kwin to
> proceed.
> 
> Please check coredumpctl kwin_wayland

I'm running Plasma(X11) - is the command changed to `coredumpctl kwin_x11` ?
Comment 3 Nate Graham 2022-09-27 21:17:50 UTC
Yep.
Comment 4 Charlie Baker 2022-09-28 07:46:12 UTC
Gives this return:
```(base) [charl@Daisuke ~]$ coredumpctl dump kwin_x11
           PID: 25595 (kwin_x11)
           UID: 1000 (charl)
           GID: 1000 (charl)
        Signal: 6 (ABRT)
     Timestamp: Fri 2022-09-16 18:44:25 BST (1 week 4 days ago)
  Command Line: kwin_x11 -platform dde-kwin-xcb:appFilePath=/usr/bin/kwin_no_scale
    Executable: /usr/bin/kwin_x11
 Control Group: /user.slice/user-1000.slice/session-8.scope
          Unit: session-8.scope
         Slice: user-1000.slice
       Session: 8
     Owner UID: 1000 (charl)
       Boot ID: 341a13d75a6d4b30ae8d0615e78f32e5
    Machine ID: d111a0edf10a44639a33cc372258ac5f
      Hostname: Daisuke
       Storage: /var/lib/systemd/coredump/core.kwin_x11.1000.341a13d75a6d4b30ae8d0615e78f32e5.25595.1663350265000000.zst (missing)
       Message: Process 25595 (kwin_x11) of user 1000 dumped core.
                
                Module linux-vdso.so.1 with build-id ef533bb262f1a045f813981c3d60075160f0756a
                Module libpcre2-8.so.0 with build-id 0d207ce0c9db9ba59d4a8264b95c5ebf3ddec190
                Metadata for module libpcre2-8.so.0 owned by FDO found: {
                        "type" : "rpm",
                        "name" : "pcre2",
                        "version" : "10.40-1.fc36",
                        "architecture" : "x86_64",
                        "osCpe" : "cpe:/o:fedoraproject:fedora:36"
                }
                
                Module libbrotlicommon.so.1 with build-id e2790c03a5c688b7e75e89676cdd2b5fcf247a6f
                Metadata for module libbrotlicommon.so.1 owned by FDO found: {
                        "type" : "rpm",
                        "name" : "brotli",
                        "version" : "1.0.9-7.fc36",
                        "architecture" : "x86_64",
                        "osCpe" : "cpe:/o:fedoraproject:fedora:36"
                }
                
                Module libxml2.so.2 with build-id aadf5879c68f117634a6bd13135e48749e846fc9
                Metadata for module libxml2.so.2 owned by FDO found: {
                        "type" : "rpm",
                        "name" : "libxml2",
                        "version" : "2.9.14-1.fc36",
                        "architecture" : "x86_64",
                        "osCpe" : "cpe:/o:fedoraproject:fedora:36"
                }
                
                Module libusbmuxd-2.0.so.6 with build-id b17561def18aa71a956649f6f81facc8ed4e669b
                Stack trace of thread 25595:
                #0  0x00007fcb00720c4c __pthread_kill_implementation (libc.so.6 + 0x8ec4c)
                #1  0x00007fcb006d09c6 raise (libc.so.6 + 0x3e9c6)
                #2  0x00007fcb006ba7f4 abort (libc.so.6 + 0x287f4)
                #3  0x00007fcb019224f5 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0xb14f5)
                #4  0x00007fcb01f5136b _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x16336b)
                #5  0x00007fcb01f51818 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x163818)
                #6  0x00007fcb01b1fb01 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2aeb01)
                #7  0x00007fcb01f53bc3 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x165bc3)
                #8  0x00007fcb00ea733d _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x1b433d)
                #9  0x00007fcb02b31b94 _ZN4KWin11ApplicationC1ENS0_13OperationModeERiPPc (libkwin.so.5 + 0x235b94)
                #10 0x00005575f87c7072 main (kwin_x11 + 0x34072)
                #11 0x00007fcb006bb550 __libc_start_call_main (libc.so.6 + 0x29550)
                #12 0x00007fcb006bb609 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x29609)
                #13 0x00005575f87c86a5 _start (kwin_x11 + 0x356a5)
                ELF object binary architecture: AMD x86-64```
Comment 5 Vlad Zahorodnii 2022-09-28 07:52:07 UTC
It looks like Qt installation got corrupted? Qt can't load QtXCB platform integration plugin. Make sure that QT_PLUGIN_PATH and other environment variables are fine, also maybe try force re-installing qt5-base.
Comment 6 Charlie Baker 2022-09-28 08:53:43 UTC
(In reply to Vlad Zahorodnii from comment #5)
> It looks like Qt installation got corrupted? Qt can't load QtXCB platform
> integration plugin. Make sure that QT_PLUGIN_PATH and other environment
> variables are fine, also maybe try force re-installing qt5-base.

Where is that path? and I tried to remove qt5-base, and it says it would break Plasma (which atm I am using, also there was no option for "--allowerasing")
Comment 7 Vlad Zahorodnii 2022-09-28 08:58:11 UTC
(In reply to Charlie Baker from comment #6)
> (In reply to Vlad Zahorodnii from comment #5)
> > It looks like Qt installation got corrupted? Qt can't load QtXCB platform
> > integration plugin. Make sure that QT_PLUGIN_PATH and other environment
> > variables are fine, also maybe try force re-installing qt5-base.
> 
> Where is that path? and I tried to remove qt5-base, and it says it would
> break Plasma (which atm I am using, also there was no option for
> "--allowerasing")

You can view environment variables by running "env" command in konsole
Comment 8 Charlie Baker 2022-09-28 10:44:42 UTC
The " QT_PLUGIN_PATH" isn't even listed in "env"
Comment 9 Bug Janitor Service 2022-10-13 04:55:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2022-10-28 05:02:53 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!