Closed Bug 1978286 Opened 1 year ago Closed 1 year ago

thunderbird 140esr bug with attachment downloads - Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)"

Categories

(Thunderbird :: General, defect)

Thunderbird 140
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: addso, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression, regressionwindow-wanted, Whiteboard: [antivirus:McAfee])

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

Steps to reproduce:

Save attachments from thunderbird 140 esr (no issue in 128 esr)

Actual results:

If 2 or more attachments ("save all"), they download properly. If only one attachment ("save") it doesn't download properly: the Dropbox icon suggests that something is happening i.e. it's trying to download, but eventually nothing is downloaded into the folder. Reproduced many times.

Expected results:

Should download properly, as in the prior version 128 esr. The bug only happened after upgrading.

I wasn't able to recreate this on Ubuntu 24.04. Are there any errors in the error log? ctrl-shift-j

Dear Corey, yes there are errors in the log (copied below). It's still the same issue (only occurs if the message has 1 attachment but not if it has 2 or more attachments). Thanks

1754553811347 addons.xpi WARN Checking C:\Program Files\Mozilla Thunderbird\distribution\extensions for addons
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIBackgroundFileSaver.finish] DownloadCore.sys.mjs:2403
Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)" location: "JS frame :: resource://gre/modules/DownloadCore.sys.mjs :: DownloadError :: line 1861" data: no]', becauseSourceFailed: false, becauseTargetFailed: false, stack: "DownloadError@resource://gre/modules/DownloadCore.sys.mjs:1893:16\nonSaveComplete@resource://gre/modules/DownloadCore.sys.mjs:2252:38\n" }

initNSMouseEvent() is deprecated. Use the MouseEvent() constructor instead. browserPopups.js:115:12
TypeError: can't access property "ownerGlobal", navigatedWindow.windowRoot is null FormHandlerChild.sys.mjs:413:31
sendRemoveListener on closed conduit {8845E3B3-E8FB-40E2-95E9-EC40294818C4}.3 ConduitsChild.sys.mjs:122:13
sendRemoveListener on closed conduit {8845E3B3-E8FB-40E2-95E9-EC40294818C4}.10 ConduitsChild.sys.mjs:122:13
Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)" location: "JS frame :: resource://gre/modules/DownloadCore.sys.mjs :: DownloadError :: line 1861" data: no]', becauseSourceFailed: false, becauseTargetFailed: false, stack: "DownloadError@resource://gre/modules/DownloadCore.sys.mjs:1893:16\nonSaveComplete@resource://gre/modules/DownloadCore.sys.mjs:2252:38\n" }

Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)" location: "JS frame :: resource://gre/modules/DownloadCore.sys.mjs :: DownloadError :: line 1861" data: no]', becauseSourceFailed: false, becauseTargetFailed: false, stack: "DownloadError@resource://gre/modules/DownloadCore.sys.mjs:1893:16\nonSaveComplete@resource://gre/modules/DownloadCore.sys.mjs:2252:38\n" }

Here's another error report from a shorter session, it may help:

1754556713082 addons.xpi WARN Checking C:\Program Files\Mozilla Thunderbird\distribution\extensions for addons
NotFoundError: No such JSProcessActor 'BrowserToolboxDevToolsProcess'
Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)" location: "JS frame :: resource://gre/modules/DownloadCore.sys.mjs :: DownloadError :: line 1861" data: no]', becauseSourceFailed: false, becauseTargetFailed: false, stack: "DownloadError@resource://gre/modules/DownloadCore.sys.mjs:1893:16\nonSaveComplete@resource://gre/modules/DownloadCore.sys.mjs:2252:38\n" }

Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)" location: "JS frame :: resource://gre/modules/DownloadCore.sys.mjs :: DownloadError :: line 1861" data: no]', becauseSourceFailed: false, becauseTargetFailed: false, stack: "DownloadError@resource://gre/modules/DownloadCore.sys.mjs:1893:16\nonSaveComplete@resource://gre/modules/DownloadCore.sys.mjs:2252:38\n" }

sendRemoveListener on closed conduit {8845E3B3-E8FB-40E2-95E9-EC40294818C4}.3 ConduitsChild.sys.mjs:122:13

Thanks. Does it recreate in troubleshoot mode?

Actually my comment above is a separate issue caused by the same upgrade to v140. To answer your question from yesterday: yes, it's the same error in troubleshoot mode with the following error:

1755020353647 addons.xpi WARN Checking C:\Program Files\Mozilla Thunderbird\distribution\extensions for addons
NS_ERROR_FAILURE
Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)" location: "JS frame :: resource://gre/modules/DownloadCore.sys.mjs :: DownloadError :: line 1861" data: no]', becauseSourceFailed: false, becauseTargetFailed: false, stack: "DownloadError@resource://gre/modules/DownloadCore.sys.mjs:1893:16\nonSaveComplete@resource://gre/modules/DownloadCore.sys.mjs:2252:38\n" }

And to clarify: the only work-around is that I open the file and save (download) it. As mentioned earlier, this only happens with 1 attachment, but with several attachments weirdly it is not a problem.

Where are you trying to save the attachment? Directly to Dropbox?

Component: Untriaged → General
Summary: thunderbird 140 esr bug with attachment downloads → thunderbird 140 esr bug with attachment downloads - Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)"
Duplicate of this bug: 1982354

No, I am saving it locally on the hard drive. The only reason I mentioned Dropbox is because the Dropbox icon going busy made me realise that thunderbird was doing something. I only learned about using the error log after posting this bug. Thanks

and by the way, I tried pre-specifying the download folder on my hard drive in Settings (instead of 'ask me every time') but it makes no difference, same error

And an interesing observation! I have an email with 2 attachments. If I right-click on one attachment and "save as", it doesn't work, same problem. But if I click on "save all", it works perfectly and downloads both attachments without problems..

The only reason I mentioned Dropbox is because the Dropbox icon going busy made me realise that thunderbird was doing something.

But how is this connected? Why would you even think dropbox busy => thunderbird is doing something?

Could this be due to Antivirus/Firewall interfering? What Antivirus are you using?

Blocks: tb140found

(In reply to Magnus Melin [:mkmelin] from comment #13)

The only reason I mentioned Dropbox is because the Dropbox icon going busy made me realise that thunderbird was doing something.

But how is this connected? Why would you even think dropbox busy => thunderbird is doing something?

initially i thought thunderbird was not even trying to download the attachment to my hard drive but the fact that Dropbox reacted showed me that it was trying to download the attachment to my hard drive but not succeeding

(In reply to Magnus Melin [:mkmelin] from comment #14)

Could this be due to Antivirus/Firewall interfering? What Antivirus are you using?

I can't see this cause, (1) none of these issues happened in v128 and (2) it always happens with "save as" but never with "save all"

It's not surprising save vs save all works differently (it's different code paths in v140).

Again, how is Dropbox connected to the this? Can you disable Dropbox and try if it makes a difference?

I have disable Dropbox but there are no differences. The "Save all" work well but with the only "Save" the problem exist.

See Also: → 1980836

Are you using McAfee? Try turning off live scan.

Yes. I use McAfee. If live scan is turned off it is possible to save the file....

(In reply to Giuseppe from comment #20)

Yes. I use McAfee. If live scan is turned off it is possible to save the file....

I have the same problem; did you solve it be turning off McAfee real time scanning on your PC?

For me McAfee also caused the problem. But now I turned of real time scanning and that doesn't feel good either. Did you find a way to have real time scanning on?

Seems McAfee needs to fix their software.

Duplicate of this bug: 1985633

I've been using Thunderbird and McAfee for years without any problems. The problem only occurs with the update, and not with all files (.doc files have no problems).
Then it is a new bugs and it is not possible to work with the McAfee without the real time scanning

The attachments code was previously using another code path, which (among other things) did not correctly mark attachments with Mark-Of-The-Web. (Maybe live scanning looks at that, and actually wasn't protecting you before, who knows?)

I've never had any virus problems, but I don't know. Now the attachment issue is a major one. Either you open them with their software and save them with their software, or you use another email manager to save the attachments. Disabling the antivirus isn't possible.

Duplicate of this bug: 1980836
See Also: 1980836 →

I don't think there's anything we can do about this. McAfee needs to adjust their live scanning.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Summary: thunderbird 140 esr bug with attachment downloads - Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)" → thunderbird 140esr bug with attachment downloads - Object { name: "DownloadError", result: 2154890440, localizedReason: undefined, message: '[Exception... "<no message>" nsresult: "0x807104c8 (<unknown>)"
Whiteboard: [antivirus:McAfee]
Duplicate of this bug: 1988429
Duplicate of this bug: 1992677
You need to log in before you can comment on or make changes to this bug.