Closed Bug 1822655 Opened 2 years ago Closed 2 years ago

Printing sometimes fails (printBrowser.currentURI is null).

Categories

(Thunderbird :: General, defect)

Thunderbird 112
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird114 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird114 --- fixed

People

(Reporter: steve, Assigned: mkmelin)

References

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

112.0b1 KDE on Opensuse.
Select message
File>Print or press Print button

Actual results:

Dialogue but no printing first click.
No dialogue or printing second click

Expected results:

Message printed.

Whiteboard: smoketestbeta

I'm not able to reproduce on Linux x64 Arch/GNOME.

Used File->Print, the Print button, and the context menu. Dialog appeared as usual and I was able to print to PDF.

Control-P also fails. Window appears, spinning, never completes. Win 11 64 bit English Thunderbird 112.0b1 smoke test

I've found it to be generally working, but intermittently fails. Haven't figured out what makes it fail, but I think it's related to trying to print more than once, and/or doing something inbetween the printing attempts.

Component: Untriaged → General
Keywords: regression
See Also: → 1819777, 1816294

(In reply to doug2 from comment #2)

Control-P also fails. Window appears, spinning, never completes. Win 11 64 bit English Thunderbird 112.0b1 smoke test

Printing is wfm on on Win11 with Beta 112.0b3 (64-bit). Doug2, does this still fail for you on the latest Beta?

Blocks: tb-new-3pane
Flags: needinfo?(dmccammishjr)
Summary: printing fails → Printing sometimes fails
Whiteboard: smoketestbeta → [supernova][smoketestbeta]

(In reply to Steve Edmonds from comment #0)

Actual results:
Dialogue but no printing first click.
No dialogue or printing second click

Steve, does this still fail for you on Linux with latest Beta 112.0b3 (64-bit)?

No, and yes with a work around.
No - Viewing a message in normal message view, ctl-p, File>Print, right-click message>Print, all fail
Yes - save the message to HD (File>Save as>File), open the message (File>Open>Open saved message) and it prints normally.

Flags: needinfo?(steve)

Wrong logic, Yes and No. It still fails without the work around.

A clarification of the topic, normal printing always fails and I never get a dialogue (112.0b3)

If I open a saved message File>Open>Open saved message this message opens in a new tab.

While this tab is present, printing any other messages from any folders works normally.

After closing this tab showing the saved message I no longer get the dialogue or can print except for the 1 message that was selected (from inbox or other folder) when I closed the tab with the email opened from file.

Yes, printing with CTRL-P still fails on Win 11 with TB 112.0b3. A sub-window opens and "spins" and never proceeds.

Flags: needinfo?(dmccammishjr)

Sub window? Are you using the setting to print without print preview?

Is that print.tab_modal.enabled to disable print preview? This makes no difference to me

(In reply to Steve Edmonds from comment #8)

A clarification of the topic, normal printing always fails and I never get a dialogue (112.0b3)

If I open a saved message File>Open>Open saved message this message opens in a new tab.

While this tab is present, printing any other messages from any folders works normally.

After closing this tab showing the saved message I no longer get the dialogue or can print except for the 1 message that was selected (from inbox or other folder) when I closed the tab with the email opened from file.

I have found the message does not need to be a saved message.
The above is also true if I right click a message in my folder messages list and "Open in new tab". With that tab with a message I can print any message. Close the tab and I can no longer print.

This should be fixed on Daily. I suspect it's a duplicate of bug 1819777.

Seems fixed in 112.0b7

Not working for me. 112.0b7 64bit Win 11 US Eng. CTRL-P just spins. Stopped & restarted TB, tried several different types of mail.

Right click menu print does not work either.

Right click menu print, CTRL-P, File>Print all work on openSuse

doug2, still fails for you on Windows?

Flags: needinfo?(dmccammishjr)

TB 113.0b3, Windows 11 64 bit. Yes, printing "spins" and never brings up a dialog 99% of the time. I have had it work once since 113.0b1. Cntrl-P, File/Print from main window and from an open mail window.

Flags: needinfo?(dmccammishjr)
Whiteboard: [supernova][smoketestbeta] → [Supernova3p]

Aureliano, caspy,
Can you get this to fail? (multiple attempts)

Flags: needinfo?(euryalus.0)
Flags: needinfo?(caspy77)

On beta channel, sometime I cannot print but I cannot figure out why

this is the message in error-console

Uncaught (in promise) TypeError: printBrowser.currentURI is null
loadPrintBrowser chrome://messenger/content/printUtils.js:105
<anonymous> chrome://messenger/content/about3Pane.js:5120
doCommand chrome://messenger/content/mailCommon.js:647
goDoCommand chrome://messenger/content/globalOverlay.js:100
oncommand chrome://messenger/content/messenger.xhtml:1
printUtils.js:105:9

I'm on Windows 11

Flags: needinfo?(euryalus.0)

114.0b1 Windows 11, 64 bit. Printing Fails 100% Always spins forever.

Attached image TB-PrintError.png

Error console.

In openSuse Leap 14.4 I get the dialogue and can print, but get the following console message.

[Parent 1906, Main Thread] WARNING: g_object_ref: assertion 'G_IS_OBJECT (object)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:167

(thunderbird-beta:1906): GLib-GObject-CRITICAL **: 07:09:28.742: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

I can't reproduce the error but will submit a patch that seems it could fix it, based on the errors in the console.

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(caspy77)
Target Milestone: --- → 115 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/87e11ddfbd6c
Try to fix "printing sometimes fails" (printBrowser.currentURI is null). r=darktrojan

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

Comment on attachment 9333546 [details]
Bug 1822655 - Try to fix "printing sometimes fails" (printBrowser.currentURI is null). r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9333546 - Flags: approval-comm-beta+

Printing now fails in 114.0b3 on Leap 15.4, 114.0b1 still working fine

This bug should have fixed the issue :Aureliano came across.

The case for doug2 may be different, as well as your case.
If you still see an issue, please file a new bug and paste any console errors you may see.
I'd be very surprised if this bug made anything worse.

Summary: Printing sometimes fails → Printing sometimes fails (printBrowser.currentURI is null).
Blocks: 1833764
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: