Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261461 - Lancelot - high cpu usage after upgrade to KDE 4.2.1
Summary: Lancelot - high cpu usage after upgrade to KDE 4.2.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 261465 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-06 16:24 UTC by Jonathan Heaney
Modified: 2009-03-08 19:33 UTC (History)
2 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 Jonathan Heaney 2009-03-06 16:24:24 UTC
Lancelot launcher is using anything between 20 and 80% cpu while idling until it is manually killed.  This appeared after upgrade to KDE 4.2.1/Qt-4.5 a couple of days ago.

I don't know whether this is just the same as https://bugs.gentoo.org/show_bug.cgi?id=258758, maybe the patch therein has not actually made it upstream.  At least two other users have noted this on the forum.

In addition to the high cpu usage, now Lancelot does not enter into the Application folders when a folder is clicked on.  I don't know whether this is part of the same issue.

Reproducible: Always





emerge --info

Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r2 i686)                                                   
=================================================================               
System uname: Linux-2.6.28-gentoo-r2-i686-AMD_Athlon-tm-with-glibc2.0           
Timestamp of tree: Thu, 05 Mar 2009 23:45:01 +0000                              
app-shells/bash:     3.2_p48-r1                                                 
dev-java/java-config: 2.1.7                                                     
dev-lang/python:     2.5.4-r2                                                   
dev-util/cmake:      2.6.3                                                      
sys-apps/baselayout: 2.0.0                                                      
sys-apps/openrc:     0.4.3-r1                                                   
sys-apps/sandbox:    1.3.9                                                      
sys-devel/autoconf:  2.13, 2.63                                                 
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                  
sys-devel/binutils:  2.19.1                                                     
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.28-r1                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                      
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=athlon-xp -O2 -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -pipe"                                                                    
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"                                                        
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                             
CXXFLAGS="-march=athlon-xp -O2 -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -pipe"                                                                  
DISTDIR="/usr/portage/distfiles"                                                
EMERGE_DEFAULT_OPTS="--with-bdeps y"                                            
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                    
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/"                       
LANG="en_GB.UTF-8"                                                              
LC_ALL="en_GB.UTF-8"                                                            
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://foucault/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa audiofile avi berkdb bluetooth brandingbzip2 cairo cddb cdparanoia cdr cli cracklib crypt css cups curl dbus dga dri dts dv dvd dvdr dvdread eds emboss encode evo exif expat extrafilters fam ffmpeg flac foomaticdb fortran gdbm geoip gif gimpprint glibc-omitfp glitz glut gphoto2gpm gtk hal iconv idn ieee1394 imagemagick isdnlog joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lame lcms lm_sensors logrotate mad midi mikmod mjpeg mmx mmxext mng modplug mp3 mp4 mpeg mplayer mudflap musepack musicbrainz ncurses nfs nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pch pcre pdf perl pic png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtc sdl session sndfile sox speex spell spl sqlite sse ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vcd vorbis win32codecs wmf x264 x86 xcomposite xine xml xorg xscreensaver xulrunner xv xvid xvmc yv12 zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glkhd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robert Piasek (RETIRED) gentoo-dev 2009-03-06 16:48:23 UTC
duplicate of 258758

Comment 2 Ed Tomlinson 2009-03-06 17:07:25 UTC
*** Bug 261465 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Heaney 2009-03-06 17:18:01 UTC
(In reply to comment #1)
> duplicate of 258758
> 

Not a duplicate.  This is about kdeplasma-addons-4.2.1

Back at my Gentoo box now, I've added the lancelot-qt45 patch to the 4.2.1 ebuild, it applies cleanly and builds fine (? - well, it builds), but does not fix either problem.  Still high CPU usage (over 90% at times), and clicking on a folder (e.g. Utilities) in the Applications menu does not 'advance' to that folder.

What does happen though is that the icon for the folder you want to access appears in the top left hand corner of the Lancelot window, just beneath the 'Search' box.

I noticed during build a lot of output like this -

---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:windowFlags                                                                  
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:windowTitle                                                                  
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:group                                                                        
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:name                                                                     
---------- :   return    buttonLancelotContext                                  
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:group                                                                    
---------- :   return    LancelotContext                                        
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:icon                                                                         
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:name                                                                     
---------- :   return    buttonLancelotContext                                  
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:icon                                                                     
---------- :   return    lancelot                                               
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:iconSize                                                                     
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:name                                                                     
---------- :   return    buttonLancelotContext                                  
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:iconSize                                                                 
---------- :   return    24, 24                                                 
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:title                                                                        
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:description                                                                  
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:innerOrientation                                                             
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:extenderPosition                                                             
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:name                                                                     
---------- :   return    buttonLancelotContext                                  
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:extenderPosition                                                         
---------- :   return    Bottom                                                 
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:activationMethod                                                             
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:name                                                                     
---------- :   return    buttonLancelotContext                                  
---------- :  Lancelot::ExtenderButton    retrieves attribute Lancelot__ExtenderButton:activationMethod                                                         
---------- :   return    Extender                                               
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:checkable                                                                    
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:checked                                                                      
---------- :  Lancelot::ExtenderButton    wants attribute Lancelot__ExtenderButton:down                                                                         
[ 69%] Generating screensaver_interface.cpp, screensaver_interface.h

There was more preceding that, but lost in the konsole.  I could increase the number of scrollback lines and post the full output if required.
Comment 4 Jonathan Heaney 2009-03-06 17:24:44 UTC
Scratch my previous post, the patch does work (and solves both issues) - killing just Lancelot wasn't enough, I had to restart X and now it is behaving correctly.  So the qt45 patch needs to be applied to kdeplasma-addons-4.2.1
Comment 5 Simon C. Ion 2009-03-07 09:51:06 UTC
I used to suffer from this bug.
Applying /usr/portage/kde-base/kdeplasma-addons/files/lancelot-qt45.patch to kde-base/kdeplasma-addons-4.2.1 seems to have resolved the issue.

emerge --info follows:
**********************
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-tuxonice-r3 i686)
=================================================================
System uname: Linux-2.6.28-tuxonice-r3-i686-Intel-R-_Core-TM-_Duo_CPU_L2400_@_1.66GHz-with-glibc2.0
Timestamp of tree: Fri, 06 Mar 2009 06:00:02 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r15, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-l 4.0"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa avahi bash-completion berkdb bzip2 caps cdr cli cracklib crypt cups dbus dri dvd ffmpeg flac fortran gdbm gnutls gpm gtk hal iconv ieee1394 inotify ipv6 isdnlog java jpeg kde kerberos lame ldap mad matroska midi mmx mp3 mudflap mysql ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcmcia pcre perl png postgres pppd pulseaudio python qt qt3 qt4 readline reflection samba sasl sdl session slp sndfile speex spell spl sse sse2 sse3 ssl svg sysfs tcpd theora tiff truetype unicode usb v4l2 vim-syntax vorbis wifi win32codecs wireless x86 xinerama xorg xv xvid zeroconf zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom synaptics spaceorb" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 James 2009-03-08 12:52:45 UTC
Can someone post an ebuild on this? THANKS!
Comment 7 Jonathan Heaney 2009-03-08 18:19:31 UTC
(In reply to comment #6)
> Can someone post an ebuild on this? THANKS!
> 

After the RDEPEND section and before the src_prepare section, insert -

PATCHES=(
        "${FILESDIR}/lancelot-qt45.patch"
)

Save the changes, and run

ebuild kdeplasma-addons-4.2.1.ebuild manifest

and then

emerge -1 kdeplasma-addons
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2009-03-08 19:33:52 UTC
Thanks, fixed in tree and overlay.