Closed Bug 1843741 Opened 1 year ago Closed 8 months ago

Thunderbird Crash in [@ nsWindowWatcher::OpenWindowInternal]

Categories

(Thunderbird :: General, defect, P1)

Thunderbird 102
Unspecified
All

Tracking

(thunderbird115 wontfix)

VERIFIED FIXED
126 Branch
Tracking Status
thunderbird115 --- wontfix

People

(Reporter: wsmwk, Assigned: ikey, NeedInfo)

References

(Regression)

Details

(4 keywords, Whiteboard: [tbird crash])

Crash Data

Attachments

(2 files)

Crash report: https://crash-stats.mozilla.org/report/index/029542de-13e0-4cf2-89fa-3c8ab0230713 Thunderbird 115 - user's comment "Tried to access the telemetry settings, and clicking on the link crashed Thunderbird."

MOZ_CRASH Reason: MOZ_RELEASE_ASSERT(targetBC->GetOpenerId() == parentBC->Id())

Top 10 frames of crashing thread:

0  xul.dll  nsWindowWatcher::OpenWindowInternal  toolkit/components/windowwatcher/nsWindowWatcher.cpp:1098
1  xul.dll  nsWindowWatcher::OpenWindow2  toolkit/components/windowwatcher/nsWindowWatcher.cpp:389
2  xul.dll  nsGlobalWindowOuter::OpenInternal  dom/base/nsGlobalWindowOuter.cpp:7032
3  xul.dll  nsGlobalWindowOuter::OpenNoNavigate  dom/base/nsGlobalWindowOuter.cpp:5713
4  xul.dll  nsDocShell::PerformRetargeting  docshell/base/nsDocShell.cpp:8585
5  xul.dll  nsDocShell::InternalLoad  docshell/base/nsDocShell.cpp:9265
6  xul.dll  nsDocShell::OnLinkClickSync  docshell/base/nsDocShell.cpp:13107
7  xul.dll  OnLinkClickEvent::Run  docshell/base/nsDocShell.cpp:12793
8  xul.dll  mozilla::RunnableTask::Run  xpcom/threads/TaskController.cpp:555
9  xul.dll  mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal  xpcom/threads/TaskController.cpp:879
Flags: needinfo?(mkmelin+mozilla)
See Also: → 1670821

Don't know what's going on sorry.

Flags: needinfo?(mkmelin+mozilla)

#55 crash for 115.2.2

Summary: Crash in [@ nsWindowWatcher::OpenWindowInternal] → Thunderbird Crash in [@ nsWindowWatcher::OpenWindowInternal]

Is this one any better? bp-b3fa4f0a-4932-47b4-ac6b-2edc60230817 "it crashed when trying to check profile information"

Flags: needinfo?(m_kato)

(In reply to Wayne Mery (:wsmwk) from comment #3)

Is this one any better? bp-b3fa4f0a-4932-47b4-ac6b-2edc60230817 "it crashed when trying to check profile information"

I don't know. But most crashes are assertion MOZ_RELEASE_ASSERT(targetBC->GetOpenerId() == parentBC->Id());. So, when opening dialog window, opener (parent) window is closed unfortunately before opening new dialog window. So this issue depends on dialog / window.

Flags: needinfo?(m_kato)

Reading bug 1670821 more closely, it is perhaps understandable that Thunderbird has the majority of crashes? "Crashing when testing a page in a non-Fission window with Fission enabled is somewhat understandable, as the code for opening new windows doesn't always handle launching like this super well. Given that we don't intend to support "Open new non-fission window" in the long term"

The only newer version Firefox crash with the same assertion is bp-a6a19da5-c7af-46d7-94c4-d8dc00230831 Firefox 116

bp-6f764f14-5a85-4189-b9c4-732860240126 Firefox 123
bp-8243f9f8-5b09-4910-9f4c-889d10231213 "no longer access to the original profile folder after update" Thunderbird 115
bp-e8ddfc8f-ce68-45a8-816c-70d0a0231210 "in troubleshoot mode, with setting reset and add-ons disabled, clicked about:memory, and it crashed. When not in troubleshoot mode, about:memory spins forever (and TB is taking about 12GB of ram..)" Thunderbird 115

OS: Windows 10 → All
Whiteboard: [tbird crash]

I crashed consistently on nightly build on Mac clicking about:profiles on nightly buildid 20240306105810. Both with MOZ_DIAGNOSTIC_ASSERT(!windowIsNew || targetDocShell). beta 121.0b6 does not crash.

bp-629af425-9df3-406a-a1ca-63e4c0240306
bp-ff876192-ed56-4e54-96d9-341e60240306

I clicked "All crash reports" in help > Troubleshooting Information. bp-9ff164e8-f9b6-45dc-be0f-202ff0240324 125.0b1

Also signature @0x0 | nsWindowWatcher::OpenWindowInternal

Crash Signature: [@ nsWindowWatcher::OpenWindowInternal] → [@ nsWindowWatcher::OpenWindowInternal] [@ @0x0 | nsWindowWatcher::OpenWindowInternal]

Assigning this to Ikey and setting P1/S1 since this makes TB crash for every link in the troubleshooting info page.

Assignee: nobody → ikey
Severity: -- → S1
Priority: -- → P1

This is #1 crash for 125.0 beta and alpha.

Compared to 124.0 beta where it ranks much lower at #11. ... graphed

There must be some regressive aspect to the version 125.0x crashes, and the increase in 125.0x is entirely Windows users.

The first recent nightly crash of the last three months starts with buildid 20240304095714 with a steady rate of crashes since then.

That's a Monday build, so the regression checkin likely occurred Feb 27-March 4. If it's highly reproducible should be easy to find the regressing patch checkin

Nightly build 20240301111143 on Windows doing about:telemetry does NOT crash.

Windows 2020312 build crashed with about:telemetry with MOZ_CRASH reason MOZ_DIAGNOSTIC_ASSERT(!windowIsNew || targetDocShell)

I get this crash by going to troubleshooting information and clicking about:memory: https://crash-stats.mozilla.org/report/index/bp-13617984-bbae-4b6b-b105-a44130240401

See Also: → 1888976

OK still looking into this now but it's interesting to note the targetDocShell is null.

It's also down to the use of target="_blank", investigating further.

diff --git a/mail/components/about-support/content/aboutSupport.xhtml b/mail/components/about-support/content/aboutSupport.xhtml
--- a/mail/components/about-support/content/aboutSupport.xhtml
+++ b/mail/components/about-support/content/aboutSupport.xhtml
@@ -207,7 +207,7 @@
             <th class="column" data-l10n-id="app-basics-memory-use"/>
 
             <td>
-              <a href="about:memory" target="_blank">about:memory</a>
+              <a href="about:memory">about:memory</a>
             </td>
           </tr>
Regressed by: 1882713

The prior change seems to have landed between fixes, as it then caused the links
on our troubleshooting page to stop working, by forcibly removing their docShell.

Attachment #9394677 - Attachment description: Bug 1843741: Stop overriding remote for blank targets. r=#thunderbird-reviewers → Bug 1843741 - Stop overriding remote for blank targets. r=#thunderbird-reviewers

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/f431291dcef7
Stop overriding remote for blank targets. r=aleca,darktrojan

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED

As pointed out by mkmelin, there is some potential for raciness in the
testing where we could miss the click event.

We address this now rather than wait for a mystery intermittent test
failure to appear.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: --- → 126 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/1b838f730f95
Follow up fix for racey tests. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 8 months ago8 months ago
Resolution: --- → FIXED

Thanks Ikey, nightly crashes have ended.

Status: RESOLVED → VERIFIED

Ikey,
Are you good for us uplifting this to 115 esr?

Flags: needinfo?(ikey)

It's a low rate crash on 115, so let's skip uplift there. But ...

Flags: needinfo?(ikey)
Flags: needinfo?(ikey) → needinfo?(vseerror)

Checked the top 10 install time users on version 128, and none report other crash signatures.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: