Closed Bug 46888 Opened 24 years ago Closed 24 years ago

gets stuck on one msg, can't delete, move or view other msgs

Categories

(MailNews Core :: Backend, defect, P2)

x86
Other
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: johng, Assigned: naving)

References

Details

(Whiteboard: [nsbeta3-][PDTP2])

Attachments

(1 file)

build 2000072704 and ealier (for at least a week), win95, pop

Happens frequently but hard to predict, though beginning to see a pattern.

What happens:
- easy to see if you are view the contents of a message in the 3rd pane
- you have just completed an action like delete, filed a message or ???
- immediately you try to delete or file or click on a different message to read
and you find that you can't.  Seems stuck on the message you were viewing - you
can't delete or file anything.  Even though you can select a different message,
you can't view the contents of that other message.

Pattern?:
Not sure, but it seems to happen when you click on a button (like delete or
instigate filing to a folder) or double click another message (to view in new
window) while an earlier process (like building the summary file of the trash
folder) is still running.
nsbeta3 because this happens to me several times a day and makes the product
hard to use.
Keywords: nsbeta3
John, not all mail bugs are mail database bugs :-) . I'm a bit confused what
criteria you're using to decide mail bugs are mail database bugs.
Assignee: bienvenu → putterman
Component: Mail Database → Mail Back End
QA Contact: lchiang → laurel
Keywords: mail2
+ per mail triage
We need to try to reproduce.  Per Scott, if we delete the message and the 
product thinks it's not done yet, we won't display anything else in the message 
pane. 
Whiteboard: [nsbeta3+]
Target Milestone: --- → M18
P2 per mail triage
Priority: P3 → P2
Whiteboard: [nsbeta3+] → [nsbeta3+][b3 need repro]
I haven't run into this bug on later builds - might be ok to close if you can't 
reproduce.

By the way bienvenu, I just make the best guess I can for the component and 
leave y'all to figure out where it goes.  Sometimes I guess poorly, but what do 
you expect from the nav dude?  ;-)
*** Bug 50343 has been marked as a duplicate of this bug. ***
reassigning to naving. We need a way to handle failed delete's so that we can
reset state that allows messages to be displayed.
Assignee: putterman → naving
PDT agrees P2
Whiteboard: [nsbeta3+][b3 need repro] → [nsbeta3+][b3 need repro][PDTP2]
adding to cc list. I wonder if we're not handling failure to get a folder lock -
I think we do lock local folders when modifying them.
I can't recreate this either. I wonder, John, if you have check for new mail
turned on, and set to automatically download new messages. I can imagine
problems happening if you happen to be deleting a message right when a new
message is getting downloaded or something like that.
What's the current status on this bug?  If we can't reproduce it, we need to
know that very soon.
I have fixed cancelling of news message. In case of failed deletes the next
message should not be selected (remains to be done to close the bug). 
Whiteboard: [nsbeta3+][b3 need repro][PDTP2] → [nsbeta3+][PDTP2]
Scott and I came up with a reproducible case of this involving clicking on a
large message, dragging it to another folder while still loading, and then
clicking on the destination folder after the drop happens. After that point, you
can't load messages. In our tests, it looked like the move wasn't finishing (or
starting), so of course no notification was sent. Debugging at home, it looks
like the move did happen, but the notification wasn't sent.
I think our reproducible case doesn't work because of the following check in
HandleDeleteOrMoveMsgCompleted:

if(IsCurrentLoadedFolder(folder))

This will fail, because the delete/move is happening in a different folder than
is currrently selected, because we selected a different folder.

A simple fix for this would be to clear gNextMessageAfterDelete whenever we load
a folder. Do you want me to try that?
perhaps the best thing to do would be to clear the nextselectedmessage variable 
when changing folders. I think that would make sense since the nextselectmessage 
is no longer valid in this case. And that would free us up to display a message.

Yesterday when we were testing, I thought we weren't hitting the break points 
that send out the notifications. Was that not true?
I got different results at home - don't know why. Yesterday, we weren't even
hitting the code that starts the move, but at home, I am hitting that code. I'll
try clearing that variable on folder load.
I haven't tried this out yet, but something like this might work:

Index: content/commandglue.js
===================================================================
RCS file: /cvsroot/mozilla/mailnews/base/resources/content/commandglue.js,v
retrieving revision 1.122
diff -c -r1.122 commandglue.js
*** commandglue.js	2000/09/14 05:36:45	1.122
--- commandglue.js	2000/09/20 16:38:32
***************
*** 174,180 ****
      
    gBeforeFolderLoadTime = new Date();
    gCurrentLoadingFolderURI = uri;
! 
    if(msgfolder.manyHeadersToDownload())
    {
  	try
--- 174,180 ----
      
    gBeforeFolderLoadTime = new Date();
    gCurrentLoadingFolderURI = uri;
!   gNextMessageAfterDelete = null;
    if(msgfolder.manyHeadersToDownload())
    {
  	try

The original bug doesn't seem to imply switching folders, but we've been having 
problems reproducing that case.
The patch makes this case work for me, too. It's interesting because I was also 
able to complete the move on my machine at home. I'm not sure why.  
OK, I'll send the patch around to the reviewers and get it checked in, and then
try to reproduce this in other ways.
*** Bug 53215 has been marked as a duplicate of this bug. ***
I checked in navin's changes to do some error handling in js code.  I don't know 
if we actually fixed this bug completely, but it's probably all we're going to 
do unless we get a more reproduceable case.  
Marking fixed to get verification help then. Probably not holding PR3 for this, 
so marking nsbeta3- too.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: [nsbeta3+][PDTP2] → [nsbeta3-][PDTP2]
Attached file talkback 18431596
Using PR3, 2000-09-29 mn6 commercial build: First time trying bienvenu's
reproducible case steps, I crashed ... talkback attached.  Don't know if I hit
some other case or what.  

Will try again several times with different messages, etc.
adding Rich to cc list since that crash looks libmime related. It might depend
on the message involved, since neither Scott nor I crashed doing this, and we
were using the same large message
I was just able to do the case with a couple text only, no attachments kind of
messages and all was ok, except the move never moved the message from the Inbox
although it did appear in the destination folder, too; it copied.  Other,smaller
and uninterrupted moves work ok, though; they move instead of copy.

Will keep trying before reopening...could also use input from johng as to
whether he can recreate.
I'm not able to reproduce the problem using oct3 branch build, NT 4.0.
Will give a try on linux, mac...
I can't reproduce on either linux or mac with today's branch build.  
Putting vtrunk in keyword for trunk build verification.
JohnG: please add comments as to whether you're seeing this with current builds
Keywords: vtrunk
OK with dec5 commercial trunk build, linux rh6.0, win98, mac OS 9.0
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: