Closed Bug 129347 Opened 23 years ago Closed 23 years ago

Sending a doc crashes SMAPI-enabled apps

Categories

(MailNews Core :: Simple MAPI, defect, P1)

x86
Windows XP
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: trix, Assigned: rdayal)

References

Details

(Keywords: crash, Whiteboard: [ADT1] ETA - 4/16)

Attachments

(2 files)

Sending a document from a SMAPI-enabled app causes that app to stop responding/fail/crash. STEPS: 1. Either enable latest mozilla or netscape trunk build to be the default mail app. 2. Close mozilla/netscape. 3. Open Wordpad/MSWord/Excel and try to send a document as an attachment. RESULTS: The document is sent successfully, but the app either fails to respond/hangs/crashes.
Keywords: nsbeta1+
nominating to nsbeta1+ since this causes app to crash/hang.
Testing on Windows 98, with Mozilla Trunk, Build 2002030604, i can send documents without crashing Wordpad/Explorer. With Quicklaunch and without. P.S: Thanx for fixing Bug 122725, so i can test it.
(trix, nominate is nsbeta1 only so I'm correcting the keyword. Mail triage team will add +/- accordingly.)
Keywords: nsbeta1+crash, nsbeta1
Keywords: nsbeta1nsbeta1+
Priority: -- → P1
Target Milestone: --- → mozilla1.0
What is seen here is that the calling MAPI client apps hang after the send (not really crash). This is a critical problem and is happening because the call from mapi32.dll to Mozilla waits for a response back from Mozilla after Send completion. If this response is not returned the call will keep waiting thus hanging the calling application. The mapihook part in Mozilla gets the Send call from mapi32.dll and calls MsgCompose and waits on the Send Listener to be called back. The Send Listener is called from MsgCompose from several places. It seems like in some cases (maybe new cases if changes had been done to Msg Compose) the listener is not getting called. Most of MS Office apps create a temporary file for the file that is open when a MAPI send is done in order to take care of any unsaved changes in the open file. The mailnews Compose and Send interfaces had been enhanced to take in a Real filename besides the filename of the file to be read (in this case the temporary filename) for the contents. When the MAPI send call returns the MS Office apps delete the temporary file. This is the reason we wait in mapi32.dll for Send to complete before returning the MAPI call back to the MAPI client (MS Office) apps. However in cases like these or if either Mail or Mozilla crashes this can hang the calling MAPI client application. An alternative to this, besides making sure that the SendListener is called in all cases as mentioned above, is that the temporary file passed is copied to another file with the real file name in the temp directory and that is used to make the MsgCompose Send call. Thus the Send call to Mozilla will be asynchronous and will become independent of Mozilla. This has some performance impact since we make a copy of the temporary file but this will more or less guarantee that the calling MAPI clients donot hang or suffer any data loss. This will also make MAPI sort of independent of any future Compose changes too.
Severity: major → critical
Status: NEW → ASSIGNED
Discussed in Mail News bug meeting. Decided to ADT1 this bug.
Whiteboard: [ADT1]
*** Bug 136448 has been marked as a duplicate of this bug. ***
Whiteboard: [ADT1] → [ADT1] ETA - 4/13
Comment on attachment 78748 [details] [diff] [review] changes as per comment # 4 above >@@ -180,8 +180,9 @@ > //Clear the subject > document.getElementById("msgSubject").value = ""; > >+ > SetContentAndBodyAsUnmodified(); Please remove that blank line before check in. R=ducarroz
Attachment #78748 - Flags: review+
Comment on attachment 78748 [details] [diff] [review] changes as per comment # 4 above sr=mscott
Attachment #78748 - Flags: superreview+
Thank you very much Scott for your sr and JF for your r.
Tested optimized build with rajiv's fix. Looks good. Docs are sent successfully, the call that is expected back to the app is received and the app closes the session. Tested on Word, Excel, Wordpad, and Windows Explorer.
could you check this into the trunk for a day. What other message compose operations (not related to MAPI) need to be tested?
Keywords: adt1.0.0
Pls Note: You can mark this one as Resolved/Fixed once it hits the trunk. The ADT looks for ALL bugs with adt1.0.0 keyword (Reolved or Open). When bugs are fixed on the 1.0 branch, pls replace adt1.0.0+ with fixed1.0.0 keyword. After QA has verified the fix is in the branch, pls replace fixed1.0.0, with verified1.0.0.
Whiteboard: [ADT1] ETA - 4/13 → [ADT1] ETA - 4/16
adt1.0.0+ (on ADT's behalf) for checkin into the 1.0 branch. Pls check this in to the branch today. After it is checked in, pls add fixed1.0.0. Once QA has verified it on the branch, then add verified1.0.0.
Keywords: adt1.0.0adt1.0.0+
Checked in to the trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Changes to Makefile.in for any Windows build system using gmake
Comment on attachment 79441 [details] [diff] [review] Makefile.in changes for gmake builds on windows sr=mscott
Attachment #79441 - Flags: superreview+
Comment on attachment 78748 [details] [diff] [review] changes as per comment # 4 above a=asa (on behalf of drivers) for checkin to the 1.0 branch
Attachment #78748 - Flags: approval+
Comment on attachment 79441 [details] [diff] [review] Makefile.in changes for gmake builds on windows a=asa (on behalf of drivers) for checkin to the 1.0 branch
Attachment #79441 - Flags: approval+
looked at 2002041814-trunk build. Mapi works on Winword, Excel, & from Windows Explorer. But no Compose window appears when trying to send a document from Wordpad. This is always reproducible. Will continue to evaluate whether this is OS-specific. Since problem was found on XP, will look at W2k.
I found Send from Wordpad working fine, displaying the Compose window and then the mail send, using both Netscape and Mozilla 20020418 trunk builds on my WinNT wkstn machine. Also, I have already checked this into 1.0 branch. Trix, can u please also try tomorrow's branch build on both Win2k and XP ? thanks.
Keywords: fixed1.0.0
same problem still occurs with Wordpad using trunk build 2002042303. Sending a document from Wordpad launches the profile manager, but no Compose window is displayed.
Since the problem occuring has nothing to do with a crash or hang and seems isolated to WIN XP only. Going to verify this bug and open a new bug specific to the problem with Wordpad. verified on 2002041806-trunk and 2002042303-1.0.0 branch
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: