Slow startup after upgrade to Ubuntu 8.04

Bug #229344 reported by Mark Harrison
30
Affects Status Importance Assigned to Milestone
CheckGmail
Unknown
Unknown
checkgmail (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: checkgmail

After upgrading to Ubuntu 8.04, checkgmail 1.13-1ubuntu1 now takes about 30 seconds to start up (compared with one or two seconds on 7.10), during which time one of my processors (I run a dual-core AMD64) is pegged at 100% capacity. When I open the preferences dialog, it takes about 10 seconds to open and again pegs a processor at 100%. The same occurs after pressing 'OK' before the window closes. All of the email functions still function quickly: checking email, opening firefox, performing actions on emails from the drop-down preview, etc. This didn't happen before when I ran 7.10.

I've tried reinstalling and the problem persists.

The odd thing is that this does not happen on my laptop, which is a three-year-old single processor (Intel) machine that also runs 8.04. On this older computer, startup, shutdown, and opening the preferences menu are quick.

Revision history for this message
Konrad Paumann (kopa) wrote :

I have the exact same problem with checkgmail on 8.04. I also tried to purge and reinstall - with no luck. it ran normal fast on 7.10
My system:
Intel Pentium M @1500 Mhz
Ati radeon mobility 7500 (M7) with the xorg driver
1 GB RAM

Revision history for this message
Åskar (olskar) wrote :

I have the same problem on 8.04. I tried to install the gtk2-perl version that was in gutsy as I tought something in that package had made this behavior. But no luck, still this problem.

mati (mati-wroc)
Changed in checkgmail:
status: New → Confirmed
Revision history for this message
Pete (pete-nu) wrote :

Same problem.

AMD Sempron 3000, 512 MB RAM

Revision history for this message
macstevejb (macstevejb) wrote :

I have precisely the same problem here; older box, AMD Duron 512Mb RAM. The strange thing is, it works fine on my main box which has a P4 processor with 1.5 Gb RAM. Once it does finally startup (which can take about 40 secs and with the same 100% processor usage), it subsequently works fine.

Revision history for this message
Harry Metske (harry-metske) wrote :

Same for me, Asus laptop with Intel Core Duo processor.
Excessive CPU usage by checkgmail during startup for about half a minute, after that it works fine.
Please let me know if you need any diagnostic material.

Revision history for this message
Rafael F. (rfcompte) wrote :

Well, this is great, I'm not the only one. This little program is very useful. I'm unproductive without it. I have exactly the same issues here. Ubuntu 8.04 on a Vaio VGN-FS series, Intel 915 and Celeron M chipset and processor. Slow, very slow and very CPU intensive. I'm willing to help with any needed attachments or logs, just point me in the right direction. Please consider fixing this.

Revision history for this message
Åskar (olskar) wrote :

Message from the developer:

Ok, try the latest release from SVN (run checkgmail -update to get it) and then run the code with

checkgmail -debug

The package about to be loaded will be printed on the commandline, then checkgmail will attempt to load it. After all packages are loaded, and a bit of processing is done, you should see the message "Initialisation complete". On my system all packages are loaded in under a second, with perhaps another half-second before the "Initialisation complete" message. But on your setup, there should be a delay after one of these packages.

Let me know which one(s), and we'll take it from there ... And feel free to copy this message to the launchpad forum :)

Cheers,
Owen

Revision history for this message
Pete (pete-nu) wrote :

The delay occurs while loading Gtk2::Sexy for me.

Revision history for this message
mati (mati-wroc) wrote :

My output (checkgmail -no-login -debug):

 use Gtk2("init");
 use Gtk2::TrayIcon;
 use threads;
 use Thread::Queue;
 use Thread::Semaphore;
 use threads::shared;
 use Encode;
 use XML::Simple;
 use FileHandle;
 use LWP::UserAgent;
 use Crypt::SSLeay;

  use Crypt::Simple passphrase => "(I removed this from the output)";
Warning: Crypt::Simple not found ...
  use Crypt::Blowfish;
  use FreezeThaw;
  use Compress::Zlib;
  use Digest::MD5;
  use MIME::Base64;

CheckGmail requires the above packages for password encryption
Please download and install from CPAN (http://search.cpan.org) if you want to use this feature ...

 use Gtk2::Sexy;
Warning: Gtk2::Sexy not found ...

CheckGmail uses Gtk2::Sexy for clickable URLs in mail messages
Please download and install from CPAN (http://search.cpan.org) if you want to use this feature ...

*** Crypt::Simple not found, not working or disabled ***
*** Passwords will be saved in plain text only ... ***

(HERE is the delay)

Initialisation complete

(the best part is: even thought "Gtk2::Sexy not found" message, URLs are clickable)

Revision history for this message
fishi (sarosia) wrote :

Exatly the same here.

Revision history for this message
imjscn (imjscn) wrote :

the same here.
if start checkgmail from Terminal, it returns the above things, and checkgmail can start
if start checkgmail from Applications/Network/checkgmail, get nothing.

Revision history for this message
fishi (sarosia) wrote :

With the new verison (debug mode), the delay is at:
Parent: Reading translations ...
Also waits a bit at:
Parent: Reading prefs ...

Revision history for this message
Pete (pete-nu) wrote :

Exactly the same as fishi - a long delay at "Parent: Reading translations" and a slightly shorter one at "Parent: Reading prefs"

Revision history for this message
Pete (pete-nu) wrote :

I've found a way to make checkgmail load quickly again, but it's a bit of a hack.

1. edit /usr/bin/checkgmail. Go to line 3088 and then delete all the Language definitions, with the exception of the one that you want to keep (in my case, English).
2. edit ~/.checkgmail/lang.xml. Do the same thing.

The only problem is that you need to re-do step 1 each time you download a new version.

Pete

Revision history for this message
Harry Metske (harry-metske) wrote :

Pete,

although it's a hackie, it works perfect, it is much faster now ( about 4 seconds)
Thanks !

regards,
Harry

Revision history for this message
Hernando Torque (htorque) wrote :

Duplicate status wrong.

To fix the problem, add

$ENV{XML_SIMPLE_PREFERRED_PARSER} = 'XML::Parser';

after line 44 of /usr/bin/checkgmail

like mentioned here: http://sourceforge.net/tracker/index.php?func=detail&aid=1927472&group_id=137480&atid=738663

No problems with Intrepid.

Revision history for this message
Luke Faraone (lfaraone) wrote :

Hi, can you all test this in intrepid?

Changed in checkgmail:
status: Confirmed → Incomplete
Revision history for this message
Mark Harrison (mark-z-harrison) wrote :

CheckGmail works perfectly well in Intrepid for me. Startup takes about a second plus another few seconds to connect to Gmail. Opening Preferences is also fast again.

Revision history for this message
Ezra Morris (ezramorris) wrote :

Fixed for me too (from duplicate).

Revision history for this message
macstevejb (macstevejb) wrote : Re: [Bug 229344] Re: Slow startup after upgrade to Ubuntu 8.04

This problem has been resolved for me too now that I have upgraded to
Intrepid.

regards

Steve

Revision history for this message
Pete (pete-nu) wrote :

I'm using Intrepid and the version of checkgmail that is in the repositories. No problems encountered.

Revision history for this message
Luke Faraone (lfaraone) wrote :

Ok, marking the bug as "invalid". (It'd be "fix released", but we don't know what fixed it)

Changed in checkgmail:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.