Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
plasmashell crashes on startup [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun Nov 20, 2022 3:37 am    Post subject: plasmashell crashes on startup [solved] Reply with quote

I am experiencing identical symptoms to this:

https://forums.gentoo.org/viewtopic-t-1121630-start-0.html

Plasmashell crashes on start, then restarts itself and crashes again.

BUT I am not using the calendar app, and have no relevant settings to delete.

Any help in troubleshooting would be appreciated, as the computer is somewhat useless without plasmashell, which turns out to be delicate.

Code:

jesnow@bartali ~ $ emerge --info plasma-workspace
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/hardened, gcc-11.3.0, glibc-2.35-r8, 5.15.59-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.59-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.35
KiB Mem:    49270988 total,  44654628 free
KiB Swap:   22330364 total,  22330364 free
Timestamp of repository gentoo: Wed, 16 Nov 2022 13:30:01 +0000
Head commit of repository gentoo: 4aee9fdd66cf586886a0b249280353b91b654726
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
distcc 3.4 x86_64-pc-linux-gnu [enabled]
ccache version 4.5.1 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r4::gentoo
dev-lang/python:           3.10.8_p3::gentoo, 3.11.0_p2::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.24.2::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.3::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo, 15.0.3::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.3::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://merckx/gentoo-portage/
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -mtune=generic -Ofast -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/terminfo"
CXXFLAGS="-march=x86-64 -mtune=generic -Ofast -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs 10 --load-average 20 --keep-going=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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=x86-64 -mtune=generic -Ofast -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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=x86-64 -mtune=generic -Ofast -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j40 -l12"
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="/var/tmp"
SHELL="/bin/bash"
USE="X \ acl aio alsa amd64 bindist bzip2 clang cli crypt cups dbus dga dri dri3 duktape egl elogind exif fftw fortran gdbm gif graphite hardened heif iconv icu ipv6 jack jit joystick jpeg lcms libglvnd libtirpc minimal multilib ncurses nptl numa offensive opencl openexr opengl openmp openssl org otr pam pcre pdf\ pie png policykit pulseaudio qt5 raw readline samba seccomp split-usr ssl ssp system-av1 system-binutils system-cairo system-clang system-cmark system-compress system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-images system-jpeg system-lcms system-leveldb system-libevent system-libmspack system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-nss system-openjpeg system-pixman system-renpy system-snappy system-sqlite system-tbb system-uulib system-vpx system-zlib test-rust threads unicode v4l2 vaapi vdpau vulkan win32codecs xattr xinerama xtpax zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

kde-plasma/plasma-workspace-5.25.5-r4::gentoo was built with the following:
USE="fontconfig handbook policykit -appstream -calendar -debug -geolocation -gps -screencast -semantic-desktop -telemetry -test" ABI_X86="(64)"
FEATURES="ccache distlocks fixlafiles parallel-fetch ebuild-locks network-sandbox ipc-sandbox merge-sync qa-unresolved-soname-deps news binpkg-dostrip sfperms usersandbox sandbox buildpkg-live userpriv protect-owned unmerge-orphans unknown-features-warn unmerge-logs binpkg-logs preserve-libs binpkg-docompress assume-digests xattr usersync distcc userfetch pid-sandbox strict config-protect-if-modified multilib-strict"




Cheers,
Jon.


Last edited by jesnow on Mon Nov 28, 2022 3:26 am; edited 2 times in total
Back to top
View user's profile Send private message
mistermock
n00b
n00b


Joined: 12 Jan 2005
Posts: 12

PostPosted: Sun Nov 20, 2022 10:17 am    Post subject: Reply with quote

Hi,

here plasmashell crashed too.

The problem (I think): Wrong file permission settings for the ~/.cache/ksycoca5_***** file.
After changing permissions to 755 or 777 plasmashell works again.

Hope this helps.
mistermock
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun Nov 20, 2022 12:35 pm    Post subject: Reply with quote

That doesn't make any sense. Anything in ~.cache can be deleted and is recreated. And plasmashell process is owned wholly by the user, nobody else would try to access its temp files. But I tried it (no effect) and I deleted it (no effect). So that's not it.

Apparently plasmashell crashed for mysterious reasons having to do with plasmoids, widgets and other useless things.

Cheers,
Jon.


mistermock wrote:
Hi,

here plasmashell crashed too.

The problem (I think): Wrong file permission settings for the ~/.cache/ksycoca5_***** file.
After changing permissions to 755 or 777 plasmashell works again.

Hope this helps.
mistermock
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun Nov 20, 2022 12:37 pm    Post subject: Reply with quote

Here's my attempt to restart Plasmashell. Regardelss of whether I have a misconfig, code this mature should never crash. But it doess, for all kinds of reasons, if you look out in the googles.

Filing bug.

Cheers,
Jon.


Code:


jesnow@bartali ~ $ plasmashell
kf.plasma.quick: Applet preload policy set to 1
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onConfigurationChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onRepaintNeeded" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:67: TypeError: Cannot read property 'wallpaper' of null
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:71: TypeError: Cannot read property 'wallpaper' of null
qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onConfigurationChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onRepaintNeeded" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:67: TypeError: Cannot read property 'wallpaper' of null
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:71: TypeError: Cannot read property 'wallpaper' of null
qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:179: TypeError: Cannot read property 'containmentDisplayHints' of null
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:271: TypeError: Cannot read property 'location' of null
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:532:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:497:13: QML Label: Binding loop detected for property "height"
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/ConfigOverlay.qml:312:17: QML SpinBox: Binding loop detected for property "implicitWidth"
file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/ConfigOverlay.qml:304:17: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:497:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:532:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:554:5: QML Label: Binding loop detected for property "height"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/ThumbnailStrip.qml"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationHeader.qml"
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/PulseAudio.qml:9:1: module "org.kde.plasma.private.volume" is not installed
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
plasmashell: /var/tmp/portage/dev-libs/double-conversion-3.2.1/work/double-conversion-3.2.1/double-conversion/double-to-string.cc:388: static void double_conversion::DoubleToStringConverter::DoubleToAscii(double, double_conversion::DoubleToStringConverter::DtoaMode, int, char*, int, bool*, int*, int*): Assertion `!Double(v).IsSpecial()' failed.
KCrash: Attempting to start /usr/bin/plasmashell
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/bin pid = 18388
KCrash: Arguments: /usr/bin/plasmashell
Aborted
jesnow@bartali ~ $ kf.plasma.quick: Applet preload policy set to 1
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onConfigurationChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onRepaintNeeded" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:67: TypeError: Cannot read property 'wallpaper' of null
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:71: TypeError: Cannot read property 'wallpaper' of null
qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onConfigurationChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:70:5: QML Connections: Detected function "onRepaintNeeded" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:67: TypeError: Cannot read property 'wallpaper' of null
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:71: TypeError: Cannot read property 'wallpaper' of null
qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:179: TypeError: Cannot read property 'containmentDisplayHints' of null
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:271: TypeError: Cannot read property 'location' of null
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:532:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:497:13: QML Label: Binding loop detected for property "height"
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/ConfigOverlay.qml:312:17: QML SpinBox: Binding loop detected for property "implicitWidth"
file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/ConfigOverlay.qml:304:17: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:497:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:532:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:554:5: QML Label: Binding loop detected for property "height"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationHeader.qml"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/ThumbnailStrip.qml"
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/PulseAudio.qml:9:1: module "org.kde.plasma.private.volume" is not installed
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
plasmashell: /var/tmp/portage/dev-libs/double-conversion-3.2.1/work/double-conversion-3.2.1/double-conversion/double-to-string.cc:388: static void double_conversion::DoubleToStringConverter::DoubleToAscii(double, double_conversion::DoubleToStringConverter::DtoaMode, int, char*, int, bool*, int*, int*): Assertion `!Double(v).IsSpecial()' failed.
jesnow@bartali ~ $ killall plasmashell
plasmashell: no process found


Back to top
View user's profile Send private message
mistermock
n00b
n00b


Joined: 12 Jan 2005
Posts: 12

PostPosted: Sun Nov 20, 2022 9:41 pm    Post subject: Reply with quote

I thought the same.
The problem started after deleting files in .cache.
ksycoca5_**** was recreated but the permissions were set incorrectly so the file could not be opened.
After I changed the permissions, plasmashell worked again. :-)

That's what I did.

jesnow wrote:
That doesn't make any sense. Anything in ~.cache can be deleted and is recreated. And plasmashell process is owned wholly by the user, nobody else would try to access its temp files. But I tried it (no effect) and I deleted it (no effect). So that's not it.

Apparently plasmashell crashed for mysterious reasons having to do with plasmoids, widgets and other useless things.

Cheers,
Jon.


mistermock wrote:
Hi,

here plasmashell crashed too.

The problem (I think): Wrong file permission settings for the ~/.cache/ksycoca5_***** file.
After changing permissions to 755 or 777 plasmashell works again.

Hope this helps.
mistermock
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun Nov 20, 2022 11:18 pm    Post subject: Reply with quote

I tried it, but that didn't work:

Code:

jesnow@bartali ~ $ dir /home/jesnow/.cache/ksycoca*
-rwxrwxrwx 1 jesnow users 754758 Nov 20 07:26 '/home/jesnow/.cache/ksycoca5_en_xrQhCaJB1uOOEodtVWZ+1ZSzdzg='


So, no effect at all.

The suspicious thing is this:

Code:

QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
plasmashell: /var/tmp/portage/dev-libs/double-conversion-3.2.1/work/double-conversion-3.2.1/double-conversion/double-to-string.cc:388: static void double_conversion::DoubleToStringConverter::DoubleToAscii(double, double_conversion::DoubleToStringConverter::DtoaMode, int, char*, int, bool*, int*, int*): Assertion `!Double(v).IsSpecial()' failed.
KCrash: Attempting to start /usr/bin/plasmashell
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/bin pid = 12751
KCrash: Arguments: /usr/bin/plasmashell





mistermock wrote:
I thought the same.
The problem started after deleting files in .cache.
ksycoca5_**** was recreated but the permissions were set incorrectly so the file could not be opened.
After I changed the permissions, plasmashell worked again. :-)

That's what I did.

jesnow wrote:
That doesn't make any sense. Anything in ~.cache can be deleted and is recreated. And plasmashell process is owned wholly by the user, nobody else would try to access its temp files. But I tried it (no effect) and I deleted it (no effect). So that's not it.

Apparently plasmashell crashed for mysterious reasons having to do with plasmoids, widgets and other useless things.

Cheers,
Jon.


mistermock wrote:
Hi,

here plasmashell crashed too.

The problem (I think): Wrong file permission settings for the ~/.cache/ksycoca5_***** file.
After changing permissions to 755 or 777 plasmashell works again.

Hope this helps.
mistermock
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Tue Nov 22, 2022 4:30 pm    Post subject: Reply with quote

Did you try the obvious already, i.e. with a clean testuser?
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Tue Nov 22, 2022 6:36 pm    Post subject: Reply with quote

Thanks! No, but I just did, same issue. Also the same error message that always happens right before it crashes.

Code:


QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
plasmashell: /var/tmp/portage/dev-libs/double-conversion-3.2.1/work/double-conversion-3.2.1/double-conversion/double-to-string.cc:388: static void double_conversion::DoubleToStringConverter::DoubleToAscii(double, double_conversion::DoubleToStringConverter::DtoaMode, int, char*, int, bool*, int*, int*): Assertion `!Double(v).IsSpecial()' failed.
KCrash: Attempting to start /usr/bin/plasmashell
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/bin pid = 12751
KCrash: Arguments: /usr/bin/plasmashell


asturm wrote:
Did you try the obvious already, i.e. with a clean testuser?
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Fri Nov 25, 2022 10:27 pm    Post subject: Reply with quote

I filed a bug with KDE, the best they had to offer was :

Code:

Thank you for the bug report!

Please note that Plasma 5.25.5 is not supported for much longer by KDE; supported versions are 5.24, and 5.26 or newer.

If at all possible please upgrade to a supported version and verify that the bug is still happening there.

If you're unsure how to do this, contact your distributor about it.


So I upgraded to 5.26.3 (along with all the dependencies), and while I now have new and less ugly default wallpaper, plasma still crashes with the same error message:

Code:

plasmashell: /var/tmp/portage/dev-libs/double-conversion-3.2.1/work/double-conversion-3.2.1/double-conversion/double-to-string.cc:388: static void double_conversion::DoubleToStringConverter::DoubleToAscii(double, double_conversion::DoubleToStringConverter::DtoaMode, int, char*, int, bool*, int*, int*): Assertion `!Double(v).IsSpecial()' failed.


I'm just surprised as a user that plasmashell code can be so delicate. they're going to ask me for a crash file and i will have to install Drkonqui, but gdb for some reason won't emerge for me, which is a dependency.

I'm at a standstill here. No plasmashell makes for an unpleasant KDE experience.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun Nov 27, 2022 1:03 am    Post subject: Reply with quote

Here is the Backtrace from Dr. Konqi:

This is a real crash.

Code:


Application: Plasma (plasmashell), signal: Aborted

[KCrash Handler]
#4  0x00007f8ed58ffa4c in ?? () from /lib64/libc.so.6
#5  0x00007f8ed58b3bd2 in raise () from /lib64/libc.so.6
#6  0x00007f8ed589e471 in abort () from /lib64/libc.so.6
#7  0x00007f8ed589e395 in ?? () from /lib64/libc.so.6
#8  0x00007f8ed58acc82 in __assert_fail () from /lib64/libc.so.6
#9  0x00007f8ed4772e34 in double_conversion::DoubleToStringConverter::DoubleToAscii(double, double_conversion::DoubleToStringConverter::DtoaMode, int, char*, int, bool*, int*, int*) () from /usr/lib64/libdouble-conversion.so.3
#10 0x00007f8ed5d971ce in ?? () from /usr/lib64/libQt5Core.so.5
#11 0x00007f8ed5d88d1e in ?? () from /usr/lib64/libQt5Core.so.5
#12 0x00007f8ed5d8933d in ?? () from /usr/lib64/libQt5Core.so.5
#13 0x00007f8ed5daeccd in QString::vasprintf(char const*, __va_list_tag*) () from /usr/lib64/libQt5Core.so.5
#14 0x00007f8ed5d209cc in ?? () from /usr/lib64/libQt5Core.so.5
#15 0x00007f8ed5ced446 in QMessageLogger::warning(char const*, ...) const () from /usr/lib64/libQt5Core.so.5
#16 0x00007f8ed73584f6 in QV4::Compiler::Codegen::visit(QQmlJS::AST::UiProgram*) () from /usr/lib64/libQt5Qml.so.5
#17 0x00007f8ed74161a8 in ?? () from /usr/lib64/libQt5Qml.so.5
#18 0x00007f8ed748beb5 in ?? () from /usr/lib64/libQt5Qml.so.5
#19 0x00007f8ed748ebcf in ?? () from /usr/lib64/libQt5Qml.so.5
#20 0x00007f8ed741f1b3 in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) () from /usr/lib64/libQt5Qml.so.5
#21 0x00007f8ed75cb117 in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () from /usr/lib64/libQt5Qml.so.5
#22 0x00007f8ed75d199c in QQmlBinding::evaluate(bool*) () from /usr/lib64/libQt5Qml.so.5
#23 0x00007f8ed75d63a7 in ?? () from /usr/lib64/libQt5Qml.so.5
#24 0x00007f8ed75d2c7a in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) () from /usr/lib64/libQt5Qml.so.5
#25 0x00007f8ed75e2de8 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) () from /usr/lib64/libQt5Qml.so.5
#26 0x00007f8ed7562595 in QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt&) () from /usr/lib64/libQt5Qml.so.5
#27 0x00007f8ed7562cad in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlContextData*) () from /usr/lib64/libQt5Qml.so.5
#28 0x00007f8ed755c2fc in QQmlComponent::create(QQmlIncubator&, QQmlContext*, QQmlContext*) () from /usr/lib64/libQt5Qml.so.5
#29 0x00007f8ed8064a18 in KDeclarative::QmlObject::createObjectFromComponent(QQmlComponent*, QQmlContext*, QHash<QString, QVariant> const&) () from /usr/lib64/libKF5Declarative.so.5
#30 0x00007f8ed83c62af in ?? () from /usr/lib64/libKF5PlasmaQuick.so.5
#31 0x00007f8ed83c8838 in ?? () from /usr/lib64/libKF5PlasmaQuick.so.5
#32 0x00007f8ed5f475c2 in ?? () from /usr/lib64/libQt5Core.so.5
#33 0x00007f8ed5f3934f in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#34 0x00007f8ed6ce375f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#35 0x00007f8ed5f0ccfa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#36 0x00007f8ed5f634fb in QTimerInfoList::activateTimers() () from /usr/lib64/libQt5Core.so.5
#37 0x00007f8ed5f63d94 in ?? () from /usr/lib64/libQt5Core.so.5
#38 0x00007f8ed408992b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#39 0x00007f8ed4089bd8 in ?? () from /usr/lib64/libglib-2.0.so.0
#40 0x00007f8ed4089c8f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#41 0x00007f8ed5f64154 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#42 0x00007f8ed5f0b6fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#43 0x00007f8ed5f139c0 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#44 0x0000559dd83ed8ca in ?? ()
#45 0x00007f8ed589f20a in ?? () from /lib64/libc.so.6
#46 0x00007f8ed589f2bc in __libc_start_main () from /lib64/libc.so.6
#47 0x0000559dd83edb21 in ?? ()
[Inferior 1 (process 2385) detached]

Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sun Nov 27, 2022 1:57 am    Post subject: Reply with quote

An unidentified (no debug symbols) function in Qt5Core tried to convert a double precision floating point value to a string, which triggered an assertion failure in the conversion library. Personally, I think it's poor form to have a publicly exposed library function that dies with an assertion failure when a caller from outside the library passes it unacceptable data. Printing the value of v, or rebuilding more of Qt with debug symbols, might prove informative.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun Nov 27, 2022 4:41 pm    Post subject: Reply with quote

Hu to the rescue! Thank you, that's my thought exactly. I didn't have drkonqi installed, which requires gdb, which didn't like my stupid cflags (as you know I have continuing issues with that, but it's a different rabbit hole). But I figured all that out and got the backtrace you see above. I compiled plasma-workspace with debugging symbols (following the gentoo debugging guide) and ran it, set a few breakpoints, but learned nothing new. I still don't know where it's calling the function that eventually causes glibc to fail on an assert. As you say, it seems like plasma-workspace should not ever make a call that causes qt to make a bad call, and qt should never pass along a call to glibc that causes it to die with an assert failure. So that's two levels of bugs. Glibc for its part is behaving correctly and identifying what went wrong.

My next step I guess is to recompile glibc and qtcore with debugging symbols. You know, it really helps writing this out: In fact that's wrong, the next step is to compile qtcore with more vanilla cflags and see what happens. Glibc is already just vanilla -O2, but qtcore is -Ofast.

Cheers,
Jon.


Hu wrote:
An unidentified (no debug symbols) function in Qt5Core tried to convert a double precision floating point value to a string, which triggered an assertion failure in the conversion library. Personally, I think it's poor form to have a publicly exposed library function that dies with an assertion failure when a caller from outside the library passes it unacceptable data. Printing the value of v, or rebuilding more of Qt with debug symbols, might prove informative.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun Nov 27, 2022 5:10 pm    Post subject: Reply with quote

Boom. Fixed it myself with an assist from Hu.

For the record, for anybody who reads this thread, if you compile qtcore with -Ofast it throws mysterious errors seemingly having to do with the -ffast-math optimization. -O3 may work better, but -O2 is safer.

I will now revert all the kde packages to the -Ofast optimization, and file a bug with qt -- their libraries should be both -Ofast and idiot-proof.

Cheers,

Jon.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sun Nov 27, 2022 8:20 pm    Post subject: Reply with quote

jesnow wrote:
I still don't know where it's calling the function that eventually causes glibc to fail on an assert.
Technically, glibc is not failing the assert. Assertions require a moderate amount of out-of-line code to implement, and that code is stored in glibc. libc.so.6 provides __assert_fail as a function to be called when the caller has decided that an assertion has failed and the program needs to terminate. glibc then implements that termination logic. Your problem is with the function that chose to tell glibc to terminate the program. glibc is just doing what that caller instructed. You could get similar stack frames (#4-#8) from a trivial program that just does assert(false);.
jesnow wrote:
For the record, for anybody who reads this thread, if you compile qtcore with -Ofast it throws mysterious errors seemingly having to do with the -ffast-math optimization. -O3 may work better, but -O2 is safer.
This is unfortunate, but not necessarily surprising. -ffast-math is specifically documented as dangerous:
info '(gcc)Optimize Options':
     This option is not turned on by any '-O' option besides '-Ofast'
     since it can result in incorrect output for programs that depend on
     an exact implementation of IEEE or ISO rules/specifications for
     math functions.  It may, however, yield faster code for programs
     that do not require the guarantees of these specifications.
jesnow wrote:
I will now revert all the kde packages to the -Ofast optimization, and file a bug with qt -- their libraries should be both -Ofast and idiot-proof.
I see why you would want that, and I wish you well in convincing them to change it. However, since -Ofast and -ffast-math are documented to be able to break standards-conforming code, I would not be surprised if the Qt maintainers take the position that -ffast-math is invalid, and either refuse to change anything or "fix" the problem by modifying their build system to disable the dangerous flags.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Sun Nov 27, 2022 8:50 pm    Post subject: Reply with quote

Roaming through KDE Qt5PatchCollection issues brought up some bigger upstream meta task that may or may not be related to this:

https://bugreports.qt.io/browse/QTBUG-99545

However, pure speculation until more debug symbols are avaialble in the output.

Bugs to Qt5 are no longer processed at Qt(Company) upstream anyway, unless from paying customers; the crash would need to be reproduced in Qt6 with a fix then potentially deemed worthy as "Pick-to: 5.15" by upstream developers from which it could end up cherry-picked (by someone like me, e.g.) earlier than 1 year after the upstream Qt-5.15 LTS release containing the fix to KDE's Qt5PatchCollection. But then by the time you can try to reproduce this within a future Plasma 6 you may not be interested in 5 anymore.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum