gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-bugs] <bug>: Error while trying to write letter


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] <bug>: Error while trying to write letter
Date: Thu, 28 Jan 2010 16:16:17 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hello Marc,

I am currently at a loss as to what to try next.

Considering that I am on an up to date Debian Squeeze just
as you are there must be some intricate and subtle
difference in what interdependant packages are installed on
our machines -- because for me this works just fine again.

Can I suggest as a workaround:

1) file a bug on launchpad and attach all the facts we have
   gathered so far so this issue does not get lost

        Please do report back on its status every once in a
        while.

2) With GNUmed 0.6 switch your template to LaTeX.

        I know this is a large change to ask of you but it's the
        only solution I see right now.

Let's have a look at the log file once more:

> 2010-01-28 14:35:18  DEBUG     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::init_ooo() 
> #302): python UNO bridge successfully initialized

The Python UNO connector is imported just fine.

> 2010-01-28 14:35:18  DEBUG     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::__init__() 
> #322): pipe name: uno-gm2ooo-438974111813
> 2010-01-28 14:35:18  DEBUG     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::__init__() 
> #323): startup command: oowriter -invisible -norestore 
> -accept="pipe,name=uno-gm2ooo-438974111813;urp"
> 2010-01-28 14:35:18  DEBUG     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::__init__() 
> #324): remote context URI: 
> uno:pipe,name=uno-gm2ooo-438974111813;urp;StarOffice.ComponentContext
> 2010-01-28 14:35:18  ERROR     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::_get_desktop()
>  #381): cannot connect to OOo server
> Traceback (most recent call last):
>   File "/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py", line 
> 379, in _get_desktop
>     self.remote_context = self.uri_resolver.resolve(self.remote_context_uri)
> com.sun.star.connection.NoConnectException: Connector : couldn't connect to 
> pipe uno-gm2ooo-438974111813(10)

No OOo server is running.

> 2010-01-28 14:35:18  INFO      gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::_get_desktop()
>  #382): trying to start OOo server
> 2010-01-28 14:35:18  DEBUG     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::_get_desktop()
>  #385): waiting 5.0 seconds for OOo to start up

Starting one.

> 2010-01-28 14:35:23  DEBUG     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::_get_desktop()
>  #394): connection seems established

Which seems to have succeeded.

> 2010-01-28 14:35:23  DEBUG     gm.forms 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py::open_document()
>  #355): /home/marc/.gnumed/tmp/gm-O-Template-O1ylXD.ott -> 
> file:///home/marc/.gnumed/tmp/gm-O-Template-O1ylXD.ott

It creates an OOo compatible file handle.

> 2010-01-28 14:35:24  DEBUG     gm.gui 
> (/home/marc/gnumed-src/gnumed/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #49): unhandled exception caught:
> Traceback (most recent call last):
>   File "/home/marc/gnumed-src/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py", 
> line 939, in __on_new_letter
>     gmFormWidgets.print_doc_from_template(parent = self, keep_a_copy = True, 
> cleanup = _cfg.get(option = 'debug'))
>   File 
> "/home/marc/gnumed-src/gnumed/gnumed/Gnumed/wxpython/gmFormWidgets.py", line 
> 41, in print_doc_from_template
>     return print_doc_from_ooo_template(template = template)
>   File 
> "/home/marc/gnumed-src/gnumed/gnumed/Gnumed/wxpython/gmFormWidgets.py", line 
> 127, in print_doc_from_ooo_template
>     if not doc.open_in_ooo():
>   File "/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py", line 
> 414, in open_in_ooo
>     self.ooo_doc = ooo_srv.open_document(filename = self.template_file)
>   File "/home/marc/gnumed-src/gnumed/gnumed/Gnumed/business/gmForms.py", line 
> 357, in open_document
>     doc = self.desktop.loadComponentFromURL(document_uri, "_blank", 0, ())
> com.sun.star.lang.DisposedException: URP_Bridge : disposed
> (tid=3) Unexpected connection closure

But then the connection is established is not there anymore.

Is there a setting in OOo to allow or deny connections ?

One more idea:

        go to client/business/gmForms.py

        comment out the try: except: block inside cmOOoConnector.cleanup()

But I doubt it will make a difference.

All the reports on the web say that the error message you
report comes from OOo crashing.

Do you happen to have OOo already running when you try to
generate a letter ? If so try without OOo already running...

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]