Super-slow startup and sluggish performance when using the GCAL provider

Bug #1458593 reported by monochromec
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mozilla Thunderbird
Confirmed
High
thunderbird (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After upgrading to 31.7 I noticed start-up times around 30 seconds when the Google provider (version 1.0.4) in connection with Lightning is used (I disabled the plugin temporarily for root cause analysis). Downgrading TB to 31.6 didn't solve the problem, neither did downgrading the Provider plugin to 1.0.3.

Let me know if more details are needed.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: thunderbird 1:31.7.0+build1-0ubuntu0.15.04.1
Uname: Linux 4.0.1-040001-generic x86_64
NonfreeKernelModules: wl
AddonCompatCheckDisabled: False
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: root 751 F.... pommed
                      christoph 5608 F.... pulseaudio
BuildID: 20150511105107
Channel: Unavailable
Date: Mon May 25 16:36:15 2015
ForcedLayersAccel: False
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2014-04-26 (394 days ago)
InstallationMedia: Lubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
IpRoute:
 default via 192.168.2.1 dev wlan0 proto static metric 1024
 192.168.2.0/24 dev wlan0 proto kernel scope link src 192.168.2.33
NoProfiles: True
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RunningIncompatibleAddons: False
SourcePackage: thunderbird
UpgradeStatus: Upgraded to vivid on 2015-04-24 (30 days ago)
dmi.bios.date: 01/24/12
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP81.88Z.0047.B27.1201241646
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-94245B3640C91C81
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro8,1
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-94245B3640C91C81
dmi.modalias: dmi:bvnAppleInc.:bvrMBP81.88Z.0047.B27.1201241646:bd01/24/12:svnAppleInc.:pnMacBookPro8,1:pvr1.0:rvnAppleInc.:rnMac-94245B3640C91C81:rvrMacBookPro8,1:cvnAppleInc.:ct10:cvrMac-94245B3640C91C81:
dmi.product.name: MacBookPro8,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
In , Krt2076 (krt2076) wrote :

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build ID: 20120215223356

Steps to reproduce:

When using Thundbird (10.0.2) with Lightning enabled, writing an email is annoying in that there are frequent, long (5 seconds) pauses before typed characters appear. With Lightning is disabled the problem disappears.

Actual results:

It appears that Lightning is consuming a lot of processing power or it has delays in it. Perhaps it is searching a database too thoroughly and too frequently.

Expected results:

Since Lightning is a background application to Thunderbird, it should not be such a consumer of resources.

I have this problem in two computers, a Dell running 32-bit Windows 7 and an HP running 64-bit Windows 7.

Revision history for this message
In , Vseerror (vseerror) wrote :

(In reply to krt2076 from comment #0)
> When using Thundbird (10.0.2) with Lightning enabled, writing an email is
> annoying in that there are frequent, long (5 seconds) pauses before typed
> characters appear. With Lightning is disabled the problem disappears.

krt,
fIf lightning is the only thing you disabled ... does your issue match one of these other bugs?
https://bugzilla.mozilla.org/buglist.cgi?type1-0-0=substring;keywords=perf;keywords_type=allwords;list_id=2845058;field0-0-0=short_desc;type0-0-1=substring;field0-0-1=keywords;type1-0-1=allwordssubstr;resolution=---;classification=Client%20Software;classification=Components;query_format=advanced;type0-0-0=anywordssubstr;field1-0-0=short_desc;product=Calendar;field1-0-1=short_desc

Revision history for this message
In , Krt2076 (krt2076) wrote :

I looked through the other bug reports and did not find any that appeared to match my report.

What I am describing happens on two machines, an HP 64-bit running Windows 7 Ultimate and a Dell 32-bit running Windows 7 Enterprise. Disabling Lightning has the same impact, viz., there are no pauses when typing in Thunderbird. Even when Lightning is engaged the pausing does not always appear, but does happen more than half the time at some point in the preparation of an email, having just happened while typing this.

FWIW, starting Thunderbird with Lightning enabled takes considerably longer then when Lightning is disabled.

Revision history for this message
In , K-ralf (k-ralf) wrote :

Hi,

I can confirm that TB slow down if Lightning is actic. TB stopps working for about 3 seconds frequently (appr. every 30 seconds)
A change to the calendar tab needs takes about 5-7 sec. to show calendar entries.

I'm using Win XP SP3 German, TB 14.0, Lightning 1.6, with a small Netbook. Before version 1.3?, the installation worked without -unnormal- delays.

On another PC, WIN 7 (64 bit), the slowdown is noticeable also. But not so annoying...

Ralf

Revision history for this message
In , Patricd (patricd) wrote :

Same problem here. Unbearably slow under Windows.

Revision history for this message
In , K-ralf (k-ralf) wrote :

Still a problem with this "minute's of silents" here (TB 16.0.1, Lightning 1.8 under Win XP sp3, home, german, 32bit and WIN 7 prof, german 64bit).

During the break, within the status bar (below at the window, a kind of progress bar is shown. But it is not showing a progress... Then the window (calendar view) will be refreched.

Additionally it seems that Lightning is handling all defined calendars even if they are not selected.

I guess it is time to change the bug-report to status confirmed!?

Who can do that?

Gruss

Ralf

Revision history for this message
In , pbrandao (pmbrandao) wrote :

Same problem here:
* delays in writing emails
* thunderbird stop responding for long periods (just now killed it with Task Manager)

More info:
* windows 7, 64 bits
* thunderbird beta channel 17 (32 bit)
* ligthning 1.9b2
* Provider for google calendar 0.18pre

On point that I think is relevant is that I'm only using calendars from google calendar. The delay may be related to access to google.

In Linux however (with the same calendars but the stable version of thunderbird 16 and lightning 1.8) this does not seem to happen.

Best,
Pedro

Revision history for this message
In , Worcester12345 (worcester12345) wrote :

Within the past 2 1/2 weeks, Thunderbird has slowed down I N C R E D I B L Y for us. Some/many are using Google calendar.

Revision history for this message
In , Vseerror (vseerror) wrote :
Revision history for this message
In , Steve Switzer (steve-switzer) wrote :

I recently moved a customer over to Google Apps for Business with Thunderbird. After adding Lightning, they started complaining about the speed. We disabled Lightning (literally, the disable button) and the speed issues were resolved. Of course, they need their calendar. So, we enabled the 30 day premier trial, and added the Google Apps sync for Outlook to their computers, and all is well. This stinks. I want to advocate for open source, but this makes Thunderbird an unbearable replacement for Outlook. I know Thunderbird on its own isn't meant to compete directly, but I wish there was a really good replacement for Outlook on Windows.

Revision history for this message
In , List-c (list-c) wrote :

Same problem as pbrandao:

As of a couple months ago, Thunderbird+Lightning has become very slow to start and stalls often. Not sure which version it started, but I'm now on latest TB 17.0, Lightning 1.9 and Provider for Google Calendar 0.18

At startup, Thunderbird hangs for minutes before operating normally. Thereafter, Thunderbird will periodically hang again for awhile.

I'm on Win7-64bit. The problem is specifically the google calendar support.

If I delete my google calendar subscription, it resolves it.
As soon as I add the google calendar subscription again, it's back to massive stalls.

If I disable Lighting entirely, it's obviously resolved.

Revision history for this message
In , Chris Hecker (checker-lp) wrote :

I'm having this same issue, it's gotten way slower in the past few weeks/months. It was really bad a couple years ago, I started looking into it, and it improved, so I quit, and now it's back. Typing an email is now excruciating.

Lighting 1.9, Google Provider 0.18, 5 calendars

I may try to hack it to only talk to the network on manual refresh, not sure if that'll be possible, or if it'll help.

Chris

Revision history for this message
In , Blackmamba1962 (blackmamba1962) wrote :

Yep, me too. Thunderbird became very slow recently.
I have 3 POP mail account & 2 IMAP
Thunderbird 17, Lightning 1.9 Google Provider 0.18, just one calendar.

Revision history for this message
In , Edb-s-gene02moz (edb-s-gene02moz) wrote :

Wonder if this is connected to Bug 818448 ?

Revision history for this message
In , Frédéric Meynadier (frederic-meynadier-b) wrote :

(In reply to Gene Scharmann from comment #13)
> Wonder if this is connected to Bug 818448 ?

I experience the same slowliness but don't witness any increase in explorer.exe memory usage (Win 7 64 bits, TB 17, lightning 1.9, but no Google Provider)

Enabling or disabling the lightning extension is enough to switch from a TB startup time of a few seconds to a few minutes, which is completely unbearable.

On the other hand my linux box, which runs a similar setup, does not have any problem. Perhaps is it a windows-only bug ?

I'll try to get a log of what's going on but I fail to see what module should be logged...

Revision history for this message
In , Unique-ek (unique-ek) wrote :

This bug is still here on Thunderbird 19 and Lightning 2.1b1

Revision history for this message
In , Wolfgang-7 (wolfgang-7) wrote :

I have repeatedly noticed this problem on various linux installations and instead used sunbird which did not have any problems. Since the update to opensuse 12.3, sunbird is not functional for me anymore and I therefore have to use lightning. The reduction of responsiveness is very noticable on my machine, and I would enormously appreciate if a solution could be found.

Revision history for this message
In , M-marco-b (m-marco-b) wrote :

Same problem in Windows.
To get the calendar working I searched a very old version of Thunderbird 9.0.1 + Lightning 1.1.1 : it works perfectly, but this is not a solution!

Status of this bug is still "unconfirmed" after 1 year from the first report... so nobody will take care of this, I guess..

Revision history for this message
In , Worcester12345 (worcester12345) wrote :

(In reply to marco from comment #17)
> Same problem in Windows.
> To get the calendar working I searched a very old version of Thunderbird
> 9.0.1 + Lightning 1.1.1 : it works perfectly, but this is not a solution!

Not a solution, but a hint. Somewhere between then and now (or first report of the bug), it broke. If you can work with some people on in between versions, it might be further narrowed down and identified. This is why it is nice having a large base of "testers" looking at these programs. Without "testers", developers would have no feedback on the product.

Revision history for this message
In , Stetor (stetor) wrote :

I can only confirm this bug.
TB 17.0.5 + lightning 1.9.1 + Provider Google Calendar 0.18

Writing a new messages it's a pain !
Also changing the preview pane from a messages to another it's really slow.
I dont' remember when exactly this started but i think in the last six months or the last year so this is compatible with the first messages of this thread.

Revision history for this message
In , Kmaynard (kmaynard) wrote :

Still like it in Windows TB 17.0.8 with Calendar on Communigate Pro and/or Google. Problem goes away if you disable Lightning add-on. OS X suffered same problem too, so I disbanded Lightning in favour of iCAL and TB mail recovered its performance.

Revision history for this message
In , Patricd (patricd) wrote :

Does it help if we offer money, and if so, how much?

Revision history for this message
In , Guyette (guyette) wrote :

This has appeared again recently.

Revision history for this message
In , Hany-g (hany-g) wrote :

Similar here with thunderbird-17.0.9-1.fc19.x86_64 on Fedora Linux . Mail typing slowing from time to time plus when looking at calendar, it sometimes is "blinking": items disappearing and then reappearing in around half a second.

Revision history for this message
In , Ymc-s (ymc-s) wrote :

I'm experiencing this as well as described above (TB 24.0.1 w/ lightning 2.6).
Latest TB/Lightning version have not changed anything. The delay / duration of the lag seems to be proportional to the number of calenders (or calendar events downloaded?).
TB takes 1 full core of the CPUs during this.

Any way we/I can help with a trace or logfile ?

Revision history for this message
In , Travist-g (travist-g) wrote :

Same problem after the Thunderbird update to 24.0.1 - typing slows down, stops , starts at random- tired running with no addons - worked OK- restarted- worked Ok for a few minutes then boom - back down to superbly slow and making my life miserable. I switch back and forth between Word7 and Thunderbird cutting and pasting- then seems to lose US keyboard and some characters get changed to other language, Thunderbird freezes up and have to hard reset and CTL, ALT Del does nothing - Checked everything else out. Disabled Virus protection, firewall, etc etc watching progress with Process Explorer to see if anything else is interfering - Not using anything in my Calendar to keep it simple- but still causing massive headaches! Also using Noia exTreme 3.47 and when moving to Word 7 from Thunderbird - see cursors changes and blink -

Revision history for this message
In , Giopippo (giopippo) wrote :

With the new update to TB 25.0 and Lightning 2.7, TB completely freezes upon starting if lighting is enabled.
Old Lightning versions do not work at all with TB 25.0.
In any case, since TB17 I have not found anymore a working Lighting version that does not slows down TB in an unacceptable fashion. Not usable anymore :-((
I had some hope in TB 25.0 and Lightning 2.7, but ithas been already frustrated:-(

Revision history for this message
In , Peshko R. (peshko-us) wrote :

Same hers...Bug was open March 2012-more than 18 months ago and noone from Mozilla even looked at that??? That seems strange or lack of interest by Mozilla to what its users has to say...

Revision history for this message
In , M-marco-b (m-marco-b) wrote :

That's not a solution, but here helped to remove lightning and Thunderbird, then installing TB 9.0.1 with lightning 1.1.1
Obviously, you have to disable "check for updates" in Tool/option menù.

"once upon a time there was an app... working"

Revision history for this message
In , Matthew-mecca (matthew-mecca) wrote :

If the Offline Support option for network calendars is disabled, enabling it should improve performance. Right-click on each calendar in the calendars list on the left side of the window, click Properties, and make sure the Offline Support option is checked.

If the calendar is not shared with other users you can also set the Refresh interval to manual, that will prevent the calendars from re-loading periodically in the background.

Revision history for this message
In , Peshko R. (peshko-us) wrote :

Matthew, that didn't help. I have 5 calendars on th list, but enabled only one. On that calendar I have Cache enabled and Refresh interval to manual. Still the startup time is about 60-70 sec.

Revision history for this message
In , Peshko R. (peshko-us) wrote :

Even if I disable all calendars, the startup is slow. If I disable the Lightning plug-in. Startup is normal.

Revision history for this message
In , Matthew-mecca (matthew-mecca) wrote :

(In reply to peshko.us from comment #31)
> Even if I disable all calendars, the startup is slow. If I disable the
> Lightning plug-in. Startup is normal.

When you say the calendars are disabled, are they just unchecked in the calendars list, or are they fully switched off from the calendar properties dialog? The checkbox in the calendar list will only prevent the calendar from being displayed in the view, but it will still load at startup, display reminders, and refresh. To completely disable the calendar you need to right-click the calendar in the list, click Properties, and uncheck the "Switch this calendar on" checkbox. A completely disabled calendar will show as greyed out in the calendar list.

Revision history for this message
In , Ben-bucksch (ben-bucksch) wrote :

CONFIRMing, because the summary statement is definitely true, I've experienced it myself.

Part of the problem seems to be that Lightning creates a lot of JS objects that put the JS engine under great stress.

Other problems like bug 841995 (see blockers here) contribute, too.

Revision history for this message
In , Peshko R. (peshko-us) wrote :

(In reply to Matthew Mecca [:mmecca] from comment #32)
> (In reply to peshko.us from comment #31)
> > Even if I disable all calendars, the startup is slow. If I disable the
> > Lightning plug-in. Startup is normal.
>
> When you say the calendars are disabled, are they just unchecked in the
> calendars list, or are they fully switched off from the calendar properties
> dialog? The checkbox in the calendar list will only prevent the calendar
> from being displayed in the view, but it will still load at startup, display
> reminders, and refresh. To completely disable the calendar you need to
> right-click the calendar in the list, click Properties, and uncheck the
> "Switch this calendar on" checkbox. A completely disabled calendar will show
> as greyed out in the calendar list.

Correct, all but one disabled in the properties. All but one grayed out in the list. Still startup time over a minute.

Revision history for this message
In , Richard Leger (richard-leger) wrote :

Hi,

FYI, I am also affected by issues described in this ticket.

It was occurring with TH14+Lighting1.9.1 and it is still occurring in my current environment after upgrade:
- Win7 Pro 64bits SP1, Intel Core i3-2310M 2.10GHz, 4GB memory
- Thunderbird 24.2.0
- Lightning add-on 2.6.4
- Two mailboxes connected via IMAP (one of them almost empty)

With Lightning add-on disabled (and all other as well) it takes:
- ~5s for Thunderbird interface to first show up from clicking on icon to open it
- ~20s additional to complete any activity in status bar (check new email, folders, etc...)
Total: ~25s

With Lightning add-on enabled but all calendar disabled (in properties) and greyed out
- ~25s for Thunderbird interface to first show up from clicking on icon to open it
- ~20s additional to complete any activity in status bar (check new email, folders, etc...)
Total: ~45s

With Lightning add-on enabled, one Internet Caldav calendar enabled (in properties) with show reminder enabled, offline support disabled and all others greyed out
- ~12s for Thunderbird interface to first show up from clicking on icon to open it
- ~78s additional to complete any activity in status bar (Check server capabilities, Looking for folders, etc...) and complete loading of the calendar. During this time, the interface responsiveness is very poor and slow with (Not responding) warning appearing intermittently every 4-5s after 40s until completion of process. Obviously both process of Checking email and loading Calendar run at the same time at start-up and seems to overload the application to the point it become unresponsive... it looks like concurrent processes are not running smoothly in parallel...
Total: ~90s

Hope this info may help.
Thanks for your support.

Revision history for this message
In , Richard Leger (richard-leger) wrote :

Sorry I meant TH17+Lighting1.9.1 in my previous comment...

22 comments hidden view all 102 comments
Revision history for this message
In , Martin-anderson-h (martin-anderson-h) wrote :

I'm going to make a suggestion that may seem inelegant at the least, but it would help those of us who need to use this stuff day in day out, and it wouldn't be a big job.
Can we have a load delay in Lightning, Ideally until TB is ready for action, but failing that, long enough to let TB get loaded for most users. I would suggest a minimum of 30 seconds perhaps longer.
Secondly, when Lightning is loading/running, is it possible to pause and yield (not sure what the java is for this) regularly so that it doesn't block other activity.
I realise this will make Lightning even slower but it should make TB faster and that for me would be a net win until we can get it fixed properly.
At the moment I am contemplating moving my calendar exclusively to my S3 using Aquamail and SPlanner so that I can disable Lightning until it allows TB to be more performant - it's that important to me.

Revision history for this message
In , Wolfgang-7 (wolfgang-7) wrote :

I am glad that now, after several years of waiting, this issue raises some broader attention. I have a feeling that all these unnecessary complications arise from the fact that someone decided to discontinue sunbird and insist on integration of the calendar function with thunderbird. I would be pleased if this could be just reversed: thunderbird as one functional entity and sunbird as another. Wouldn't that simplify everybody's life enormously?

In my impression, sunbird was the only real functional calendar application in linux that made sense, and some time ago, the old version stopped to work for me.

Revision history for this message
In , Philipp-bugzilla (philipp-bugzilla) wrote :

Releasing a full application is a whole other can of worms. It requires much more attention than an extension. I would need to maintain our own build machines, (beta) releases need to be done every 6 weeks, extra QA, features need to be integrated into two different user interfaces, code needs to be written in a way that it works over two products, etc. Aside from that, Sunbird cannot handle email invitations, so users will still want something that handles this situation. Doing this across apps isn't possible unless you are using Thunderbird and we write some complicated code to interact with it when its running. Alas, if we were to continue to support Sunbird, then we would have to concentrate on releasing two products, and this is precisely what we wanted to avoid when we discontinued Sunbird.

This issue has had the same level of attention in the last years, and with what I've explained this will not change just because a few comments were written here. I understand you all want to know whats going on, but this is not the right place to test theories of what would be better. This is the last comment I will write on this subject, please use the newsgroups (mozilla.dev.apps.calendar) for futher inquiries.

Revision history for this message
In , Werbung-i (werbung-i) wrote :

It sounds like this issue hast been around for quite a while now without a real solution. I have had it for 1 1/2 years now (with always the most recent version of TB and Lightning on Win7/64) - working with web interfaces instead of lightning and hoping for a solution with each new version of TB and Lightning - in vain. Reading all these posts here, it feels like the solution is still far away, and my technical knowledge is not large enough to really contribute anything to a solution (however: I can help if there are problems to reproduce the problem!). Therefore I am seriously thinking about the use of Thunderbird which also seems to have new small but annoying issues with every new version.
It would be great to have some kind of a timeline for this issue. I really can't use Thunderbird like this, and I am thinking of switching back to Outlook - which would be a very sad transition, but I know no other really usable solution.
My feeling ist: Wouldn't it make much more sense to really develop one stable version of Thunderbird instead of coming out with new versions every few weeks? I have the feeling that both Thunderbird and Firefox kind of degraded since Mozilla decided to increase the pace for new versions - and this persistence of such a serious problem is really sad. Sorry to say that.

Revision history for this message
In , E-bugzilla (e-bugzilla) wrote :

This might not help, but I suddenly had this issue today out of the blue - I was prompted for my Google ID and Password, presumably to help synchronize my Gmail calendar with Thunderbird (not sure why it suddenly prompted, though) and then the 5-second pauses began. Made Thunderbird practically unusable.

I managed to the Lightning extension, then restarted Thunderbird and all was fine.

Then, something odd: I went into Thunderbird's "About" dialog and it tried to automatically update the program, but got stuck and never went beyond the "installing" message. My guess is that this was the case for months, as my version of TB was 26.x but the latest version turned out to be 31.1.2 when I manually checked on the Mozilla website.

So, I downloaded the latest TB and installed over my current installation, then did likewise for the latest version of Lightning. Started TB and everything was working as expected, then installed the Provider for Google Calendar extension within TB and restarted. Integrated my Google Calendar back into Lightning via the new add-on (as opposed to using CalDev). UI performance is back to normal and my Google Calendar is properly integrated into the local Lightning view within Thunderbird.

I realize this situation does not cover all issues mentioned within this bug, but hope it helps a bit.

Revision history for this message
In , Imreoliver-kozak (imreoliver-kozak) wrote :

I have this bug with Lightning 3.3.1 on Thunderbird 31.1.2.

When writing new messages, Thunderbird hangs for 3-5 seconds, every 30 seconds. Uninstalling Lightning solves the problem.

As I see this bug had been around since 2012, and it is not solved, this makes me seriously reconsider using Thunderbird.

Since the price of Outlook has dropped significantly, I might just go back to Outlook altogether.

Revision history for this message
In , Montypython456 (montypython456) wrote :

(In reply to bugzilla from comment #63)
> This might not help, but I suddenly had this issue today out of the blue - I
> was prompted for my Google ID and Password, presumably to help synchronize
> my Gmail calendar with Thunderbird (not sure why it suddenly prompted,
> though) and then the 5-second pauses began. Made Thunderbird practically
> unusable.
>
> I managed to the Lightning extension, then restarted Thunderbird and all was
> fine.
>
> Then, something odd: I went into Thunderbird's "About" dialog and it tried
> to automatically update the program, but got stuck and never went beyond the
> "installing" message. My guess is that this was the case for months, as my
> version of TB was 26.x but the latest version turned out to be 31.1.2 when I
> manually checked on the Mozilla website.
>
> So, I downloaded the latest TB and installed over my current installation,
> then did likewise for the latest version of Lightning. Started TB and
> everything was working as expected, then installed the Provider for Google
> Calendar extension within TB and restarted. Integrated my Google Calendar
> back into Lightning via the new add-on (as opposed to using CalDev). UI
> performance is back to normal and my Google Calendar is properly integrated
> into the local Lightning view within Thunderbird.
>
> I realize this situation does not cover all issues mentioned within this
> bug, but hope it helps a bit.

Thanks <email address hidden>, that worked for me. :-)
My Thunderbird was version 24.6 (not sure about the .6, sorry) with an older version of Lightning; perhaps I'd disabled auto update and forgotten about it. When I manually updated Thunderbird to the current version (31.1.2) and allowed it to find compatible versions of the addons, the problem (same symptoms, slow loading since a few days ago, when Google asked for my login details) and with the new Thunderbird and addons running, the problem seems to be gone.
Hope your post brings relief to many other people. :-)
(Windows 7 32 bit, Intel core2 duo, 4gb RAM, generic system with Gigabyte MB, Kaspersky Internet Security 2015.)

Revision history for this message
In , Moritz Augustin (pub-1) wrote :

One potential workaround:
I am using the same set of CalDAV calendars (with lots of events, tasks and alarms both single and recurrent ones) on a number of machines each with Thunderbird/Lightning (I love it). Surprisingly on my slower computers the sync and Thunderbird/Lightning were fast and the GUI smooth but on my fastest machine each start of Thunderbird and each (also periodic) sync of the calendars took forever (approx. 10min...). In addition the GUI blocked each time I made a change to something within any calendar. What resolved the slowness problem on the fast machine was simply (i) to unsubscribe from all my (CalDAV) calendars, (ii) to restart Thunderbird and (iii) adding the same calendars again by subscribing them in the same way as before. Clearly if your problems are due to intrinsically inefficient algorithms in Lightning and your machine is just to slow to process those in time then this workaround does not help you. By the way: Emptying the cache of the calendars (they are configured to have offline support) did not resolve my issue; only unsubscribing, restarting TB and subscribing again did.

Revision history for this message
In , Vseerror (vseerror) wrote :

Is anything in comment 63 deserving of a new bug report?

Revision history for this message
In , E-bugzilla (e-bugzilla) wrote :

(In reply to Wayne Mery (:wsmwk) from comment #67)
> Is anything in comment 63 deserving of a new bug report?

I haven't looked to see if Thunderbird update bug reports exist, which would seem to be the most obvious issue that I encountered.

Revision history for this message
In , Ssitter (ssitter) wrote :

Lightning problems described in comment 63 might be caused by the broken Provider for Google Calendar 1.0 release or the access problems in the days after due to quota limit. Don't think any of this deserves a new bug report as they ought to be fixed now.

Revision history for this message
In , Worcester12345 (worcester12345) wrote :

(In reply to Stefan Sitter from comment #69)
> Lightning problems described in comment 63 might be caused by the broken
> Provider for Google Calendar 1.0 release or the access problems in the days
> after due to quota limit. Don't think any of this deserves a new bug report
> as they ought to be fixed now.

Not fixed yet.

Revision history for this message
In , Ssitter (ssitter) wrote :

For support issues regarding the Provider for Google Calendar extension please take a look at its support site <https://groups.google.com/forum/#!forum/provider-for-google-calendar>.

Revision history for this message
In , Vseerror (vseerror) wrote :

If you see slowness while using Thunderbird version 31, 38 or newer please post the URL from doing a profile while the problem is progress, per https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Reporting_a_Thunderbird_Performance_Problem_with_G

74 comments hidden view all 102 comments
Revision history for this message
monochromec (monochromec) wrote :
Revision history for this message
monochromec (monochromec) wrote :

Should have checked the Mozilla bug tacker first :-).

This bug seems to be a known issue: https://bugzilla.mozilla.org/show_bug.cgi?id=733039.

After cleaning up the cache as suggested in the thread as a workaround, performance is back to normal.

Changed in thunderbird:
importance: Unknown → Medium
status: Unknown → Confirmed
74 comments hidden view all 102 comments
Revision history for this message
In , Pecsabi (peterfalvicsaba) wrote :

Hi,
I use Thunderbird 38.0.1 with Lightning 4.0.0.1. Every time I start Thunderbird, it starts running the CPU at 100% and for a minute I can't do anything with it. Occasionally it freezes much after start-up as well, but only if Lightning is enabled. With Gecko Profiler, I uploaded a dump file to http://people.mozilla.org/~bgirard/cleopatra/?1435411209547#report=436abe9ed418a2e2807f29f3c1a1f97faeed94ad which was made right after start-up. Is there anyone else experiencing this with the new Lightning? Can you reproduce the problem?
Thank you for your help.
Csaba

Revision history for this message
In , Philipp-bugzilla (philipp-bugzilla) wrote :

Hi Peter, thanks for uploading the profiler dump. The dump doesn't really show anything out of the ordinary, searching for alarms and loading the views are the items with most time spent in. If you are using the Provider for Google Calendar, please unsubscribe from the Birthday calendar. If you are using other calendars, can you let us know which? If you have a lot of old items that you no longer need, it would help to delete old items. I can understand this might not be wanted though. Also, if you have the event view set to "All Events", can you switch this to something else, e.g. events in the next 14 days?

Revision history for this message
In , Pecsabi (peterfalvicsaba) wrote :

Hi Philipp, thank you for the quick answer. I unsubscribed from the birthday calendar, and it fixed the problem indeed. Not long ago, I was still using Lightning 3, and I didn't experience any such problems with that. Will this be fixed at some point in the new version, or should I rather find an other way to get notified about the birthdays? Cheers

Revision history for this message
In , Philipp-bugzilla (philipp-bugzilla) wrote :

I will take a look at this in bug 1169062

Revision history for this message
In , Vseerror (vseerror) wrote :

Ralf reports ... issue is - nearly - gone for me. I assume this is depending on splitting big calendar in smaller ones. I'm also removing alarm-setting from past-events.solved his issues by splitting big calendar in smaller ones.

Changed in thunderbird:
importance: Medium → High
Revision history for this message
In , Anders610m (anders610m) wrote :

I can confirm that the single step of unsubscribing from the Birthday calendar brings startup time down from minutes (3-4!) to seconds.

This has been a huge frustration for years!

On the other hand, I would really like to have the Birthdays calendar...

Revision history for this message
In , Vseerror (vseerror) wrote :

We have here so many comments that are unanalyzed and in some cases "incomplete" that this has essentially become a mirror of the meta bug 441710, making this essentially an unactionable placeholder bug. We should await results of some of the bugs mentioned in comment 52 whose symptoms for some comments here a closer match than this bug summary, and also bug 441710, which includes bug 753343 which shares with this bug the symptom of jank/choppiness during compose. (But this bug lacks mention of high memory usage which is a prime symptoms of bug 753343. So hard to say if these share the same root cause - linking just in case.)

Note also, the original reporter, krt, stopped using calendar couple years ago. So we won't be hearing from him.

Volunteers welcome to assist Fallen and other developers in making patches.

Revision history for this message
In , Adrianoseie (adrianoseie) wrote :

Hi,

I have the same problem on Fedora 22
Thunderbird 38.2.0

Revision history for this message
In , Adrianoseie (adrianoseie) wrote :

Its very slow and sometimes it craches

Revision history for this message
In , Adrianoseie (adrianoseie) wrote :

When I disable Lightning 4.0.2 it works fine

Revision history for this message
In , Ssitter (ssitter) wrote :

Please keep this bug for Lightning related problems. The hang in Thunderbird 38.2 is a known problem and is not related to Lightning. The cause for the Thunderbird problem is known and a fix is in work for 38.3, see Bug 1196662. I'd like to ask you to not add comments that don't provide new information.

Revision history for this message
In , Quiet Dragon (quietdragon) wrote :

(In reply to Ben Bucksch (:BenB) from comment #40)
> > After deactivation of Lightning everything runs fast.
>
> Note that the problem gets worse over time, so a restart alone can improve
> things temporarily.
> That said, Lightning does make the situation considerably worse.
> This issue needs urgent attention from the Lightning owners.
>
> Tip: Separate Lightning into its own process, by creating a second
> Thunderbird process, starting it with thunderbird.exe -new-instance -P
> <profilename>, and installing Lighting there, and ignoring the mail part,
> effectively creating a "Sunbird".

The combination of Thunderbird, Lightning and the Google Calendar Provider is very attractive, so it's a real pity that it is pretty much practically useless at present.

This suggestion is not a bad compromise, hiding the underlying issues enough to make the platform usable. Here is what I did:

1. Create a new profile (eg Calendar)
2. Launch Thunderbird with --new-instance -P Calendar
3. Install Lightning, Google Calendar Provider, and Lightbird
4. Restart with --new-instance -P Calendar -calendar for a calendar only user experience

Revision history for this message
In , piotrek (abdonn) wrote :

i confirm: disabling lightning (4.0.2) eliminates the problem. but with lightning enabled thunderbird is almost unusable.
if it's so hard to find the problem maybe it would be a good idea to add some kind of profiles into the thunderbird. when user feels some problems, he turns on the profiler and call stack is being sampled. it should help find out which part consumes cpu

Revision history for this message
In , Wolfgang-7 (wolfgang-7) wrote :

I don't know about others, but for me this problem has disappeared a long time ago. Comments to this thread seem to pop up with long intervals for some reason.

I currently use thunderbird 38.3.0 on a linux machine, with lightning 4.0.3 and also lightbird 0.5, and everything is just fine.

Revision history for this message
In , Quiet Dragon (quietdragon) wrote :

I stumbled across Philipp Kewisch's comments:

https://bugzilla.mozilla.org/show_bug.cgi?id=733039#c74
https://addons.mozilla.org/en-US/thunderbird/addon/provider-for-google-calendar/reviews/743276/

I followed the advice: "please unsubscribe from the Birthdays calendar"

I unsubscribed from anything with "birthday" in its name, and I was very pleasantly surprised by the result. I have Thunderbird, Lightning and Google Calendar Provider in a single profile and about 9 calendars in play (definitely no birthday calendars of any kind) and the application remains usable and responsive.

Revision history for this message
In , Sven (anders-anduras) wrote :

I experiencing equivalent problems.
I run Thunderbird 38.3.0 on Fedora 22.

When Thunderbird runs longer than a day (and my Laptop is going into suspend für several hours in between, if that has any influence), it becomes very laggy too.

I followed several suggestions on this page and some helped a bit. But the problem itself persists. The problem is getting worse, if you have some calendars, that are not accessible (due to DNS, VPN, WiFi or similar).

The only chance to speed it up again is to quit and restart Thunderbird.

If I restart Thunderbird, the file "<profile>/calendar-data/cache.sqlite-wal" will be removed and
is recreated upon restart. After this, I can use Thunderbird for some hours without problems.

I think the developers should investigate the behavior of Lightning, if it has problems to connect to
the CalDav servers...

Revision history for this message
In , Quiet Dragon (quietdragon) wrote :

(In reply to quiet.dragon from comment #87)
> I followed the advice: "please unsubscribe from the Birthdays calendar"

I've been running with this configuration for about a week now. I start Thunderbird, and it stays running for days.

On my desktop Ubuntu system, the Thunderbird+Lightning+Google Provider continues to function well. I have not had to restart Thunderbird since I deleted the birthday calendars.

On my OSX laptop system, the performance started off well, but degraded slowly over the week with the occasional long delays in response to key strokes. The laptop is mobile moving from one WiFi system to another, but it's not possible to say if the intermittent connectivity is the root cause of the degradation.

Revision history for this message
In , David Albert (t-david-j) wrote :

Another datapoint: this problem only manifests on Windows. I run Thunderbird+Lightning on multiple Linux platforms with no problem, however on Windows, TBird+Lightning+Provider for Google Calendar = huge startup delays + frequent UI blocked for several seconds at a time. This suggests a blocking call to access the calendar API is taking place in the UI thread.

A good workaround for windows users is the Google Calendar Tab add-on for Thunderbird.

Revision history for this message
In , Bugzilla-mozilla-u (bugzilla-mozilla-u) wrote :

On the other hand…
I do experience this issue on Linux very much (on a quite recent machine with really enough CPU/RAM/IO bandwidth available).
Further, the problem also occurs with subscribed calendars other than Google's (i.e. also w/o being subscribed to Google calendars but CalDAV ones etc.).

Revision history for this message
In , Ben-bucksch (ben-bucksch) wrote :

> this problem only manifests on Windows.

Wrong. I see it on Linux, very strongly.

Revision history for this message
In , Sven (anders-anduras) wrote :

As an update to my previous post, the problem still persists under Linux (Fedora 23)
using Thunderbird 38.6.0 (with Lightning 4.0.6) with several ical and CalDav calendars
(to three different caldav servers).

I disabled the ThunderBirthDay Addon, because it was almost unusable with it enabled.
It works fine for several hours, but I have to restart it once a day to be usable
(and responsive) again.

Revision history for this message
In , Fry-kun (fry-kun) wrote :

Is there some log or debug tool that Thunderbird has that we can look at?
Since the issue only happens after hours of use it's really annoying to reproduce -- I assume this is why there hasn't been any progress in all this time

P.S.
Fedora 23, 38.7.1
For some reason not sluggish today...

Revision history for this message
In , Fry-kun (fry-kun) wrote :

So I haven't seen Thunderbird behave poorly the last few days. What I did was run "Repair Folder" on each folder I have. The same session did not improve, IIRC, so I promptly forgot about it.. but the next day the slowness wasn't there.

There really should be a button to repair all folders... and maybe some kind of check for "slow to access a folder", which would trigger a suggestion to the user to repair it (similar to how Compress Folders works)

Revision history for this message
In , Philipp-bugzilla (philipp-bugzilla) wrote :

Ben, was making this a security bug done on purpose? I admit I didn't re-read all 95 comments but maybe you can comment on this.

Revision history for this message
In , Dveditz (dveditz) wrote :

Ben emailed and marking it secure/hidden was a mistake, he meant to check the "Restrict commenting on this bug to users in the editbugs group" box.

97 comments hidden view all 102 comments
Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Closed per reporter’s feedback.

Changed in thunderbird (Ubuntu):
status: New → Invalid
98 comments hidden view all 102 comments
Revision history for this message
In , Vseerror-i (vseerror-i) wrote :
Displaying first 40 and last 40 comments. View all 102 comments or add a comment.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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