Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467082 - dev-qt/qthelp-4.8.4 - Qt Assistant hogs the CPU
Summary: dev-qt/qthelp-4.8.4 - Qt Assistant hogs the CPU
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL: https://codereview.qt-project.org/55153
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2013-04-24 16:25 UTC by Flavio Cappelli
Modified: 2015-03-05 10:04 UTC (History)
0 users

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


Attachments
Qt Assistant: Fix signal recursion at startup in remote control mode. (qthelp-4.8-fix-signal-recursion.patch,802 bytes, patch)
2013-04-24 16:28 UTC, Flavio Cappelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Flavio Cappelli 2013-04-24 16:25:02 UTC
On my laptop (ATOM N270 CPU, XFCE environment) Qt Assistant hogs the CPU, becoming unresponsive, when is started from the xfce terminal emulator with:

    assistant -enableRemoteControl

The same behaviour happens each time Qt Assistant is started from Qt Designer or Qt Linguist. Deleting the Qt Assistant configuration files and the search index does not help. Rebuilding qthelp with different flags does not help. 

Instead, starting Qt Assistant from the terminal, WITHOUT the enableRemoteControl option, works as expected.


After a little internet search, I found this bug report:

    http://svn.netlabs.org/qt4/ticket/245
    http://svn.netlabs.org/qt4/changeset/1046

The suggested patch seems to resolve the issue.


Portage 2.2.0_alpha173 (default/linux/x86/13.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.8.8-gentoo i686)
=================================================================
System uname: Linux-3.8.8-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.1
KiB Mem:     2060884 total,    788808 free
KiB Swap:    3145724 total,   3145724 free
Timestamp of tree: Sun, 21 Apr 2013 19:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo local-overlay-crossdev science qt local-overlay-main
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=atom -mtune=atom -msse -msse2 -msse3 -mssse3 -mfpmath=sse -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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"
CXXFLAGS="-O2 -march=atom -mtune=atom -msse -msse2 -msse3 -mssse3 -mfpmath=sse -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -fomit-frame-pointer -pipe"
DISTDIR="/home/TEMP/root/DISTFILES"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -march=atom -mtune=atom -msse -msse2 -msse3 -mssse3 -mfpmath=sse -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -fomit-frame-pointer -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -march=atom -mtune=atom -msse -msse2 -msse3 -mssse3 -mfpmath=sse -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -fomit-frame-pointer -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 --silent"
PKGDIR="/home/TEMP/root/TBZ2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/OV_CROSSDEV /var/lib/layman/science /var/lib/layman/qt /etc/portage/OV_MAIN"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aiglx aim alsa audiofile avahi berkdb bidi bluetooth bzip2 cairo cdda cddb cdr cjk cli consolekit cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread emboss encode exif fam fame fat ffmpeg firefox flac foomatic-db fortran freetype gcj gdbm gif gimpprint gmp gnutls gphoto2 gpm gsm gtk hfs iconv icq idn ieee1394 imap inotify ipod ipv6 irc irda jabber jfs joystick jpeg kdehiddenvisibility kerberos lame lcd lcms ldap libnotify live lm_sensors lzo mad mail matroska mjpeg mmx mng modules mozdevelop mp3 mp3rtp mp4 mpeg msn mudflap musepack musicbrainz ncurses network nls nptl nsplugin ntfs ogg openal openexr opengl openmp pam pango pcmcia pcre pda pdf png policykit ppds qt3support qt4 rar rdesktop readline reiserfs rss scanner sdl session slp speex spell sse sse2 sse3 ssl ssse3 startup-notification stream svg sysfs theora tiff truetype udev udisks unicode upower usb v4l v4l2 visualization vorbis wifi wmf x264 x86 xattr xcb xfs xine xinerama xml xpm xprint xulrunner xv xvid xvmc yahoo zeroconf zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="krita" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport wiki-publisher" LINGUAS="en it" LIRC_DEVICES="audio audio_alsa serial pctv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Flavio Cappelli 2013-04-24 16:28:57 UTC
Created attachment 346476 [details, diff]
Qt Assistant: Fix signal recursion at startup in remote control mode.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2013-04-29 09:59:08 UTC
This should probably go upstream too.
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2013-04-29 17:25:24 UTC
(In reply to comment #2)
> This should probably go upstream too.

Yep.
Flavio, could you submit the patch upstream via gerrit please?
Comment 4 Flavio Cappelli 2013-05-01 17:25:23 UTC
Done (branch 4.8).
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2013-05-01 17:46:03 UTC
Thanks!

If qt5 is affected too, they will likely ask you to fix the bug there first and then backport the patch to 4.8
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2013-05-12 20:10:41 UTC
(In reply to comment #5)
> Thanks!
> 
> If qt5 is affected too, they will likely ask you to fix the bug there first
> and then backport the patch to 4.8

Yep, this is what they requested
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2013-05-27 09:08:17 UTC
ping? any news here? have you submitted a qt5 version of your patch?
Comment 8 Michael Palimaka (kensington) gentoo-dev 2013-05-29 12:14:30 UTC
I tried to submit a Qt 5 version of this patch but gave up fighting with gerrit.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2015-03-05 10:04:38 UTC
I can no longer reproduce this with 4.8.6. Please reopen if it persists for you.