Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935132 - Plasma Crashes when starting Wayland session
Summary: Plasma Crashes when starting Wayland session
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-29 10:52 UTC by John
Modified: 2024-07-03 21:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John 2024-06-29 10:52:44 UTC
When starting KDE Plasma version plasma-meta 6.1.1-r1 session crashes after a few seconds of logging in when using wayland.

This happens every time you login through SDDM using wayland session. It takes about 10 seconds once logged in and then crashes making KDE unusable and produces the following.  

application: plasmashell (plasmashell), signal: Aborted

[KCrash Handler]
#4  0x00007fcb5071026c in ??? () at /usr/lib64/libc.so.6
#5  0x00007fcb506be8b6 in raise () at /usr/lib64/libc.so.6
#6  0x00007fcb506a68b7 in abort () at /usr/lib64/libc.so.6
#7  0x00007fcb532c029d in ??? ()
#8  0x00007fcb532bef88 in ??? () at /usr/lib64/libwayland-client.so.0
#9  0x00007fcb532bb118 in ??? () at /usr/lib64/libwayland-client.so.0
#10 0x00007fcb532bcb8c in wl_display_dispatch_queue_pending () at /usr/lib64/libwayland-client.so.0
#11 0x00007fcb5192e132 in QtWaylandClient::QWaylandDisplay::flushRequests() () at /usr/lib64/libQt6WaylandClient.so.6
#12 0x00007fcb50d969f3 in ??? () at /usr/lib64/libQt6Core.so.6
#13 0x00007fcb50b7e54b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6
#14 0x00007fcb50dd6b6a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6
#15 0x00007fcb50dd6d27 in QCoreApplication::exec() () at /usr/lib64/libQt6Core.so.6
#16 0x000055dc676f4c2b in ??? ()
#17 0x00007fcb506a82e0 in ??? () at /usr/lib64/libc.so.6
#18 0x00007fcb506a8399 in __libc_start_main () at /usr/lib64/libc.so.6
#19 0x000055dc676f4cc5 in ??? ()
[Inferior 1 (process 2397) detached]

Notes - using X there are no problems and all ebuilds build successfully.

emerge --info
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.39-r6, 6.6.30-gentoo x86_64)
=================================================================
System uname: Linux-6.6.30-gentoo-x86_64-AMD_Ryzen_9_5900X_12-Core_Processor-with-glibc2.39
KiB Mem:    32802016 total,  18406396 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sat, 29 Jun 2024 06:45:00 +0000
Head commit of repository gentoo: aa5f3bc83eb78eb70a332668d795b9edd2aeb286
Timestamp of repository wayland-desktop: Mon, 17 Jun 2024 17:19:00 +0000
Head commit of repository wayland-desktop: 9b74b47f613c8becbeaf2e728eee4e5952a8c174

sh bash 5.2_p26-r5
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r5::gentoo
dev-build/autoconf:        2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.12.3-r1::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync2.uk.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

wayland-desktop
    location: /var/db/repos/wayland-desktop
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
    masters: gentoo
    volatile: False

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://mirror.bytemark.co.uk/gentoo/releases/amd64/binpackages/23.0/x86-64

Installed sets: @wf
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.bytemark.co.uk/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bash-completion branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr egl elogind encode exif ffmpeg flac gdbm gif gpm gui iconv icu ipv6 jpeg kde kf6compat kwallet lcms libnotify libtirpc lock mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg symlink test-rust tiff truetype udev udisks unicode upower usb virgl vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-29 10:55:39 UTC
Could you get debug symbols for glibc (although can guess here) + dev-libs/wayland + the qt bits here? (https://wiki.gentoo.org/wiki/Debugging).

Any previous console output before it aborts would be useful too. Thanks!
Comment 2 Ionen Wolkens gentoo-dev 2024-06-30 01:58:06 UTC
Given seem to be in stable, you could try ~arch Qt6.7.2. It did fixes a few issues in qtwayland that could lead to crashes and may be affecting your more depending on your screen setup.

6.7.2 is due to be stabilized in a week or so, but you ca easily accept it now by adding a single "dev-qt/*:6/6.7.2" in package.accept_keywords.

If 6.7.2 didn't help, definitely need debug symbols anyhow.
Comment 3 John 2024-07-01 11:05:13 UTC
Hi,
I've upgraded to "dev-qt/*:6/6.7.2" and not seeing any problems now with plasma in wayland session.

I struggled to get symbols using GDB. Not sure if I was doing something wrong or needed to rebuild system with debug use flag.

console show this
exec dbus-launch --exit-with-session startplasma-wayland

org.kde.startup: not a reply org.freedesktop.locale1 QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The name org.freedesktop.locale1 was not provided by any .service files", signature="s", contents=("The name org.freedesktop.locale1 was not provided by any .service files") )
kf.config.core: "KConfigIni: In file /home/john/.local/share/applications/mimeapps.list, line 2:" Invalid entry (empty key)
kf.config.core: Created a KConfigGroup on an inaccessible config location "/etc/xdg/mimeapps.list" "Added Associations"
kf.config.core: Created a KConfigGroup on an inaccessible config location "/etc/xdg/mimeapps.list" "Removed Associations"
kf.config.core: Created a KConfigGroup on an inaccessible config location "/etc/xdg/mimeapps.list" "Added KDE Service Associations"
kf.config.core: Created a KConfigGroup on an inaccessible config location "/etc/xdg/mimeapps.list" "Removed KDE Service Associations"
kf.config.core: Created a KConfigGroup on an inaccessible config location "/etc/xdg/mimeapps.list" "Default Applications"
No backend specified, automatically choosing drm
The Wayland connection broke. Did the Wayland compositor die? crashed for property "icon.height"arametermtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
The Wayland connection broke. Did the Wayland compositor die?
The Wayland connection broke. Did the Wayland compositor die?
qt.qpa.wayland: Attempting wayland reconnect
qt.qpa.wayland: Attempting wayland reconnect
Failed to write to the pipe: Bad file descriptor.
qt.qpa.wayland: Attempting wayland reconnect
Failed to write to the pipe: Bad file descriptor.
Failed to write to the pipe: Bad file descriptor.
org.kde.startup: "kdeinit5_shutdown" QList() exited with code 255
startplasma-wayland: Shutting down...
startplasmacompositor: Shutting down...
startplasmacompositor: Done.

I'll have another go at getting symbols but happy to close for me.

John
Comment 4 Andreas Sturmlechner gentoo-dev 2024-07-03 21:31:29 UTC
Thanks for checking back, then please re-open when it happens again.