Closed Bug 402497 Opened 17 years ago Closed 2 years ago

"WARNING: nsAppShell::Exit() called redundantly" on shutdown

Categories

(Core :: Widget, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jruderman, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(2 files)

1. Launch Firefox (Mac trunk debug) (from the command line).
2. Cmd+Q.

Result: during shutdown, the following warning appears:

WARNING: nsAppShell::Exit() called redundantly: file /Users/jruderman/trunk/mozilla/widget/src/cocoa/nsAppShell.mm, line 560

(This used to be an assertion, but it was downgraded to a warning in bug 396833.)
This problem is very old, and (probably) cross-platform.  (At some
point I'll use the tryserver to do a Linux build to find out for
sure.)

In any case it shouldn't block bug 395397, because that bug didn't
cause this problem (it just started complaining about it).
No longer blocks: 395397
Here are traces of both of the calls to nsAppShell::Exit() that are
made on the trunk (in Minefield) on OS X.

A bit to my surprise, I didn't find this problem on the 1.8 branch (in
Firefox).  So it seems to be trunk-only.

I'll try to do a trunk build (with debug symbols) on Linux, and see
what I get.
Here are traces of what appear to be exactly the same two calls, this
time in Minefield (a debug build) on Linux.  So I was right that this
is a cross-platform bug.
Assignee: joshmoz → nobody
Component: Widget: Cocoa → Widget
OS: Mac OS X → All
QA Contact: cocoa → general
A clean Mac trunk Thunderbird debug build outputs the following on shutdown:

WARNING: nsAppShell::Exit() called redundantly: file /Users/skywalker/Desktop/Mozilla/cvs/mozilla/widget/src/cocoa/nsAppShell.mm, line 604
Blocks: tb-noise
I observe the same phenomenon on a clean trunk Firefox build on OS X.

WARNING: nsAppShell::Exit() called redundantly: file /Users/Sora/mozilla/src.clean/widget/src/cocoa/nsAppShell.mm, line 782

followed by

nsStringStats
 => mAllocCount:          19125
 => mReallocCount:         2894
 => mFreeCount:           12447  --  LEAKED 6678 !!!
 => mShareCount:          12249
 => mAdoptCount:           1236
 => mAdoptFreeCount:       1233  --  LEAKED 3 !!!

This happens only when quitting Firefox with Cmd+Q from Cmd+Tab while Firefox does not have a focus and does not happen when quitting Firefox with Cmd+Q when Firefox has a focus.
(In reply to comment #5)
> This happens only when quitting Firefox with Cmd+Q from Cmd+Tab while Firefox
> does not have a focus and does not happen when quitting Firefox with Cmd+Q when
> Firefox has a focus.

So, it sounds like the Steps To Reproduce have changed here, right?

(Jesse & Gary, can you still reproduce this bug using your original steps as in Comment 0 & Comment 4?)
Yes, I still see this warning with the steps in comment 0.  So if Ryo only hits this with more complicated steps, he might be hitting a different bug.  Or something.

No need to leave an ancient warning spam bug open, in my opinion.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
See Also: → 1582311
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: