[Bug 2060534] Re: Thunderbird doesn't always clean nstmp cache files

2024-04-20 Thread Bug Watch Updater
Launchpad has imported 38 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=1878541.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2024-02-04T09:38:58+00:00 Omry Yadan wrote:

Created attachment 9378154
Screenshot_9.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0

Steps to reproduce:

I am not sure how to trigger it.
I get system warnings about the disk being full and then I see a nstmp file 
using 1TB.
I deleted it, and hours later it happened again.
This have happened a few times for me in the past few weeks, but it seems to be 
happening more and more.

Additional context:
I am using imap. The entire mailbox on the server is 9.9GB.

Thunderbird 123.0b2 (64-bit)

OS:
Edition Windows 11 Pro
Version 22H2
Installed onβ€Ž22/β€Ž01/β€Ž2023
OS build22621.3007
Experience  Windows Feature Experience Pack 1000.22681.1000.0

Reply at:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/2060534/comments/0


On 2024-02-05T10:34:18+00:00 Mkmelin+mozilla wrote:

That's only used for compacting folders. 
https://searchfox.org/comm-central/rev/1452d8f1e1582cc44529f638e1eba1c7b3804fe4/mailnews/base/src/nsMsgFolderCompactor.cpp#393
The sent folder is also quite large, 50GB.

Is auto compact enabled, or do you do compaction only when it asks/or
manually?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/2060534/comments/1


On 2024-02-05T11:19:45+00:00 Omry Yadan wrote:

> Is auto compact enabled, or do you do compaction only when it asks/or
manually?

I didn't change the setting, so I think it's probably enabled by default.
I dug through the settings now and was not able to locate it.

> The sent folder is also quite large, 50GB.
I noticed that too. I deleted it and it. The reconstructed file is 16GB.

> That's only used for compacting folders. https://searchfox.org/comm-
central/rev/1452d8f1e1582cc44529f638e1eba1c7b3804fe4/mailnews/base/src/nsMsgFolderCompactor.cpp#393

It looks like this function is not always cleaning up after itself.
For example, if an exception is thrown here,  CleanupTempFilesAfterError is 
never called:
https://searchfox.org/comm-central/rev/1452d8f1e1582cc44529f638e1eba1c7b3804fe4/mailnews/base/src/nsMsgFolderCompactor.cpp#411

Why not wrap it with a big "try finally" to always delete the file if it
exists when the function returns?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/2060534/comments/2


On 2024-02-05T11:20:48+00:00 Omry Yadan wrote:

There is also the underlying question of why on earth the function is
creating a file that is 1TB in size. It sounds like there is a quadratic
usage of disk space in the compaction algorithm.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/2060534/comments/3


On 2024-02-05T11:30:25+00:00 Omry Yadan wrote:

There is an attempt to clean up the file if it's still there in the destructor:
https://searchfox.org/comm-central/source/mailnews/base/src/nsMsgFolderCompactor.cpp#171-177

However, it only kicks in if NV_FAILED returns true.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/2060534/comments/4


On 2024-02-05T13:11:17+00:00 Anjeyelf wrote:

Sounds like the Sent-1 file is so big it's not possible to do compacting
maybe because either Thunderbird is interrupted during the compacting
eg: shutdown, crash or receiving mail into the folder being compacted,
maybe another program is scanning the file or it's possible that you
might not be able to compact a large folder because you don't have
enough free disk space or memory or there is some type of corruption in
the file.  50GB is very large for a single text file and it looks like
it's been failing to compact for a while, so is full of old deleted
mail.

Does it say anything in the Error console ?
Open Error console (Ctrl + Shift + J') or 'Tools' > 'Developer Tools' > 'Error 
Console'
Clear Error console - top left bin icon

right click on 'Sent' folder and select 'compact'
If compacting does not work - Sent-1 is still 50Gb and  nsmtp appears.
What do you see in Error Console - please post an image.

Either way you need a solution to overcome the current issue.

Suggestion:
- Create a new folder called 'Sent Store'.
- Move all the wanted sent emails into 'Sent Store' as a precaution to 

[Bug 2060534] Re: Thunderbird doesn't always clean nstmp cache files

2024-04-18 Thread Sebastien Bacher
** Summary changed:

- Thunderbird disk usage out of control
+ Thunderbird doesn't always clean nstmp cache files

** Changed in: thunderbird (Ubuntu)
   Importance: Undecided => High

** Changed in: thunderbird (Ubuntu)
   Status: New => Triaged

** Also affects: thunderbird via
   https://bugzilla.mozilla.org/show_bug.cgi?id=1878541
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060534

Title:
  Thunderbird doesn't always clean nstmp cache files

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/2060534/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs