Re: [udk-dev] PyUNO: Unexpected connection closure

2005-12-07 Thread Stephan Bergmann

Andrew Z wrote:


Thanks for the core tip: I didn't think of it.  In fact, I did get a 
core with the following backtrace, so I should file a bug report in OOo?


Yes, please file an issue (you can assign it to me, sb), and please 
include the detailed description of how to reproduce it.


Thanks,
-Stephan

#0  0xb7597e20 in uno_type_isAssignableFromData () from 
/opt/openoffice.org2.0/program/libuno_cppu.so.3
#1  0xb759b9a8 in uno_type_isAssignableFromData () from 
/opt/openoffice.org2.0/program/libuno_cppu.so.3
#2  0xb75a30b7 in uno_type_any_assign () from 
/opt/openoffice.org2.0/program/libuno_cppu.so.3
#3  0xb4280f45 in component_getFactory () from 
/opt/openoffice.org2.0/program/acceptor.uno.so
#4  0xb27eb22a in component_getFactory () from 
/opt/openoffice.org2.0/program/remotebridge.uno.so
#5  0xb27d2f29 in component_canUnload () from 
/opt/openoffice.org2.0/program/liburp_uno.so
#6  0xb27d09a4 in component_canUnload () from 
/opt/openoffice.org2.0/program/liburp_uno.so
#7  0xb27c68d5 in component_canUnload () from 
/opt/openoffice.org2.0/program/liburp_uno.so
#8  0xb73f02f7 in osl_yieldThread () from 
/opt/openoffice.org2.0/program/libuno_sal.so.3

#9  0x00d65b80 in start_thread () from /lib/libpthread.so.0
#10 0x00bd69ce in clone () from /lib/libc.so.6

Andrew


Joerg Budischewski wrote:

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?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [udk-dev] [pyUNO]Unexpected connection closure

2005-08-10 Thread Joerg Budischewski

Hi,

the general reason for this issue is that the server process has 
crashed, please check this.


You might consider using 
http://udk.openoffice.org/python/oood/index.html, which at least 
ensures, that you can continue after a crash.


bye,

Joerg

Laurent Godard wrote:

Hi all

OOo1.9.122

I use pyUNO but do not know if it is only python related

i created a massive document converter (as OOoConv) using xml-RPC and 
some nice features


I convert the documents by remotely (localhost though) scripting an OOo 
instance (1 to 3 running simultaneously) though pyUNO


Using OOo1.1.4, all seems to run correcttly, no problem

Using OOo1.9.122, lead to some messages, randomely after 20 to 200 
conversions
uno.com.sun.star.lang.DisposedException, URP_Bridge : disposed\n(tid=6) 
Unexpected connection closure


i tried in the code to kill and restart OOo and connection, but that's 
the same


Are there any know issue woith OOo2 regarding Unexpected connection 
closure ?


Feel free to ask for more details

Laurent





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [udk-dev] [pyUNO]Unexpected connection closure

2005-08-10 Thread Laurent Godard

HI joerg

the general reason for this issue is that the server process has 
crashed, please check this.




i will double check but all the OOo session is still active when it 
occurs. Can it be a race condition ?


You might consider using 
http://udk.openoffice.org/python/oood/index.html, which at least 
ensures, that you can continue after a crash.




well, i used it but had some troubles running it out of the box (could 
not re-establish connection - said it was still connected) - I posted there


That's why i decided to implement the same things by myself
multiple OOo session running
feeding a queue
these sessions consume the queue
the sessions an be killed and relaunched (but does not influence the 
problem)



What i do not understand is that the conenction seems to be lost,without 
any crash and not on the same action (loading the same file). this 
appears ramdomly. Sounds like some kind of race condition. Is it possible ?


BTW, joerg
thanks a lot for your response
I'll investigate further and probably post the code on a svn anyway

Laurent

--
Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org
Indesko  http://www.indesko.com
Nuxeo CPS  http://www.nuxeo.com - http://www.cps-project.org
Livre Programmation OpenOffice.org, Eyrolles 2004

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]