Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888763 - xfce-base/xfdesktop-4.18.0 (and earlier) frequently consuming near 100% CPU for no apparent reason
Summary: xfce-base/xfdesktop-4.18.0 (and earlier) frequently consuming near 100% CPU f...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-28 16:41 UTC by Sebastian Pipping
Modified: 2022-12-28 21:09 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 Sebastian Pipping gentoo-dev 2022-12-28 16:41:18 UTC
Symptom is this:

1. xfdesktop has near 100% CPU usage and Xorg has ~30% CPU usage

2. "tail -f ~/.xsession-errors" keeps looping these lines (when xfdesktop is run with --enable-debug):
     [..]
     DBG[xfdesktop-icon-view.c:2103] xfdesktop_icon_view_style_updated(): cell text width proportion is 1.900000
     DBG[xfdesktop-icon-view.c:2104] xfdesktop_icon_view_style_updated(): ellipsize icon label is true
     DBG[xfdesktop-icon-view.c:2105] xfdesktop_icon_view_style_updated(): tooltip size is -1
     DBG[xfdesktop-icon-view.c:2106] xfdesktop_icon_view_style_updated(): label radius is 4.000000
     DBG[xfdesktop-icon-view.c:2101] xfdesktop_icon_view_style_updated(): cell spacing is 2
     DBG[xfdesktop-icon-view.c:2102] xfdesktop_icon_view_style_updated(): cell padding is 6
     [..]

3. "strace -f -p $(pgrep xfdesktop)" shows that xfdesktop is mostly reading ("recvmsg") from file descriptor 4 which is targeting Unix socket /tmp/.X11-unix/X0

4. Killing and re-lauching fxdesktop makes both xfdesktop and Xorg run at <1% CPU again.

Related packages:
- xfce-base/xfdesktop-4.18.0
- x11-base/xorg-server-21.1.4-r1
- x11-drivers/xf86-video-intel-2.99.917_p20201215

Thanks in advance for your help!
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 17:03:44 UTC
I'm afraid I've never noticed anything similar.  Do you have any "uncommon" icons on desktop?
Comment 2 Sebastian Pipping gentoo-dev 2022-12-28 18:10:10 UTC
I would not call them "uncommon" myself, would you?:

  # file --brief --mime-type ~/Desktop/* | sort -u
  application/msword
  application/pdf
  application/vnd.oasis.opendocument.text-template
  application/zip
  inode/directory
  text/plain
  text/x-diff
  video/mp4
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 18:39:58 UTC
Well, I don't have non-PDF documents or video on Desktop.  Are you using tumbler, and does it generate thumbnails for them?  Just guessing what could be relevant.
Comment 4 Sebastian Pipping gentoo-dev 2022-12-28 19:08:17 UTC
I have xfce-base/tumbler-4.18.0 installed (with USE="jpeg pdf -curl -epub -ffmpeg -gstreamer -odf -raw") since xfce-base/xfce4-meta offers no way around it but I do not see any tumblerd process running and no related init script.  Any ideas who is supposed to start tumblerd?  A file /usr/lib64/tumbler-1/plugins/tumbler-desktop-thumbnailer.so exists btw.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 20:52:45 UTC
I'm afraid this is above my paygrade.  Maybe someone from x11@ has any clue how to debug this.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 20:55:47 UTC
It's unlikely to be Gentoo specific (a packaging fault), so I'd try reporting upstream, but random suggestion is to try downgrading libX11? There's been a bunch of problems with recent libX11 versions...
Comment 7 Sebastian Pipping gentoo-dev 2022-12-28 21:09:25 UTC
Are you referring to bug #887593 ?

I'll add that bug to "see also" and try downgrading to "<x11-libs/libX11-1.8.2-r1" locally.  Please feel free to adjust as needed.