Closed
Bug 14146
Opened 25 years ago
Closed 25 years ago
[PP, BLOCKER, MLK] GFX combo boxes cause zombie windows
Categories
(MailNews Core :: Composition, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M10
People
(Reporter: pmock, Assigned: dcone)
References
Details
(Whiteboard: Fix needs to go onto M10 branch)
Build tested:
Mac Seamonkey build 1999-09-16-08-m11 installed on - G3/400 MacOS 8.5.1, G3/400
MacOS 8.6 and, PPC 7500/100 MacOS 8.5.1.
Description:
The mail compose window fails to close when you click on the window close box or
using the File|Close menu option. The application is not frozen but you can not
type in the compose window and the menus become scrambled (partial listing). The
behavior of the problem will give people the impression that the application is
frozen when the compose window does not render properly and display an empty
window.
Work around: close the all the other open apprunner windows (browser, messenger,
etc). The compose window will close.
Steps to reproduce problem:
(There are a couple of ways in seeing this problem)
0) I had my user_pref for compose_html set to true.
1) Start Apprunner
2) Open the Messenger window
3) Click the New Msg button
A HTML mail compose widnow appears
4) Click on the close button or use the File menu 'close' option.
The window does not close
Actual results:
The windows does not close. It looks like the application has locked up. You
can switch to the browser or messenger window. You can start another mail compose
window.
Expected results:
The mail compose window should close.
Other platforms tested:
This problem occurs only on the Mac. It does not occur on win32 1999-09-16-08-
m11 build or on linux 1999-09-16-08-m11 build.
Additional information:
This problem does not occur if you start apprunner with the compose mail
parameter to bring up only a mail compose window.
This problem is reproducible if you start apprunner with '-mail' parameter or
just starting the browser.
This bug is different from bug 12994 because you don't type anything in the
compose window. You bring it up then close it (at least try to).
I tried to set the focus in the email address field but it does not appear to
have an effect.
Comment 2•25 years ago
|
||
cc danm, you might contact him directly, since he gets more bug notifications
than he can keep up with.
Updated•25 years ago
|
Assignee: ducarroz → rods
Severity: major → blocker
Summary: [PP] Regression - mail compose windows fails to close → [PP, BLOCKER] Regression - mail compose windows fails to close
Target Milestone: M11
Comment 3•25 years ago
|
||
If I remove all the tag html:select from the addressing toolbar (I deactivate the corresponding JS), I don't see the
problem anymore. Something going wrong with dropdown list on Mac! Reassign to rods.
Updated•25 years ago
|
Assignee: rods → dcone
Comment 4•25 years ago
|
||
Don, Mac specific combobox problem, can you take a look?
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Updated•25 years ago
|
Summary: [PP, BLOCKER] Regression - mail compose windows fails to close → [PP, BLOCKER, MLK] GFX combo boxes cause zombie windows
Comment 7•25 years ago
|
||
It looks like nsHTMLInputElement are being leaked here, possibly because the
nsComboboxControlFrame is holding extra references to them.
Comment 8•25 years ago
|
||
I think I've figured out part of this.
Please see bug #14687
Comment 9•25 years ago
|
||
I found one place where we weren't doing a release and in the testing I did it
didn't hit that code. Also, I walked through the selecting of an item in the
combobox and couldn't find where we where addrefing and then not releasing. So I
don't yet understand why Simon thinks we are holding onto a reference. Simon,
where did you find that?
Comment 10•25 years ago
|
||
First, I know that we're leaking nsHTMLInputElements, because I had a breakpoint
in the dtor, and never hit it.
I'm a little concerned by the NS_ADDREFs on lines 1230 and 1243 of
nsComboboxControlFrame.cpp, because NS_NewHTMLInputElement() returns an element
whose refCount is already 1, and there is no corresponding release. But even if I
comment these out, the nsHTMLInputElements don't get freed.
Comment 11•25 years ago
|
||
Thanks for finding the addrefs. When I comment out the two extra addrefs I get
breaks points fired in the nsHTMLInputElement and one in the
nsHTMLSelectElement.
Comment 12•25 years ago
|
||
With the extra AddRefs commented out on Mac, the nsHTMLInputElements do indeed
get released. The zombie window, however, remains, even when the user has not
clicked on the combobox.
Comment 13•25 years ago
|
||
How are we doing on this bug?
Comment 14•25 years ago
|
||
I still have the problem with today's build! This bug should be a M10!
Comment 15•25 years ago
|
||
*** Bug 15024 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 16•25 years ago
|
||
I think this crashes because of the nsDeleteObserver.. Pierre says he has a fix
so I am waiting on that to see if that clears this up.
Also the leak fixes seems to make this bug crash less.. not as frequent, but I
can still get a crash so I will wait for the other fix to see how that does.
Comment 17•25 years ago
|
||
Could you try the following? In nsMacEventHandler::~nsMacEventHandler() and
nsMacEventHandler::NotifyDelete(void* aDeletedObject), do:
mLastWidgetPointed = nsnull;
mLastWidgetHit = nsnull;
Comment 18•25 years ago
|
||
I forgot to mention that the above was for the crash only, not for the zombie
window. For more info, look under #14775.
Assignee | ||
Comment 19•25 years ago
|
||
The following HTML causes a crash due to the nsDeleteObserver destruction if you
click on the combobox only. It wont crash if you dont click on box.
Pierre can you look at this and see if you see anything obvious in the
deleteObserver class. Also are there any Mac tools the help detect leaks.
<html>
<head>
<title>Mac Combo Box Test</title>
</head>
<body>
<H1> Mac Combo Box Test</H1>
<form>
<select Name="hcolor">
<option> Black
<option> Blonde
<option> Brown
<option> Red
<option> Blue
<option> Gray
<option> Yellow
<option> Sandy
<option> messy
<option> stripped
</select>
</form>
</body>
</html>
Comment 20•25 years ago
|
||
I have a fix for #14775: it doesn't crash anymore with the Editor, the Installer
or the combo boxes. However, it did not fix the bug with zombie windows described
here. That's a separate problem... I'll have a look.
Updated•25 years ago
|
Whiteboard: Fix in hand
Comment 21•25 years ago
|
||
I have a fix for the zombie windows too: WidgetToScreen and ScreenToWidget are
leaking the parent window when they go into recursion.
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 22•25 years ago
|
||
Fixed
Comment 23•25 years ago
|
||
*** Bug 14396 has been marked as a duplicate of this bug. ***
Updated•25 years ago
|
Status: RESOLVED → REOPENED
Comment 24•25 years ago
|
||
Reopening to get fixes checked into the M10 branch. Pierre, if you have done
this, then please re-close the bug.
Updated•25 years ago
|
Whiteboard: Fix in hand → Fix needs to go onto M10 branch
Target Milestone: M11 → M10
Updated•25 years ago
|
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Comment 25•25 years ago
|
||
mr. leaf migrated pierre's changes to the m10 branch.
some reviewer eyes on his merge would be a good deed.
http://cvs-mirror.mozilla.org/webtools/bonsai/cvsquery.cgi?treeid=default&module
=SeaMonkeyAll&branch=SeaMonkey_M10_BRANCH&branchtype=match&dir=&file=&filetype=m
atch&who=&whotype=match&sortby=Date&hours=2&date=all&mindate=&maxdate=&cvsroot=%
2Fcvsroot
marking fixed so this gets in the m10 testing queue
Comment 26•25 years ago
|
||
*** Bug 15444 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 27•25 years ago
|
||
Verified as fixed using the Mac commercial build 1999-10-01-20-m10 build.
I can successfully close a messenger compose window, account set up dialog, and
new folder dialog.
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•