Closed Bug 459265 Opened 16 years ago Closed 14 years ago

Thunderbird.exe in Task Manager Processes after closing application (with Lightning 0.9 and TB v2) - hangs during shutdown

Categories

(Thunderbird :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: d2_c2, Unassigned)

References

Details

(Keywords: hang, qawanted, stackwanted, Whiteboard: closeme 2010-06-20 [needs retest v3])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Build Identifier: version 2.0.0.17 (20080914)

Using Lightning .9, with .vcs support and all calendars are network calendars.  All mail folders are IMAP.

Closing thunderbird sometimes leaves an instance of thunderbird resident in memory.  Thunderbird will reopen and you can still access mail, to my knowledge.  However, the active calendar is no longer available.  The other calendars can be can be made visible or not, active or not, but the one that are working in disappears.  This seems to happen after adding or editing an event.  This behaviour is a clue that there is a memory problem.

If you exit at this time and open Task Manager, an instance of Thunderbird will still be resident in mememory.  Ending the process, will restore full functionality to Thunderbird on next launch of application.

Reproducible: Sometimes

Steps to Reproduce:
This doesn't happen everytime, but happens often enough.

1. Have Thunderbird open and active for some time, having read, written and moved emails (Not sure if this is necessary, but it tends to happen mid session)
2. Write to networked calendar (others may have the calendar open)
3. Move or resize event and wait for it to change indicating that it has written to disk.
4. Go back to mail window and then come back to calendar windows.  Current calendar no longer visible.
5. Exit TB
6. Reopen TB and navigate to calendar page.  Current Calendar not visible even though checked and highlighted as current.
7. Open Task Manager and check for resident TB process.  Close TB process
8. Reopen TB and go to calendar window - Calendar is now visible and available.
Actual Results:  
I'm guessing that there is a delayed write for the calendar action and the user is not notified, so continues other actions that cause problems with memory.

Expected Results:  
Notice to user that server is busy and therefore calendar edits are delayed.  Protect memory so that this can end gracefully and preserve access to the calendars.

To me this is more than a normal bug, although perhaps not major.  But having to tell end users to go and kill processes to keep functionality is not an acceptable work around.
We can confirm this behavior (Lightning 0.9, Thunderbird 2.0.0.17, Win2000/XP).

It's just a guess, but we think it has something to do with the IMAP-Protocol. We only saw this behavior on PCs that have TLS or SSL activated. Since this bug shows up only from time to time, our observation could also be a random result.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I can confirm this also. See my report at https://bugzilla.mozilla.org/show_bug.cgi?id=456978

Lars, perhaps your guess is right. I am using also IMAP over SSL.

It's a real anoying bug. I had to deaktivate Lightning for a working Thunderbird.
Hi Folks,

I get this kind of behaviour too, but I am *NOT* using TLS or SSL for either the IMAP connection, nor the remote calendar connection.

My local environment is linux, Thunderbird 2.0.0.12, and Lightning 0.9.
My remote calendars are on an Apache server on my LAN with the WebDav module loaded.

The last three versions of 0.9 that I have installed have exhibited this behaviour: 0.9rc1, 0.9rc2, and 0.9 (build 2008091718).

Version 0.8 did not exhibit this, nor did a 0.9 nightly build (prior to rc1) that I was using to investigate a different problem.

In my experience, 0.9rc1 was impossible to use; 0.9rc2 and 0.9 is better and locks up less frequently, but if I accept an invitation from email into my remote calendar (I also click "cancel" for the automatic email notifications), then I almost always get a hung calendar, which can only be fixed by exiting Thunderbird, and then hunting for and killing the (often multiple) zombie thunderbird processes.

Cheers!
Nik
Setting dependency to Bug 456978, for ease of searach & tracking.
Depends on: 456978
Adding "Lightning 0.9" to summary for ease of search.
Summary: Thunderbird.exe in Task Manager Processes after closing application → Thunderbird.exe in Task Manager Processes after closing application (with Lightning 0.9)
setting the proper fields for hang

Note: There are also other Thunderbird shutdown issues - you may need to test without lightning installed in order to determine whether you also (or only) have a different (Thunderbird) bug.  See bug 482094 comment 11 for tips
Severity: normal → critical
Summary: Thunderbird.exe in Task Manager Processes after closing application (with Lightning 0.9) → Thunderbird.exe in Task Manager Processes after closing application (with Lightning 0.9) - hangs during shutdown
presumably, the shutdown hang should not occur with bug 329570 fixed. 

but, you may still want to determine how this is hanging and fix it by posting stacks from the hang, i.e. without bug 329570's fix.
Keywords: hang
Does this happen for 1.9.1 builds of Lightning and Thunderbird?  Requesting qawanted in the hopes of finding out, and, ideally, steps to reproduce.  If so, please nominate to block thunderbird 3.
Keywords: qawanted
What combination of Thunderbird and lightning is 1.9.1.  I am using TB version 2.0.0.22 (20090605)and lightning .9 2008091719.  I have not been using nightly builds of lighting because I use it as part of my time tracking and billing and at one point the nightly builds broke my ability to reliably get to the data.  I may be able to setup a parallel installation if that is possible.
(In reply to comment #8)
> Does this happen for 1.9.1 builds of Lightning and Thunderbird?  Requesting
> qawanted in the hopes of finding out, and, ideally, steps to reproduce.  If so,
> please nominate to block thunderbird 3.

This is 1.8.1 branch as it seems.
Version: unspecified → 2.0
In my case the error has gone. I don't remember really but i guess i installed Lightning new. 

I am still using the same Thunderbird installation and profile.
It is TB 2.0.0.22 and Lightning 0.9 build 2008091719
(In reply to comment #11)
> In my case the error has gone. ... TB 2.0.0.22 and Lightning 0.9 build 2008091719

d2_c2 and Nik, is your problem also gone?
Summary: Thunderbird.exe in Task Manager Processes after closing application (with Lightning 0.9) - hangs during shutdown → Thunderbird.exe in Task Manager Processes after closing application (with Lightning 0.9 and TB v2) - hangs during shutdown
(In reply to comment #12)
> (In reply to comment #11)
> > In my case the error has gone. ... TB 2.0.0.22 and Lightning 0.9 build 2008091719
> 
> d2_c2 and Nik, is your problem also gone?

Unfortunately my problem is not gone.  I'm now using TB 2.0.0.23 with lightning 9.  It does not happen as often, but it does happen.  I've narrowed it down to multiple computers having access to imap email and networked .ics calendars, where events have reminders and multiple computers have the event marked to show alarms.  I'm assuming that one person tries to dismiss the alarm and it is still open on another computer.  Changing a past event with a reminder also triggers the problem.  

It manifests itself by not accepting a new event or change and then locking the calendar.  When you close, TB remains in memory remove it using the Task Manager.  This always works, even if the events are still up and open on other computers.
can you get a stacktrace?  Instructions at https://wiki.mozilla.org/Thunderbird:Testing:Shutdown_Hang
Keywords: stackwanted
it would be preferable to confirm this can be reproduced in v3
Whiteboard: [needs retest v3]
I am using v 3.0.1 and lightning 1.0b2pre with nightly builds.  Changing an existing event will still occasionally hang the computer.  IT seems to happen more often with an event that has an alarm that may be showing up on another computer.  

The behavior that has changed is that when I exit TB, it no longer remains in memory and restarting usually solves the problem after manually unlocking the offending calendar.   Other computers with access to the calendar are not running still running tb2 and 09.
Philipp should we move this to lightning ?
I'd like to see this tested withough Lightning installed before moving to Lightning.

Aside from that, approximately how many events do you have in your calendar? How many of those are recurring? What type of calendar provider are you using? (Local Storage, CalDAV, Google Calendar, ...)
When you say tested without lightning installed are you asking if the same behavior occurs in Sunbird?

It is a very large calendar, as my daily activity gets added with all appointments.  I have about 5 quarterly events, 4 biweekly events, 2 monthly events and 4 biweekly events that are recurring for the next year.  There are approximately one year of events in the calendar.

I do not have local calendar.  I have a google calendar and the rest of the office calendars are CalDAV.
Rather test with Thunderbird 3 without the Lightning extension installed. 

Its quite likely that the size of the calendars are causing Lightning to think longer. After testing without Lightning, maybe you can re-enable Lightning, quit Thunderbird, then let it sit for an hour or two. Maybe its just taking ages?
I am seeing this problem from a slightly different, but easily replicated perspective.

I am not running Lighting. I have v3.03.

I have four profiles and I switch back and forth between throughout the day.

Every time I close an instance of Thunderbird to switch profiles, a version is left running in Task Manager. On its own, this doesn't appear to be causing any obvious problems or slow downs, but it happens every time so should be reproducible.

I am currently running Win7 Home Premium, but saw the problem on Vista also.
(In reply to comment #21)
> I am seeing this problem from a slightly different, but easily replicated
> perspective.
> 
> I am not running Lighting. I have v3.03.
> 
> I have four profiles and I switch back and forth between throughout the day.
> 
> Every time I close an instance of Thunderbird to switch profiles, a version is
> left running in Task Manager. On its own, this doesn't appear to be causing any
> obvious problems or slow downs, but it happens every time so should be
> reproducible.
> 
> I am currently running Win7 Home Premium, but saw the problem on Vista also.

Edward, this bug is *only* about the combination of Lightning 0.9 and TB v2. (and potentially v3) 

We have other bugs about shutdown where lightning is not involved.
Whiteboard: [needs retest v3] → closeme 2010-06-20 [needs retest v3]
I am now using TB 3.0.6 and Lightning 1.0b1.  TB no longer remains in memory when the program exits.  There is still an issue with the lightning application locking out a calendar and the only way of regaining access is to close TB and restart.  So TB's  behaviour has improved.  For this user, it is resolved.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.