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

--- Comment #4 from [email protected] ---
Comment on attachment 124462
  --> https://bugs.documentfoundation.org/attachment.cgi?id=124462
Writer document with a single image.

See the attached document. Run office as a server:

/path/to/soffice
--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"

Then open your Python interpreter, and follow these steps:

>>> import uno
>>> local = uno.getComponentContext()
>>> resolver = 
>>> local.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",
>>>  local)
>>> context = 
>>> resolver.resolve("uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext")
>>> desktop = 
>>> context.ServiceManager.createInstanceWithContext("com.sun.star.frame.Desktop",
>>>  context)
>>> document = desktop.loadComponentFromURL("file:///path/to/foo.odt", 
>>> "_blank", 0, ())
>>> shapeenum = document.DrawPage.createEnumeration()
>>> shape = shapeenum.nextElement()
>>> sm = uno.getComponentContext().ServiceManager
>>> s = 
>>> sm.createInstanceWithContext("com.sun.star.drawing.GraphicExportFilter", 
>>> uno.getComponentContext())
>>> s.setSourceDocument(shape)
Segmentation fault: 11

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to