Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294194

Summary: net-im/pidgin-2.6.3 is starting too long
Product: Gentoo Linux Reporter: Michal Špondr <michal.spondr>
Component: Current packagesAssignee: Gentoo Net-im project <net-im>
Status: RESOLVED UPSTREAM    
Severity: normal CC: pva
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://developer.pidgin.im/ticket/11021
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: This is the config file which causes starting pidgin too long
Picture whis possibly causes long starting of Pidgin when reading as a buddy icon

Description Michal Špondr 2009-11-23 14:25:55 UTC
When I start pidgin, it tooks a half a minut to start and display the buddy list. Then if I want to display my accounts information (ctrl+a), it stucks forever.

Reproducible: Always

Steps to Reproduce:
1. run pidgin
2. pres ctrl+a to see accounts
Actual Results:  
In 1st step it lasts too long to start (until buddy list appears).
In 2nd step it stucks Pidgin forever.

Expected Results:  
Pidgin should run faster.

If I run Pidgin with -d option, it prints these information:
... (some other info above)
(15:13:59) Session Management: ICE initialized.
(15:13:59) Session Management: Connecting with no previous ID
(15:13:59) Session Management: Handling new ICE connection... 
(15:13:59) done.
(15:13:59) Session Management: Connected to manager (gnome-session) with client ID 106245251c3e0c1c57125898563927906600000205530021
(15:13:59) Session Management: Using pidgin as command
(15:13:59) accels: accel changed, scheduling save.
(15:13:59) accels: accel changed, scheduling save.
Now it lasts exactly 30 seconds before a new line appears:
(15:14:29) dbus: Need to register an object with the dbus subsystem. (If you are not a developer, please ignore this message.)
(15:14:29) dbus: The signal "gtkblist-unhiding" caused some dbus error. (If you are not a developer, please ignore this message.)
(15:14:29) account: Connecting to account 361889633.
...
(another info below)

So I think it has something to do with DBUS. I have dbus, hald and consolekit started:
usambara michal # rc-status -a |grep hal
 hald                                                                                                                                                                  [ started  ]
usambara michal # rc-status -a |grep dbus
 dbus                                                                                                                                                                  [ started  ]
usambara michal # rc-status -a |grep consolekit
 consolekit                                                                                                                                                            [ started  ]



emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 22 Nov 2009 10:15:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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 /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="cs"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 ao audiofile bindist bluetooth bzip2 cairo cdda cddb cli cracklib crypt cups dbus dri dvd dvdr flac gdbm geoip gif glut gnome gnutls gpm gstreamer gtk2 hal iconv imagemagick ipv6 jpeg jpeg2k lm_sensors mikmod mmap mmx modules mp3 mplayer mudflap multilib ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre pdf plotutils png pppd qt3support qt4 quicktime readline reflection sdl session sharedmem smartcard spl sqlite sse sse2 ssl ssse3 sysfs tcpd threads trayicon truetype type1 unicode vim-syntax vorbis wifi xinerama xorg xulrunner zlib" ALSA_CARDS="hda-intel" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2009-12-17 10:14:03 UTC
Could you try to reproduce this problem with new user (empty home dir)?
Comment 2 Michal Špondr 2009-12-17 23:40:32 UTC
(In reply to comment #1)
> Could you try to reproduce this problem with new user (empty home dir)?
> 

I've removed ~/.purple, run pidgin again and it started quickly. So maybe there's a problem in my profile (even though I don't know what did I break).
Thanks.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2009-12-18 10:55:27 UTC
Good, now at least we see why this does not happens here. Michal, could you localize bug a bit? Some how check, what file and then probably option cause such behavior?
Comment 4 Michal Špondr 2009-12-18 17:34:34 UTC
Created attachment 213407 [details]
This is the config file which causes starting pidgin too long

(In reply to comment #3)
> Good, now at least we see why this does not happens here. Michal, could you
> localize bug a bit? Some how check, what file and then probably option cause
> such behavior?
> 

I tried to copy prefs.xml into the new (functional) ~/.purple directory and it behaved in the same way as before - it started too long. So perphaps there is something wrong with this file.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2009-12-19 07:15:26 UTC
Hm, I'm unable to reproduce problem here. What plugins do you have installed? What happens if you remove from the system?
Comment 6 Michal Špondr 2009-12-19 12:07:21 UTC
(In reply to comment #5)
> Hm, I'm unable to reproduce problem here. What plugins do you have installed?
> What happens if you remove from the system?
> 

The only plugin I have installed (via Gentoo portage) is the x11-plugins/pidgin-libnotify-0.14. However after I disabled it, Pidgin still starts too long.

Maybe you aren't able to reproduce it, because there is a few of settings which refers to my home directory:
                        <pref name='core-plugin_pack-autoaccept'>
                                <pref name='path' type='string' value='/home/michal/.purple/autoaccept'/>
...

                <pref name='filelocations'>
                        <pref name='last_save_folder' type='path' value='/home/michal/Desktop'/>
                        <pref name='last_open_folder' type='path' value='/home/michal/Desktop'/>
                        <pref name='last_icon_folder' type='path' value='/home/michal/obrazky'/>
                </pref>
...
<pref name='buddyicon' type='path' value='/home/michal/obrazky/cool_face_802.jpg.png'/>
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2009-12-19 13:17:33 UTC
Ok, now I've tried with plugin too. Still unable to reproduce.

How large is this image: /home/michal/obrazky/cool_face_802.jpg.png ? What happens if you change this setting on 
<pref name='buddyicon' type='path' value=''/>
?
Comment 8 Michal Špondr 2009-12-19 13:56:03 UTC
(In reply to comment #7)
> Ok, now I've tried with plugin too. Still unable to reproduce.
> 
> How large is this image: /home/michal/obrazky/cool_face_802.jpg.png ? What
> happens if you change this setting on 
> <pref name='buddyicon' type='path' value=''/>
> ?
> 

I think we've found the bug now. :-) /home/michal/obrazky/cool_face_802.jpg.png is 891kB big file! If I change the buddyicon settings in the way you've devised, Pidgin starts immediately.



Comment 9 Peter Volkov (RETIRED) gentoo-dev 2009-12-19 14:12:58 UTC
891kB is really small file... Even with 4Mbyte file pidgin loads here immediately. Could you attach that image here?
Comment 10 Michal Špondr 2009-12-19 16:14:01 UTC
Created attachment 213478 [details]
Picture whis possibly causes long starting of Pidgin when reading as a buddy icon

Here is the picture.
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2009-12-20 08:38:26 UTC
Thank you problem is now reproducible. But I'm unsure what happens here. This is profile output:

tablet ~ # opreport -l /usr/bin/pidgin
Overflow stats not available
CPU: Core 2, speed 1596.2 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
samples  %        symbol name
13       44.8276  gtk_imhtml_associate_smiley
3        10.3448  gtk_smiley_tree_destroy
2         6.8966  add_sized_icon
2         6.8966  do_alphashift
2         6.8966  find_file_common
2         6.8966  gtk_imhtml_get_type
2         6.8966  pidgin_themes_load_smiley_theme
1         3.4483  buddy_update_cb
1         3.4483  pidgin_blist_update_plugin_actions
1         3.4483  pidgin_status_box_size_allocate

Probably the best I can do here is to report upstream for them to decide.
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2009-12-20 12:19:23 UTC
Ok, I think it's not much we can do here. I've posted this issue upstream and resolving this bug as such.