Issue 80862 - OOo closes abruptly when closing Internet Explorer (IE)
Summary: OOo closes abruptly when closing Internet Explorer (IE)
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.2.1
Hardware: PC Windows, all
: P3 Trivial (vote)
Target Milestone: OOo 3.1
Assignee: thorsten.martens
QA Contact: issues@framework
URL:
Keywords:
: 83333 (view as issue list)
Depends on:
Blocks:
 
Reported: 2007-08-20 18:54 UTC by gnustavo
Modified: 2009-12-31 18:42 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
ZIP containing a CSV file generated by procmon (24.46 KB, application/x-compressed)
2007-08-20 18:55 UTC, gnustavo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description gnustavo 2007-08-20 18:54:54 UTC
This problem occurs in some Windows machines but not in others.  It
also only occurs with IE.  Using firefox I cannot reproduce it.  So
far I'm unable to figure out what makes these machines susceptible.

The problem is easily reproduced:

- Fire up Internet Explorer
- Open any page containing a link to a OOo file (.odt, .ods, whatever)
- Click on the link and wait for OOo to open the document
- Close the IE window and see that the OOo window closes abruptly shortly thereafter

This is a problem because some applications use IE to open any HTTP
link.  For example, when a user reads an email in Outlook 2000 and
clicks on a link to a OOo file, Outlook fires up an IE process to open
the link.  Then IE fires up an OOo instance to open the file.  Then IE
exits and causes OOo to close too in a fraction of a second, leaving
no time for the user to actually read the document. So far, we're
telling the users to either switch to firefox as the default browser
or to copy the link URL and paste it manually in a IE windows that can
be left open until after reading the document.


I've seen the problem in a few machines.  This is the configuration of
a particular one:

	CPU: Pentium 4 3.00GHz
	RAM: 256MB
	OS: Windows XP Professional SP2 (Portuguese)
	IE: 6.0.2900.2180.xpsp_sp2_gdr.070227-2254
	OOo: 2.2.1 (Portuguese language pack)

I'm going to attach a file generated by procmon
(http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx)
which captured the syscalls and registry activities of the processes
involved: iexplore.exe and soffice.bin.  (There were also a
soffice.exe process but procmon didn't catch any activity from it.)  I
started the capture when the IE and OOo windows were already open,
just before I closed IE via "File -> Exit".

When I run procmon on a machine that doesn't suffer from this problem
I don't see any activity from the OOo processes.


Just before submitting this issue I upgraded IE to version 7.0.5730.11
and tried again.  The problem still happens with IE7.

Gustavo.
Comment 1 gnustavo 2007-08-20 18:55:55 UTC
Created attachment 47654 [details]
ZIP containing a CSV file generated by procmon
Comment 2 aladdin2k7 2008-01-18 14:37:29 UTC
The problem is easily reproduced:

- Fire up Internet Explorer
- Open any page containing a link to a OOo file (.odt, .ods, whatever)
- Click on the link and wait for OOo to open the document
- Close the IE window and see that the OOo window closes abruptly shortly thereafter

I confirm this issue with  :
- I.E 6.0.2900.2180.xpsp_sp2_gdr.070227-2254 and 2.3.1
- I.E 6.0.2900.2180.xpsp_sp2_gdr.070227-2254 and 2.4 build OOH680_m2

Same behaviour when :
You click to a link with OpenDocument in Outlook.
You click to a link with OpenDocument in Word, Excel, Powerpoint

=> They all go throw I.E 6.0 so I was wondering how the closing in OOo is handled ?

I think this issue is linked to the problem with target blank and IE, please see
: http://www.openoffice.org/issues/show_bug.cgi?id=83333

Maybe I.E starts a process to load OOo and then the process stop, OOo catch the
SIGTERM, SIGINT and close directly ?

Any tips ?
Comment 3 kpalagin 2008-01-27 19:10:17 UTC
Can't reproduce using 2.3.1 on WinXP - closing IE with .odf document open does 
not affect any other OpenOffice windows.

gnustavo,aladdin2k7,
please specify if you can repro the problem with 2.3.1 or latest dev builds 
(from http://download.openoffice.org/680/index.html?intcmp=1235)
Comment 4 aladdin2k7 2008-01-28 11:52:44 UTC
kpalagin :

- I.E 6.0 problem occurs when you click on a link with target=_blank (please
check #83333)

- Same behaviour when :
You click to a link with OpenDocument in Outlook.
You click to a link with OpenDocument in Word, Excel, Powerpoint.
Comment 5 aladdin2k7 2008-02-05 16:48:02 UTC
I reproduce it : closing IE 6.0 with .odf document open does close OOo.

Using OOo 2.3.1 and OOo-dev 2.4 (OOH680_m4)
Comment 6 netforce1 2008-04-18 20:36:29 UTC
I can confirm this is still an issue for OOo 2.4. I can reproduce it on my
workstation (WinXP SP2, IE7) as well as on a virtual machine (WinXP SP2, IE6).
One of our customers is also experiencing this problem on Win2k with IE6. 
It seems that the Office process is run as a child of the IE process, because
the document will always be opened in a separate frame, even if there is
currently a frame open with only an empty document.
Comment 7 thorsten.martens 2008-04-21 10:16:13 UTC
TM->MAV: reproducible in a m9 build. Please have a look, thanks !
Comment 8 mikhail.voytenko 2008-04-23 16:35:31 UTC
The problem seems to be that the IE uses the OOo as OLE link server in this
case. And let the server be closed when IE is closed.
Comment 9 mikhail.voytenko 2009-01-09 10:38:19 UTC
IE does not close the link explicitly in this case, so the document should stay
alive. Fixed in mav44 cws.
Comment 10 mikhail.voytenko 2009-01-16 14:38:39 UTC
mav->tm: Please verify the issue.
Comment 11 thorsten.martens 2009-01-27 13:23:52 UTC
checked and verified in cws mav44 -> OK !
Comment 12 aladdin2k7 2009-02-09 16:05:03 UTC
Will be released for 3.2 according to EIS[1] ?

[1]
https://tools.services.openoffice.org/EIS2/cws.ShowCWS?logon=true&Id=7703&Path=DEV300%2Fmav44
Comment 13 aladdin2k7 2009-02-23 16:24:25 UTC
Thanks ! Works with OOO310_m2.

P.S = Please close related issue 83333.
Comment 14 thorsten.martens 2009-04-30 11:02:48 UTC
closed
Comment 15 Mechtilde 2009-12-31 18:42:53 UTC
*** Issue 83333 has been marked as a duplicate of this issue. ***