Open Bug 1875103 Opened 9 months ago Updated 15 days ago

Deleting or moving a message from the message list pane, message preview for next message is slow, up to 2 minutes to appear. Progress bar is in "indeterminate" state

Categories

(Thunderbird :: Folder and Message Lists, defect, P2)

Thunderbird 115

Tracking

(thunderbird_esr115+ affected)

Tracking Status
thunderbird_esr115 + affected

People

(Reporter: cjg.aptl, Unassigned, NeedInfo)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

(4 keywords, Whiteboard: [has performance profile])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0

Steps to reproduce:

Open TB (classic view). In any folder containing more than one message, including Inbox or any subfolder, delete a message or move a message to another folder (drag and drop to the folder tree pane). In the top right message list pane, the selected message correctly moves to the next relevant message in the list. However, the message preview pane (bottom right) fails to display the appropriate message.

If you group messages (multi-select using ctrl+select) and move those, the messages can sometimes take a long time to move, seemingly the move has not occurred.

Other actions, such as scrolling the message pane, selecting a drop-down menu, etc, are not affected and the program does not appear to have otherwise frozen.

Actual results:

The newly-focused message preview eventually appears, this may take anything up to 30 seconds. This delay often occurs, however, the correct behaviour (immediate display of the preview) can also occur. I have not managed to track down the difference between the two behaviours.

If you group messages (multi-select usign ctrl+select) and move the grouped messages to another folder, the messages can sometimes take a long time to move, seemingly the move has not occurred.

Sometimes, having moved or deleted messages, then selecting a message in the message list pane will cause the message details (from/to/subject etc) to instantly change to read other details, although the position of that message on the screen has not changed.

When the immediate preview display fails, manually selecting a different message will also fail to immediately display the preview text for that message

This is in 115.6.1. After deleting or moving messages, the CPU usage increases and I am fairly sure these two events are linked. The CPU reduces again after a minute or two. (115 uses a higher CPU load anyway than my previous pre-update version (68).)

It also occurred in 115.6.0 but was not fixed by the high CPU fix.

Windows 10 Home.

Expected results:

The new message preview should appear immediately on selection of the next relevant message.

To clarify: "It also occurred in 115.6.0 but was not fixed by the high CPU fix". The bug reported here also occurred in 115.6.0 (as far as I can recall), however, the 115.6.1 fix for the very high CPU (100% in my case) caused by the IMAP CONDSTORE issue has been fixed ok for me. My general view is that TB 115.6.1 uses a higher CPU than 68 did, and that this could be linked to the preview delay report here.

Additional: This problem persists in spite of compacting all folders

Clarification: this is for a POP3 account, all mail on my hard drive

Related bugs?

Bug 533499, Bug 1551343, Bug 714489, Bug 1864713 may relate.

These all look to be the parsing of the folder file for display of the message in the Preview Pane, and also sometimes correct dispplay in the message list pane.

This is an annoying and worrying bug when you have been trying to tidy up email filing by deleting messages, moving messages to other folders etc., particularly when the message details in the messages list change as you step through! The delay alone makes moving messages unusuable at times. I hope this can be reproduced and fixed asap.

If I can assist with debugging please advise.

Additional: the POP mail concerned is not stored on my C: drive - configured to be stored under local directory E:\Thunderbird\Mail\mydomainname.co.uk.

A few more bits of info:

  1. I cleared the cache - settings/general/disk space/clear cache. Made no difference.
  2. If you close and re-open the preview pane (using F8 key) during the waiting period this makes no difference, preview text display still very delayed.
  3. Whilst I said above that other parts e.g. drop-down menus, seemed to be working ok, during further testing I found I could not open a drop-down menu until after the preview message text was finally displayed.
  4. I can reproduce this pretty easily - worst when the folder contains a lot of mails (unsurprisingly?)
  5. when there is a delay displaying the preview text, double clicking the affected message in the message list does not open the message until after the preview display responds.

/cont...
6. the total mail size under the POP3 account is 8.5GB, 8500 files, 250 folders. (worked fine with TB 68).
7. the bug also occurs on an IMAP account I have (Gmail)

  1. does not make a difference if the messages are displayed as threaded or not
  1. if, having moved a message, and during the wait for the message preview to update, you go to the folder to which you have moved a message, that message is present in the other folder. If you then go back to the folder from where it was moved, the display can still be lagging.

Bugs 533499, 1551343, 714489, 1864713 may relate.

Can you please write bug 533499, bug 1551343, bug 714489, bug 1864713 so it get's linkified.

Thanks Francesco. I'm new here so don't have my head around what this platform can do. I assume this is automatic link construction and that I don't need to do the html? We shall see...

So, repeating:

Related bugs?

bug 533499, bug 1551343, bug 714489, bug 1864713 may relate.

These all look to be the parsing of the folder file for display of the message in the Preview Pane, and also sometimes correct dispplay in the message list pane.

This is an annoying and worrying bug when you have been trying to tidy up email filing by deleting messages, moving messages to other folders etc., particularly when the message details in the messages list change as you step through! The delay alone makes moving messages unusuable at times. I hope this can be reproduced and fixed asap.

If I can assist with debugging please advise.

Question: I've read somewhere that over the years TB has used two different folder & file structures. If true, this would be a sensible place for me to dig deeper. My total TB mailbase goes back to the late 90's, and though I've upgraded many times, that data files have been there all along, unchanged in terms of the old mail, and only added to with new mail receipt and filing. POP all the while, and in a specfifed local folder off the C: drive.

So, can anyone shed light on this?

And if you right click a folder and select Properties, there's a repair option. How is this different from compacting? This is another route for investigation.

TIA

Further info: repairing the folder does not help (right click the folder, Properties, Repair folder

Further debugging:

  • When the wait is under way, the bottom notification bar text, bottom left, is "Loading message"
  • for a folder of 178 MB and 910 messages, after moving one message out to another folder (drag and drop) the wait for the new-focus message is 1 minute 15 seconds to 1 minute 30 seconds. Sometimes the header display area of the new-focus e-mail will display in a few seconds (<5) but not the body. Normally, however, the header info displayed remains as per the email just moved out of this folder.
  • For moving a file out of a folder of 360kB, 12 messages, the wait period to see the new-focus email is 5 seconds.

So it's related to folder size.

This clearly shows that whilst Thunderbird is determining what header and body text information to display in the message pane, the CPU goes high. Totally reproducible, this jpg shows 5 periods when no move was under way (the red arrows) and 4 inbetween periods when a move was under way. Each of these periods shown was for moving a single file out of a folder of 186 MB and 910 files

I'd appreciate some feedback and advice on how to set debug parameters. I've got as far as this page: https://wiki.mozilla.org/MailNews:Logging no idea what to do next.

*** WORKAROUND ***

Roll back to 102.15.1 :) Problem all gone, messages load instantly.

(This widens the message list pane vertical spacing, though. Grrr.)

And the high CPU disappears, too, going back to 102

Have you tried starting Thunderbird in troubleshooting mode on a system running in safe mode with networking. The results of both test would be necessary to determine if we are dealing with a Thunderbird internal issue really.

While there have been issues of high bandwidth and high memory and CPU use in the 115 release, still the majority of folk with issues do not have an issue with Thunderbird, but usually a third party product like and antivirus or networking.

Component: Untriaged → Message Reader UI
Keywords: dupeme, perf
Summary: When deleting or moving a message from the message list pane, the message preview for next message in focus takes many seconds to appear → When deleting or moving a message from the message list pane, the message preview for next message in focus takes many seconds or up to 2 minutes to appear

(In reply to Matt from comment #19)

Have you tried starting Thunderbird in troubleshooting mode on a system running in safe mode with networking. The results of both test would be necessary to determine if we are dealing with a Thunderbird internal issue really.

While there have been issues of high bandwidth and high memory and CPU use in the 115 release, still the majority of folk with issues do not have an issue with Thunderbird, but usually a third party product like and antivirus or networking.

I will try and do this when I have time. However, the fact that the bug is completely and instantly fixed by rolling back to 102.15.1, with no other changes to the OS or other settings, suggests strongly to me it is in the Supernova changes from 102 to 115. It is a highly specific slowness, affecting only one part of TB, and not a general slow response.

Flags: needinfo?(cjg.aptl)
Whiteboard: [needs performance profile]

OK, done that. Profile is at https://share.firefox.dev/42qQivu

That was a single move of a file from a large folder (178MB) to a small test folder. I tried multiple moves but the dump file got too big. I hope this helps. TB took about 1 minute+ to dispplay the correct message after the move.

This was on 115.7.0 and this version is still displaying the problem

Side note: for the instructions on using the profiler, there is now(?) no Stop Recording button, only a Capture recording.

Can you also advise where this debug data is stored if on my hard drive, so I can delete it. Thanks

Flags: needinfo?(cjg.aptl)

Wayne, did that help?

I have found that the bug causes increasing delays over time even in the inbox when moving or deleting messages, probably cause by increasing fragmentation of the inbox as messages are processed over the days. However, the delay does seem to disappear if you compact the inbox.

I've just gone to 115.8.0 and the bug is still there, though the release notes don't suggest to me that anything relevant has changed.

Flags: needinfo?(vseerror)

It's all paint activity. Probably in the message list?

Component: Message Reader UI → Folder and Message Lists
Flags: needinfo?(vseerror) → needinfo?(h.w.forms)

This is just a hunch, but what happens if you hide the status bar? In the menu under View > Toolbars > Status Bar.

See Also: → 683651

(In reply to Geoff Lankow (:darktrojan) from comment #26)

This is just a hunch, but what happens if you hide the status bar? In the menu under View > Toolbars > Status Bar.

It is certainly much better behaved without the status bar displayed, and I'd say that's a suitable workaround rather than downgrading. I have had one or two freezes, but persisted with testing and mostly there's no delay in displaying the next message in focus when the status bar is not displayed. You can even select then move multiple messages and the next is displayed immediately - that's really slow with the status bar on. With the status bar displayed, immediately after the move it says "Moving x of x messages" (where x = no. of messages) then after ~1 second: "Loading message" until such time as it does load the message (many seconds, even minutes).

Great work. What was the hunch?

Incidentally, during a typical delay period (testing multi-move with status bar on), whilst some of the screen was inaccessible & didn't work (such as menu items) I was able to scroll down the folder pane to the same (a@bcd.co.uk) email account IMAP version, and see and open an email on the server with no delay. So it looks a littel like the problem is ring-fenced to the account doing the move/delete (which in this case is a POP, though whether that's important I don't know).

@Wayne Mery (:wsmwk) how does bug 683651 relate? My bug is totally on the machine, in a POP account of already filed mail deep in the folder tree where I am doing tidying up.

(In reply to Cliff_G from comment #27)

Great work. What was the hunch?

I noticed that the screenshots in your performance profile showed the progress bar in the "indeterminate" state (the coloured patch scrolls from one side to the other) and it coincided with the heavy graphics workload. We've had problems like this before, but for different reasons – we rebuilt that progress bar completely to avoid them. Looks like we still have problems.

Could you go to the Troubleshooting Information page (on the Help menu), copy the data into a text file, and attach the file to this bug? We'll get somebody from graphics to have a look at this.

Flags: needinfo?(h.w.forms)

as requested

Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: When deleting or moving a message from the message list pane, the message preview for next message in focus takes many seconds or up to 2 minutes to appear → Deleting or moving a message from the message list pane, message preview for next message is slow, up to 2 minutes to appear. Progress bar is in "indeterminate" state
Whiteboard: [needs performance profile] → [has performance profile]
See Also: → 1865657
Blocks: 1867219
Severity: -- → S3
Priority: -- → P2
Depends on: 683651
See Also: 683651

Workaround

(highlighting this from amongst a longish thread)

To avoid this problem in use, the workaround is to turn off the Status Bar at the bottom of the screen - View/Toolbars/untick Status Bar.

See Also: → 1891416

Does this reproduce with version 128?

Flags: needinfo?(cjg.aptl)

Wayne, I'll check on that but it may be a couple of weeks as unwell at present. C.

@Wayne Mery (:wsmwk) Having now looked at this, I see 128 is not fully released yet, and that once upgraded I can't go back, so I shall have to defer testing this until 128 progresses to firm status. The status bar turn-off workaround is adequate for now. I've left the needinfo flag set

Cliff, 128 is now considered solid.

Blocks: 1918961
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: