Closed Bug 1688248 Opened 3 years ago Closed 3 years ago

Printing not working in daily 86.0a1. Spawns multiple printer selection dialogs without stopping.

Categories

(MailNews Core :: Printing, defect, P1)

Thunderbird 86
x86_64
All

Tracking

(thunderbird_esr78 unaffected, thunderbird86+ verified)

VERIFIED FIXED
87 Branch
Tracking Status
thunderbird_esr78 --- unaffected
thunderbird86 + verified

People

(Reporter: clochrua, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

Steps to reproduce:

Print does not work
Select any mail and "print" the mail

Actual results:

PRINT:
Normally one window with a printer list would be displayed.
With the printing subsystem as it MULTIPLE windows of the same printer list are displayed. See the attached screen shot.
A (random?) number of linux processes are started, one for each printer list displayed.
Eventually the total system grinds to a halt with too many processes.
Even though TB is being started with "-jsconsole" option, cannot switch to the jsconsole so can't tell what happened at the TB JS level.

Expected results:

A single printer list window should be displayed where I can select the printer to be used.

Prining has been broken in daily 86 for some time, however, the changes to 86.0a1 between Monday 18 Jan and Friday 22 Jan seem to have caused this change.

I can reproduce using 86.0a1 on Fedora 33 Workstation and Windows 10.

Severity: -- → S1
Status: UNCONFIRMED → NEW
Component: Untriaged → Printing
Ever confirmed: true
OS: Unspecified → All
Priority: -- → P1
Product: Thunderbird → MailNews Core
Hardware: Unspecified → x86_64
Summary: Printing not working in daily 86.0a1 22 Jan 2021 UBUNTU 20.10 Linux 5.10 → Printing not working in daily 86.0a1. Spawns multiple printer selection dialogs without stopping.

There's lot of (native) console spew about "too much recursion"

Regressed 2021-01-19 -> 2021-01-20, so this would be from tb-fission.

Regressed by: tb-fission

Ping will take a look unless someone already got started?

Assignee: nobody → remotenonsense
Blocks: tb-fission
No longer blocks: tb-fission

We're getting some notifications from here that we weren't getting before. These enter our printing code here which starts the message loading again, causing the recursion. I'm still not sure what to do about it.

There's two recursion loops here. First, nsMsgPrintEngine::Observe gets some notifications it
never got before E10s, which causes FireThatLoadOperation to happen more than it should. This
prevents the print progress dialog completing.

Second, nsBrowserAccess.getContentWindowOrOpenURI goes into a spin looking for somewhere to load
a message for printing. This stops the actual printing happening.

https://phabricator.services.mozilla.com/D103009 is enough to fix printing of messages. Printing web pages doesn't work because of E10s, and I don't know what's wrong with address book and calendar printing.

Assignee: remotenonsense → geoff
No longer blocks: 1689042
Attachment #9199180 - Attachment description: Bug 1688248 - Fix printing of messages, at least temporarily. → Bug 1688248 - Fix printing.
Status: NEW → ASSIGNED
Target Milestone: --- → 87 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/036520a38d2b
Fix message printing after tb-fission and bug 1685184. r=rnons

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9199180 [details]
Bug 1688248 - Fix printing.

[Approval Request Comment]
Needed for beta to avoid printing horking up ones system.

Attachment #9199180 - Flags: approval-comm-beta?

Comment on attachment 9199180 [details]
Bug 1688248 - Fix printing.

[Triage Comment]
Approved for beta.

Attachment #9199180 - Flags: approval-comm-beta? → approval-comm-beta+

On windows 10 I can confirm this is fixed in build2 of 86.0b1.
With build1 I eventually crashed bp-cbc843c6-d7a2-43b0-ac84-7f1300210128

I can verify Wayne's findings using 86.0b1 build2 Build ID 20210128005905 on Windows 10.

Status: RESOLVED → VERIFIED
See Also: → 1689461
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: