Closed Bug 1661626 Opened 5 years ago Closed 5 years ago

Crash in [@ nsPrintJob::FindFocusedDocument]

Categories

(Thunderbird :: General, defect)

Desktop
All
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: t.matsuu, Unassigned)

References

Details

(Keywords: crash)

Crash Data

Typing Ctrl+P for printing an email caused Thunderbird Daily crashed.

Crash report: https://crash-stats.mozilla.org/report/index/e1dbade1-ea38-4112-b195-38e960200828

Top 10 frames of crashing thread:

0 xul.dll nsPrintJob::FindFocusedDocument const layout/printing/nsPrintJob.cpp:2352
1 xul.dll nsPrintJob::DoCommonPrint layout/printing/nsPrintJob.cpp:595
2 xul.dll nsPrintJob::CommonPrint layout/printing/nsPrintJob.cpp:533
3 xul.dll nsPrintJob::Print layout/printing/nsPrintJob.cpp:852
4 xul.dll nsDocumentViewer::Print layout/base/nsDocumentViewer.cpp:3143
5 xul.dll nsMsgPrintEngine::PrintMsgWindow comm/mailnews/base/src/nsMsgPrintEngine.cpp:551
6 xul.dll nsPrintMsgWindowEvent::Run comm/mailnews/base/src/nsMsgPrintEngine.cpp:590
7 xul.dll mozilla::RunnableTask::Run xpcom/threads/TaskController.cpp:242
8 xul.dll mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal xpcom/threads/TaskController.cpp:512
9 xul.dll mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal xpcom/threads/TaskController.cpp:371

This is the only bug with this signature, but it seems to me there must be another bug for this issue.

I just tested this on Linux and crashed.

Crash report

I'm wondering if is due to the new printing changes in Firefox Nightly.

OS: Windows 10 → All
Hardware: Unspecified → Desktop

Bug 1662090 may be related (or fix)

Depends on: 1662090

#2 crash for trunk is mozilla::StyleSheet::AddStyleSet bp-804c5681-c0e1-4d5e-92c8-6269b0200907
With print on the stack, so let's hope bug 1662090 fixes this also.

Crash Signature: [@ nsPrintJob::FindFocusedDocument] → [@ nsPrintJob::FindFocusedDocument] [@ mozilla::StyleSheet::AddStyleSet]

With the latest daily build (Build ID: 20200908085134), Ctrl+P shows the system print dialog.
Click OK or Cancel button makes Daily frozen (No crash report generated).

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.