Bug 442883 - Parent app hangs or crashes when selecting "all" in icon chooser dialog's combobox
Summary: Parent app hangs or crashes when selecting "all" in icon chooser dialog's com...
Status: REPORTED
Alias: None
Product: frameworks-kiconthemes
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.86.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-24 09:44 UTC by Pawel
Modified: 2021-11-07 21:53 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
video (3.06 MB, video/x-matroska)
2021-09-24 21:05 UTC, Pawel
Details
dolphin (4.24 KB, text/plain)
2021-09-24 21:28 UTC, Pawel
Details
crash_no_dump (965 bytes, text/plain)
2021-09-28 20:51 UTC, Pawel
Details
dolphin_gdb (2 bytes, text/plain)
2021-09-29 17:30 UTC, Pawel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel 2021-09-24 09:44:08 UTC
SUMMARY

plasma shell crashes when selecting ALL in kick off's Select Icon - Plasma screen

STEPS TO REPRODUCE
1. Right click on the kick off application launcher icon and select "Configure Application Launcher"
2. In the General  menu click on the icon and select "Choose"
3. In the Select Icon - Plasma screen, select ALL from the dropdown menu (by default it's set to applications)

OBSERVED RESULT

Plasma shell crashes (it could be kwin but I can't tell). I use plasmashell --replace&  to re-start plasma.

EXPECTED RESULT

There is no crash and I can select the icon from the list

ADDITIONAL INFORMATION

No coredump has been generated for this crash, so I cannot attach anything. I can repro 100% of the time and this crash may not be wayland specific but I cannot confirm now.

Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-1-amd-staging-drm-next-git-00976-g75cff21dc4c1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Comment 1 Pawel 2021-09-24 20:46:33 UTC
ok so the reason there is no crash dump might be because plasma doesn't actually crash but hangs indefinitely on a black screen with the mouse cursor. On x11 this doesn't happen, but there is a noticeable lag when selecting 'ALL' from the drop-down menu.
Comment 2 Nate Graham 2021-09-24 20:53:38 UTC
Does the same thing happen if you open this dialog from Dolphin by editing the icon of a folder?
Comment 3 Pawel 2021-09-24 21:05:08 UTC
Created attachment 141882 [details]
video

Dolphin simply closes unexpectedly - see the attached video
Comment 4 Nate Graham 2021-09-24 21:07:44 UTC
Sounds like the bug is in the dialog itself, then. Can you get a backtrace of dolphin and attach it to this bug report?
Comment 5 Pawel 2021-09-24 21:28:29 UTC
Created attachment 141883 [details]
dolphin

Here you go, but I don't think it captured anything of value.
Comment 6 Nate Graham 2021-09-27 14:25:34 UTC
> The Wayland connection broke. Did the Wayland compositor die?
This means KWin crashed, which I would expect to be unrelated to the issue at hand. Are you reproducibly able to make KWin crash when you do this?
Comment 7 Pawel 2021-09-28 20:51:34 UTC
Created attachment 141998 [details]
crash_no_dump

hi Nate, yes I can when *NOT* using gdb. With GDB there i just a lag spike for a few seconds and the list of icons actually loads up.

I have just had this same think happen when navigating the desktop, in different circumstances. No core dump, just a black screen. I can actually alt-tab between applications and ksyslog had the attached.
Comment 8 Pawel 2021-09-29 08:40:53 UTC
FWIW, I can also reproduce this on latest master on neon unstable
Comment 9 Nate Graham 2021-09-29 14:34:53 UTC
Sorry, I'm having trouble following what exactly the issue is for you. Is Plasma crashing, or is it hanging? Is Dolphin crashing, or is it hanging? Is KWin crashing, or not?

When I try to reproduce the issue myself on Wayland, I can reproduce a brief 1-second hang while the list loads. But I don't get any crashes and the app that opened the dialog doesn't hang.
Comment 10 Pawel 2021-09-29 16:00:13 UTC
Hi Nate,

see the attached for a video of the issue.

https://mega.nz/file/A9xVECyZ#8rX-jUPSrtd2ZYkA6U_fS_9ABakXYNkXCTsrvXsacSk
Comment 11 Nate Graham 2021-09-29 17:17:12 UTC
Very interesting.

My guess is that you have an icon theme or icon that triggers a bug in the dialog which then triggers a bug in the calling app. Seems like a complicated issue.
Comment 12 Pawel 2021-09-29 17:30:01 UTC
Created attachment 142010 [details]
dolphin_gdb

+ dolphin crashing with gdb, but there is no crashdump available.

I am using the Papirus-Dark icon theme (papirus-icon-theme 20210901-1)

I tried with Breeze-Dark and the bug does not occur. There is a slight lag, but then all the icons show just fine. 

I will play around some  more.
Comment 13 Pawel 2021-11-07 10:56:16 UTC
I now started getting this randomly not just with the icon chooser screen.

I captured a log when it happened with a right click on the desktop.

The below line seems to indicate an error:
QWaylandDataOffer: error reading data for mimeType application/x-kde-cutselection

kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x7f961c542d40)
kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x7f961c542d40)
kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog(0x7f961c542d40)
kf.service.services: The desktop entry file "/home/bednar/.local/share/applications/org.kde.ksystemlog.desktop" has Type= "Application" but no Exec line
kf.service.sycoca: Invalid Service :  "/home/bednar/.local/share/applications/org.kde.ksystemlog.desktop"
file:///usr/share/plasma/plasmoids/org.kde.kscreen/contents/ui/PresentationModeItem.qml:83:9: QML Label: Binding loop detected for property "verticalAlignment"
kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/file" not found
/usr/bin/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /usr/bin/spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kde.dataengine.mpris: "org.mpris.MediaPlayer2.spotify" has an invalid URL for the mpris:artUrl entry of the "Metadata" property
kde.dataengine.mpris: "org.mpris.MediaPlayer2.spotify" has an invalid URL for the xesam:url entry of the "Metadata" property
/proc/self/exe: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
libkcups: Renew-Subscription last error: 0 successful-ok

###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x5580e81f5310)
QOpenGLTexturePrivate::destroy() called without a current context.
Texture has not been destroyed
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType application/x-kde-cutselection
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType application/x-kde-cutselection
The Wayland connection broke. Did the Wayland compositor die?
Comment 14 Pawel 2021-11-07 21:53:45 UTC
another instance of the hang after saving an ogg file from firefox and double clicking on it:

kf.kio.slaves.file: the file doesn't have any xattr
QWaylandDataOffer: select() failed
QWaylandDataOffer: error reading data for mimeType application/x-kde-cutselection
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType text/uri-list
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
libkcups: Renew-Subscription last error: 0 successful-ok
QOpenGLTexturePrivate::destroy() called without a current context.
Texture has not been destroyed
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
QOpenGLTexturePrivate::destroy() called without a current context.
Texture has not been destroyed
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x55eefcab90f0)
QOpenGLTexturePrivate::destroy() called without a current context.
Texture has not been destroyed

(firefox:78834): Gdk-WARNING **: 22:50:56.295: Server is missing xdg_foreign support

(firefox:78834): Gtk-WARNING **: 22:50:56.295: Failed to export handle, could not set transient for
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/CompactRepresentation.qml:131:13: QML PropertyChanges: Cannot assign to non-existent property "visible"
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType application/x-kde-cutselection
The Wayland connection broke. Did the Wayland compositor die?