[Libreoffice-bugs] [Bug 134106] Binary URP bridge disposed during call to ServiceManager.createInstanceWithContext

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 25 17:46:39 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=134106

Jan-Marek Glogowski <glogow at fbihome.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
                 CC|                            |sbergman at redhat.com,
                   |                            |thb at libreoffice.org
           Priority|medium                      |highest

--- Comment #2 from Jan-Marek Glogowski <glogow at fbihome.de> ---
So somehow my new internal / unpublished XDesktopInternal interface uncovered,
what looks to me like a general UNO bug and breaks the (Py?)UNO interface
backwards compatibility. I don't know for sure, this bug is Python only, but
from my debugging I guess the LO side of the UNO bridge is broken. So my
conclusion is, that change basically breaks every external / remote UNO user,
so I think that is a critical bug.

AFAIK this error just happens, if you have an independent pyuno, like one from
your distro and use the system python with that, because the LO python in
instdir has access to the up-to-date introspection data, so it can use
"cheaper" UNO calls and "somehow" work. Any you don't need "--impress".

The gist of my current logging is:

2020-06-25 17:28:36,899 [CALL,tid 20022]: try    
py->uno[0x5576d145b500].createInstanceWithContext((string)"com.sun.star.frame.Desktop",
(com.sun.star.uno.XInterface)0x5576d1453e88)
2020-06-25 17:28:36,900 [CALL,tid 20022]: success
py->uno[0x5576d145b500].createInstanceWithContext()=(com.sun.star.uno.XInterface)0x7fdc64003ff8

debug:20022:20022: any2PyObject <Any: (com.sun.star.uno.XInterface)
0x7fdc64003ff8>
debug:20022:20022: PyUNO_new <Any: (com.sun.star.uno.XInterface)
0x7fdc64003ff8>
debug:20022:20022: createInstanceWithArguments in arglen: 1

debug:20022:20022: com.sun.star.uno.XInterface::queryInterface 0x7ffd60a16060
debug:20022:20022: com.sun.star.uno.XInterface::queryInterface 0x7ffd60a15cf0
debug:20022:20022: com.sun.star.lang.XTypeProvider::getTypes 0x7ffd60a15d80
debug:20022:20022: 5577084f1000;gcc3[0];1ed340439f4e468c91eaf8221bbbda4
debug:20022:20022: com.sun.star.lang.XTypeProvider::getTypes
2020-06-25 17:28:36,901 [CALL,tid 20022]: error 
py->uno[0x5576d145b500].createInstanceWithContext =
(com.sun.star.uno.RuntimeException){ (com.sun.star.uno.Exception){ Message =
(string)"Binary URP bridge disposed during call", Context =
(com.sun.star.uno.XInterface)0x5576d1442bd0 } }
debug:20022:20022: any2PyObject <Any: (com.sun.star.uno.RuntimeException)
0x5576d14545d0>
debug:20022:20022: createInstanceWithArguments in arglen: 1
Traceback (most recent call last):
  File "/tmp/test.py", line 14, in <module>
    desktop = connectToLO()
  File "/tmp/test.py", line 12, in connectToLO
    return smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", ctx)
__main__.RuntimeException: Binary URP bridge disposed during call

I won't spend more time on this, because digging through all this already feels
like a rabbit hole.

Or my conclusion is wrong, which based on my current level of understanding is
quite possible...

BTW: the debugging info in pyuno/README is not up to date. There is also
PYUNO_LOGLEVEL=ARGS.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200625/a19676c6/attachment.htm>


More information about the Libreoffice-bugs mailing list