Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308563 - qt-creator-1.[2-3].1 very slow sto start and closing
Summary: qt-creator-1.[2-3].1 very slow sto start and closing
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL: http://bugreports.qt.nokia.com/browse...
Whiteboard:
Keywords:
: 310361 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-09 01:05 UTC by Andrea
Modified: 2010-06-22 09:53 UTC (History)
4 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 Andrea 2010-03-09 01:05:54 UTC
After update qt to 4.6.2 version, I've rebuild qt-creator with new qt.

qt-creator 1.2.1 and qt-creator-1.3.1 with this qt-version are very very slow to start and closing. 2.30 minutes for start and 2.30 minutes to close; I've checked with top -d .5. now, during this bug-reporting, are passed 7.30 minutes and qt-creator was not started yet.

I'ved download last ebuild with css disabled but without changes.

Reproducible: Always

Steps to Reproduce:
1.install qt-creator with qt-4.6.2
2.run qt-creator
3.wait

Actual Results:  
very slow qt-creator starting

Expected Results:  
speed-up start
Comment 1 Sebastian Pipping gentoo-dev 2010-03-11 17:16:42 UTC
For me it's worse: it takes minutes and then crashes.
Thanks for the hint on downgrading: with 4.6.1 it's fine.
Comment 2 Andrea 2010-03-13 17:21:39 UTC
for me with qt-4.6.1 and qt-creator rebuild with this qt version, work greatly. start in 2-3 seconds, close immediately and don't stay in execution for more time (5-7 minutes) with cpu-time at overall 90% of cpu.

I thing that is a problem on qt-4.6.2 some packages problem.
Comment 3 Mike Limansky 2010-03-15 13:23:53 UTC
Did you try to wait some minutes? Seems like it creates indexes for a help on first start (or if the indexes aren't created yet).
Comment 4 August Hörandl 2010-03-16 09:08:34 UTC
I had the same problem: startup around 70 secs, htop shows: qtcreator takes 100% of one cpu; same on (instant) windows close: around 70 sec of 100% cpu before qtcreator is really gone.

Leaving the qtcreator window open for another minute or so: qtcreator stays 100% cpu, but then calms down. Afterwards close and open are within seconds.

Comment 5 Thorbjørn Lindeijer 2010-03-16 09:51:22 UTC
There are known issues with the generation of the help index in that it can take very long, can't be interrupted and it can crash. These issues are tracked by http://bugreports.qt.nokia.com/browse/QTCREATORBUG-315

Usually letting the generation of the index finish should indeed make it go away for subsequent restarts.
Comment 6 Andrea 2010-03-16 15:54:25 UTC
I've noted that this bug is caused in my case with qt-4.6.2 and doc flag disabled.

you think that if I enable the doc flag the bug will be shadow?
Comment 7 Mike Limansky 2010-03-16 16:56:20 UTC
I use qt-creator 1.3.1 with qt-4.6.2 with USE=doc. After first index creation all works fine for me.
Comment 8 Thorbjørn Lindeijer 2010-03-16 17:04:44 UTC
I think I should point out that we, Qt Creator developers, have no idea what this doc flag is doing. If this issue is persistent when the doc flag is disabled, it would be interesting to know what the difference is.
Comment 9 Mike Limansky 2010-03-16 20:57:48 UTC
(In reply to comment #8)
> I think I should point out that we, Qt Creator developers, have no idea what
> this doc flag is doing. If this issue is persistent when the doc flag is
> disabled, it would be interesting to know what the difference is.
> 

As I see, if this flag is disabled the qtcreator.qch will be not installed. 
I saw the message than I tried to start qtcreator compiled without doc use from console, that the file isn't available (I'm not sure, cause the localized text was completely broken).
Comment 10 August Hörandl 2010-03-16 22:13:08 UTC
Disabling the doc use-flag will not change to much: it doesn't install the qt-creator documentation. But qt-creator also reads the .qch files from other packages, like qt.qch which is almost 10-times the size of qtcreator.qch (and takes at least 10x longer).

Idea: the ebuild moves the qtcreator.bin to qtcreator (see bug #275859); maybe we could use a script which checks for the files in $HOME/.config/Nokia/qtcreator/.helpcollection (i think this are the files which take so long to build). If there are no files a message "please stand by" could be displayed, then qt-creator.bin gets started -- but this is rather complicated because the message should be a window, so a patch from the developers to create a messagebox would be a lot easier ;-)
Comment 11 Andrea 2010-03-17 02:22:48 UTC
I've made a new installation of qt-4.6.2 and qt-creator build with this qt-version and qt-creator doc flag enabled.

The problem is persistent for the first program start-up. the 100%cpu usage was finished after 10 minutes, and the 2 and 3 times that I've started qt-creator, the cpu usage was turned on real normal usage.

I don't understand why with qt 4.6.1 I've no problem and with qt-4.6.2 is a "normal case" lost this time at first run.


Comment 12 Thorbjørn Lindeijer 2010-03-18 10:45:41 UTC
Is there any chance you could try the git master version of Qt Creator instead of 1.3.1? There have been some adjustments to the initialization of the help plugin. Mainly to make it lazier though, so it may be the problem now occurs later if it is indeed a problem in Qt.
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2010-03-18 19:28:45 UTC
Can I see the emerge -pv qt-creator output plz?
Comment 14 Andrea 2010-03-19 12:03:29 UTC
emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 i686)
=================================================================                                    
System uname: Linux-2.6.31-gentoo-r10-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 17 Mar 2010 18:00:01 +0000                                                    
ccache version 2.4 [enabled]                                                                          
app-shells/bash:     4.0_p35                                                                          
dev-java/java-config: 2.1.10                                                                          
dev-lang/python:     2.6.4-r1                                                                         
dev-util/ccache:     2.4-r7                                                                           
dev-util/cmake:      2.6.4-r3                                                                         
sys-apps/baselayout: 1.12.13                                                                          
sys-apps/sandbox:    2.2                                                                              
sys-devel/autoconf:  2.13, 2.63-r1                                                                    
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                               
sys-devel/binutils:  2.18-r3                                                                          
sys-devel/gcc:       4.3.4                                                                            
sys-devel/gcc-config: 1.4.1                                                                           
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 sun-bcla-java-vm skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium-m -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="it_IT"
LC_ALL="it_IT"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
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/layman/science /usr/local/portage/layman/pro-audio /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/armagetron"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa audiofile berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cpudetection cracklib crypt cups cxx dbus dri dts dv dvd dvdr dvdread eds emboss encode evo exif fam flac foomatic foomaticdb fortran gdbm gif gimp gpm gstreamer gtk hal i8x0 iconv innodb java java6 jpeg jpeg2k kde lcms ldap libnotify mad mikmod mmx mmxext mng mod_php modules mp3 mp4 mpeg mudflap musepack ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime raw readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads thunar tiff timidity truetype usb vorbis wifi win32codecs wmf x264 x86 xcb xine xml xml2 xorg xulrunner xv xvid 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="synaptics evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2010-03-19 16:21:43 UTC
I didnt request the emerge --info output

I need to see the emerge -pv qt-creator output
Comment 16 Andrea 2010-03-20 22:56:46 UTC
emerge -pv qt-creator

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-util/qt-creator-1.3.1  USE="cmake designer doc git kde subversion -bineditor -bookmarks -cvs -debug -examples -fakevim -mercurial -perforce (-qml) -qtscript -rss" LINGUAS="it -de -es -fr -ja -pl -ru -sl" 10,375 kB

Total: 1 package (1 reinstall), Size of downloads: 10,375 kB
Comment 17 Davide Pesavento (RETIRED) gentoo-dev 2010-03-23 18:35:23 UTC
*** Bug 310361 has been marked as a duplicate of this bug. ***
Comment 18 Markos Chandras (RETIRED) gentoo-dev 2010-06-22 09:53:24 UTC
Upstream says that a fix is available. I will probably be released in the next version of qt-creator

Closing as UPSTREAM