Closed Bug 1762043 Opened 2 years ago Closed 2 years ago

.startup-incomplete created at TB start and not removed

Categories

(Thunderbird :: General, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr102+ affected, thunderbird106 affected)

RESOLVED FIXED
107 Branch
Tracking Status
thunderbird_esr102 + affected
thunderbird106 --- affected

People

(Reporter: rachel, Assigned: aceman)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

Delete all .startup-incomplete from your file system. Start TB.
.startup-incomplete created. This should be deleted after successful startup:
https://searchfox.org/mozilla-central/rev/570f6e5c06b6c8140f53bf104d785a18165212ab/toolkit/components/extensions/test/mochitest/test_startup_canary.html#32

  // The ".startup-incomplete" file is created at the startup, and supposedly
  // cleared "soon" after startup (when the application knows that the startup
  // succeeded without crash). Bug 1624724 and bug 1728461 show that this has
  // not always been the case, so this regression test verifies that the file
  // is actually non-existent when this test start, see
  // https://bugzilla.mozilla.org/show_bug.cgi?id=1728461#c12

Apparently related to checking for crashes according to the comments here:
https://searchfox.org/mozilla-central/rev/570f6e5c06b6c8140f53bf104d785a18165212ab/toolkit/xre/nsAppRunner.cpp#4644

Alice, when you have a moment: Has this always been that way? Could you please check.

Flags: needinfo?(alice0775)

Looks like code equivalent to
https://searchfox.org/mozilla-central/search?q=TrackStartupCrashEnd&path=BrowserGlue.jsm&case=false&regexp=false
is missing in TB. Alice, sorry about the noise.

Flags: needinfo?(alice0775)
Component: Untriaged → General

I do not seem to get this file. Where can it be seen?

OK, on Linux it is in the ~/.cache folder, not in the profile. It is removed after TB close, but not soon after startup.

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All

This works for me and removes the file after 30 seconds.

I had to update the patch as it seems MailGlue.jsm file has changed since the patch and it also referenced Betterbird specific code, thus the patch didn't apply.

Attachment #9296112 - Flags: review?(mkmelin+mozilla)
Attachment #9296112 - Flags: feedback+
Comment on attachment 9296112 [details] [diff] [review]
1762043-fix-startup-incomplete.patch based on comment 3

Review of attachment 9296112 [details] [diff] [review]:
-----------------------------------------------------------------

Seems ok apart from the below. r=mkmelin

::: mail/components/MailGlue.jsm
@@ +368,5 @@
> +        try {
> +          Services.startup.trackStartupCrashEnd();
> +        } catch (e) {
> +          Cu.reportError(
> +            "Could not end startup crash tracking in quit-application-granted: " + e

The try-catch seems unneeded. Firefox doesn't use any either
Attachment #9296112 - Flags: review?(mkmelin+mozilla) → review+
Assignee: nobody → acelists
Status: NEW → ASSIGNED
Target Milestone: --- → 107 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/578348d9bc99
Add missing call to Services.startup.trackStartupCrashEnd(). r=mkmelin

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

Ok, thanks.

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

Attachment

General

Creator:
Created:
Updated:
Size: