Closed Bug 25583 Opened 26 years ago Closed 26 years ago

crash sending message if mail/news window is closed

Categories

(SeaMonkey :: MailNews: Message Display, defect, P1)

x86
Windows NT

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: danm.moz, Assigned: mscott)

References

Details

(Keywords: crash, Whiteboard: [PDT+] expected fix: 02/15)

A crash that affects only compulsive neatnicks. But somehow it found me. Open messenger window. Punch "new message" button. Close messenger window. Type, type, type. Punch "send" button in new message. Mozilla visits its ancestors in this order: nsMsgStatusFeedback::setAttribute(nsIWebShell * 0x027f7290, const char * 0x019e9e20, const char * 0x019e9e18, const nsString & {...}) line 349 + 39 bytes nsMsgStatusFeedback::ShowStatusString(nsMsgStatusFeedback * const 0x02a621b0, const unsigned short * 0x03221030) line 222 nsSmtpProtocol::UpdateStatusWithString(unsigned short * 0x03221030) line 406 nsSmtpProtocol::UpdateStatus(int 5583081) line 398 nsSmtpProtocol::SendDataResponse() line 1077 nsSmtpProtocol::ProcessProtocolState(nsIURI * 0x03234784, nsIInputStream * 0x032356d8, unsigned int 245, unsigned int 44) line 1356 + 8 bytes nsMsgProtocol::OnDataAvailable(nsMsgProtocol * const 0x03235c70, nsIChannel * 0x03235a44, nsISupports * 0x03234784, nsIInputStream * 0x032356d8, unsigned int 245, unsigned int 44) line 172 + 32 bytes The crash line is rv = shell ? shell->GetContentViewer(getter_AddRefs(cv)) where shell is nonzero, but points to a deleted object. Apologies if this is a dupe. I couldn't find one in a short search.
QA Contact: lchiang → esther
Reassign to mscott, cc jefft. M14
Assignee: phil → mscott
Target Milestone: M14
Ugghh...this sucks....we are showing status information in the mailnews window about sending the message...but the message window has been closed behind us.. *sigh*
Yup....
Keywords: beta1
Putting on on PDT+ radar for beta1.
Whiteboard: [PDT+]
Adding "crash" keyword.
Keywords: crash
*** Bug 26467 has been marked as a duplicate of this bug. ***
Priority: P3 → P1
Whiteboard: [PDT+] → [PDT+] expected fix: 02/15
I thought this fix was going to be easy by just detecting that the window had been closed. However, after I did this I ran into more problems. We crash later on while attempting to add the sent message to your sent folder. Why? because our data sources associated with the window are being leaked. All of these problems are due to the fact that so many of our objects whose lifetime is bound to the mail 3-pane xul window are being leaked. I'm trying to track down the cause of that now. However, the ref counting logs all point at xpconnect as the source of the leak. But we know that can't be it. =)
I checked in a fix for this. When the msg 3 pane gets unloaded, I mark the status feedback object as closed so it won't try to set attributes on a webshell that is no longer there.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Using mozilla build 2000-02-16m14 on win98 and commercial builds 2000-02-16-08 on mac and linux this is fixed. Verified
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.