Hi,
in general, OOo indeed crashes when you get an unexpected connection
closure, please check, if you get a core.
If OOo does not crash, it may also be possible, that the office
terminates faster than it can put the reply for terminate on the wire.
AFAIK the office does not wait for remote connections to be dropped
before it terminates.
If the latter is the case, this is difficult to fix. I'd try to ignore
the disposed exception on terminate. Another (more complicated)
workaround can be, that you implement a component inside the office,
which does the terminate call on the desktop delayed (by creating an own
thread that waits form some milliseconds), but that sounds overkill to me.
Bye,
Jörg
Andrew Z wrote:
Hello,
I am having strange problems with PyUNO and OOo 2.0.1rc1 on Linux. In
some situations, I get the following error on desktop terminate():
"uno.com.sun.star.lang.DisposedException: URP_Bridge : disposed\n(tid=3)
Unexpected connection closure"
Observations:
- The unexpected closure happens reliably with Xvfb and on a warm start.
- The closure does not happen with Xvfb on a cold start (first attempt).
- The closure does not happen with Xvfb on a warm start if Python sleeps
2 seconds before terminate().
- The closure does not happen with a real X server.
- Some documents do not cause the error (but observations above refer to
a blank Word document).
My simplified program simply opens OOo, opens a document, closes
document, and closes OOo. The program, scripts for running it through
Xvfb, and a
sample document are here:
http://narnia.dnsalias.org/ooo/uno-disconnect.zip (3.9KB)
The purpose of the full version of my program is automating testing of
OpenOffice.org itself, and unfortunately, the "unexpected closure" is
the same error PyUNO gives when OpenOffice.org crashes.
Is this unexpected closure problem the fault of OOo, PyUNO, or my
program? How can it be fixed?
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]