[Upstream] LibreOffice remote / python / UNO malfunctions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LibreOffice |
Fix Released
|
High
|
|||
libreoffice (Ubuntu) |
Fix Released
|
Undecided
|
Björn Michaelsen |
Bug Description
Binary package hint: libreoffice
running this:
soffice "--accept=
and also this:
#!/usr/bin/python
import uno
class test():
def __init__(self):
resolver = localContext.
ctx = resolver.resolve(
"uno:socket,
smgr = ctx.ServiceManager
print 'smgr'
desktop = smgr.createInst
"com.sun.
print 'desktop'
model = desktop.
vcl =
smgr.createInst
print vcl
# vcl.setValue(
if __name__ == "__main__":
print 'test'
test()
fails nastily :-) like this (different line numbers)
Traceback (most recent call last):
File "test.py", line 27, in <module>
test()
File "test.py", line 16, in __init__
desktop = smgr.createInst
__main_
the exception trace is:
Breakpoint 1, 0xb7a127e0 in __cxa_throw () from
/opt/OOInstall/
(gdb) bt
#0 0xb7a127e0 in __cxa_throw () from
/opt/OOInstall/
#1 0xb6c232eb in binaryurp:
/data/opt/
#2 0xb6c26c99 in binaryurp:
oid=..., type=..., member=..., inArguments=...)
at
/data/opt/
#3 0xb6c26be7 in binaryurp:
type=...)
at
/data/opt/
#4 0xb6c24561 in binaryurp:
at
/data/opt/
#5 0xb6c3eb7d in binaryurp:
/data/opt/
#6 0xb6c21f64 in binaryurp:
(pProxy=0x8118630)
at /data/opt/
#7 0xb7b3b925 in ?? () from
/opt/OOInstall/
#8 0xb7b3facd in ?? () from
/opt/OOInstall/
#9 0xb7b3fb4a in uno_Environment
/opt/OOInstall/
#10 0xb7b3fb7d in uno_Environment
/opt/OOInstall/
#11 0xb7b385a7 in ?? () from
/opt/OOInstall/
#12 0xb6c24504 in binaryurp:
at
/data/opt/
#13 0xb6c3eb48 in binaryurp:
/data/opt/
#14 0xb6c3e8c2 in binaryurp:
(pInterface=
at /data/opt/
#15 0xb6df7e91 in ?? () from /data/opt/
#16 0xb7b3b925 in ?? () from
/opt/OOInstall/
#17 0xb7b3facd in ?? () from
/opt/OOInstall/
#18 0xb7b3fb4a in uno_Environment
/opt/OOInstall/
#19 0xb7b3fb7d in uno_Environment
/opt/OOInstall/
#20 0xb7b385a7 in ?? () from
/opt/OOInstall/
#21 0xb6df8101 in ?? () from /data/opt/
#22 0xb6df6525 in ?? () from /data/opt/
#23 0xb6df7109 in ?? () from /data/opt/
#24 0xb7b5e099 in com::sun:
/opt/OOInstall/
#25 0xb7b33298 in uno_any_destruct () from
/opt/OOInstall/
#26 0xb7b5e2c6 in com::sun:
/opt/OOInstall/
#27 0xb7b63a02 in pyuno::
from /opt/OOInstall/
#28 0xb7ec2b40 in PyObject_Call (func=0xb7c6f130, arg=0xb7c325cc, kw=0x0) at
Objects/
#29 0xb7ede4d3 in do_call (f=0x80d1e3c, throwflag=0) at Python/ceval.c:4230
#30 call_function (f=0x80d1e3c, throwflag=0) at Python/ceval.c:4035
#31 PyEval_EvalFrameEx (f=0x80d1e3c, throwflag=0) at Python/ceval.c:2665
#32 0xb7ee3e2f in PyEval_EvalCodeEx (co=0xb7c28da0, globals=0xb7c6e35c,
locals=0x0, args=0xb7bd2378, argcount=1, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:3252
#33 0xb7ec7a07 in function_call (func=0xb7bdce2c, arg=0xb7bd236c, kw=0x0) at
Objects/
---Type <return> to continue, or q <return> to quit---
#34 0xb7ec2b40 in PyObject_Call (func=0xb7bdce2c, arg=0xb7bd236c, kw=0x0) at
Objects/
#35 0xb7ec39c0 in instancemethod_call (func=0xb7bdce2c, arg=0xb7bd236c, kw=0x0)
at Objects/
#36 0xb7ec2b40 in PyObject_Call (func=0xb7bcf89c, arg=0xb7c3e02c, kw=0x0) at
Objects/
#37 0xb7edc9c6 in PyEval_
arg=0xb7c3e02c, kw=0x0) at Python/ceval.c:3881
#38 0xb7ec491b in PyInstance_New (klass=0xb7c3aa4c, arg=0xb7c3e02c, kw=0x0) at
Objects/
#39 0xb7ec2b40 in PyObject_Call (func=0xb7c3aa4c, arg=0xb7c3e02c, kw=0x0) at
Objects/
#40 0xb7ede4d3 in do_call (f=0x805bc3c, throwflag=0) at Python/ceval.c:4230
#41 call_function (f=0x805bc3c, throwflag=0) at Python/ceval.c:4035
#42 PyEval_EvalFrameEx (f=0x805bc3c, throwflag=0) at Python/ceval.c:2665
#43 0xb7ee3fd9 in PyEval_EvalCodeEx (co=0xb7c2c578, globals=0xb7c6e35c,
locals=0xb7c6e35c, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:3252
#44 0xb7f13653 in PyEval_EvalCode (co=0xb7c2c578, globals=0xb7c6e35c,
locals=0xb7c6e35c) at Python/ceval.c:666
#45 0xb7f21b0c in run_mod (mod=<value optimized out>, filename=<value optimized
out>, globals=0xb7c6e35c, locals=0xb7c6e35c, flags=0xbfffefdc,
arena=
#46 0xb7f21fce in PyRun_FileExFlags (fp=0x8067ab0, filename=0xbffff2fd
"test.py", start=257, globals=0xb7c6e35c, locals=0xb7c6e35c, closeit=1,
flags=
#47 0xb7f2276b in PyRun_SimpleFil
optimized out>, closeit=1, flags=0xbfffefdc) at Python/
#48 0xb7f22d0a in PyRun_AnyFileEx
"test.py", closeit=1, flags=0xbfffefdc) at Python/
#49 0xb7f2c3a7 in Py_Main (argc=2, argv=0xbffff0c4) at Modules/main.c:599
#50 0x08048687 in main ()
and the exception site:
gdb) l
325 if (terminated_) {
326 throw css::lang:
327 rtl::OUString(
328 RTL_CONSTASCII_
329 "Binary URP bridge already disposed")),
330 static_cast< cppu::OWeakObject * >(this));
331 }
332 OSL_ASSERT(
333 return writer_;
Changed in libreoffice (Ubuntu): | |
assignee: | nobody → Björn Michaelsen (bjoern-michaelsen) |
Changed in df-libreoffice: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
Changed in libreoffice (Ubuntu): | |
status: | New → Fix Committed |
Changed in df-libreoffice: | |
status: | Confirmed → Fix Released |
running this:
soffice "--accept= socket, host=localhost, port=2002; urp;"
and also this:
#!/usr/bin/python
import uno
class test():
localContext = uno.getComponen tContext( ) ServiceManager. createInstanceW ithContext(
"com. sun.star. bridge. UnoUrlResolver" , localContext ) host=localhost, port=2002; urp;StarOffice. ComponentContex t" ) anceWithContext ( "com.sun. star.frame. Desktop" ,ctx) getCurrentCompo nent()
def __init__(self):
resolver = localContext.
ctx = resolver.resolve( "uno:socket,
smgr = ctx.ServiceManager
print 'smgr'
desktop = smgr.createInst
print 'desktop'
model = desktop.
vcl = smgr.createInst ance("com. sun.star. resource. VclStringResour ceLoader" ) "FileName" , "test")
print vcl
# vcl.setValue(
if __name__ == "__main__":
print 'test'
test()
fails nastily :-) like this (different line numbers)
Traceback (most recent call last): anceWithContext ( "com.sun. star.frame. Desktop" ,ctx) _.RuntimeExcept ion: Binary URP bridge disposed during call
File "test.py", line 27, in <module>
test()
File "test.py", line 16, in __init__
desktop = smgr.createInst
__main_
the exception trace is:
Breakpoint 1, 0xb7a127e0 in __cxa_throw () from /opt/OOInstall/ basis3. 4/program/ ../ure- link/lib/ libstdc+ +.so.6 basis3. 4/program/ ../ure- link/lib/ libstdc+ +.so.6 :Bridge: :getWriter (this=0xb6c9d9b0) at /data/opt/ libreoffice/ bootstrap/ clone/ure/ binaryurp/ source/ bridge. cxx:330 :Bridge: :sendRequest (this=0xb6c9d9b0, tid=..., oid=..., type=..., member=..., inArguments=...) libreoffice/ bootstrap/ clone/ure/ binaryurp/ source/ bridge. cxx:945 :Bridge: :makeReleaseCal l (this=0xb6c9d9b0, oid=..., type=...) libreoffice/ bootstrap/ clone/ure/ binaryurp/ source/ bridge. cxx:936 :Bridge: :freeProxy (this=0xb6c9d9b0, proxy=...) libreoffice/ bootstrap/ clone/ure/ binaryurp/ source/ bridge. cxx:500 :Proxy: :do_free (this=0x8118630) at /data/opt/ libreoffice/ bootstrap/ clone/ure/ binaryurp/ source/ proxy.cxx: 107 :(anonymous namespace) ::freeProxyCall back (pProxy=0x8118630) libreoffice/ bootstrap/ clone/ure/ binaryurp/ source/ bridge. cxx:97 basis3. 4/program/ ../ure- link/lib/ libuno_ cppu.so. 3 basis3. 4/program/ ../ure- link/lib/ libuno_ cppu.so. 3 _invoke_ v () from /opt/OOInstall/ basis3. 4/program/ ../ure- link/lib/ libuno_ cppu.so. 3 _invoke () from /opt/OOInstall/ basis3. 4/program/ ../ure- link/lib/ libuno_ cppu.so. 3 basis3. 4/program/ ../ure- link/lib/ libuno_ cppu.so. 3 :Bridge: :revokeProxy (this=0xb6c9d9b0, proxy=...) libreoffice/ bootstrap/ clone/ure/ binaryurp/ source/ bridge. cxx:495 :Proxy: :do_release (this=0x8118630) at /data/opt/ libreoffice/ bootstrap/ clone/u. ..
(gdb) bt
#0 0xb7a127e0 in __cxa_throw () from /opt/OOInstall/
#1 0xb6c232eb in binaryurp:
#2 0xb6c26c99 in binaryurp:
at /data/opt/
#3 0xb6c26be7 in binaryurp:
at /data/opt/
#4 0xb6c24561 in binaryurp:
at /data/opt/
#5 0xb6c3eb7d in binaryurp:
#6 0xb6c21f64 in binaryurp:
at /data/opt/
#7 0xb7b3b925 in ?? () from /opt/OOInstall/
#8 0xb7b3facd in ?? () from /opt/OOInstall/
#9 0xb7b3fb4a in uno_Environment
#10 0xb7b3fb7d in uno_Environment
#11 0xb7b385a7 in ?? () from /opt/OOInstall/
#12 0xb6c24504 in binaryurp:
at /data/opt/
#13 0xb6c3eb48 in binaryurp: