Description: In Ubuntu 20.04.1 LTS x86_64 , LibreOffice Version: 7.0.1.2 When opening libreoffice with libreoffice --accept="socket,host=localhost,port=2002;urp;" --norestore --nologo and then trying to open a Calc document throught he uno bridge, I get: com.sun.star.uno.RuntimeException: C++ code threw St9bad_alloc Steps to Reproduce: 1. libreoffice --accept="socket,host=localhost,port=2002;urp;" --norestore --nologo 2. Start python, install pyoo (also add here https://github.com/roth-a/pyoo/commit/7e2c21e445e4d620bfa61010c59ea571a8998851 the path, if necessary) Run in python desktop = pyoo.Desktop('localhost', 2002) desktop.open_spreadsheet('myfile.ods') # <-- here it crashes Actual Results: Traceback (most recent call last): File "<mypath>/LibreOfficeConnector.py", line 1251, in <module> desktop.open_spreadsheet('myfile.ods') File "./pyoo/pyoo.py", line 1849, in open_spreadsheet document = self._open_url(url, extra) File "./pyoo/pyoo.py", line 1855, in _open_url return self._target.loadComponentFromURL(url, '_blank', 0, extra) com.sun.star.uno.RuntimeException: C++ code threw St9bad_alloc: std::bad_alloc /build/libreoffice-YUrEy7/libreoffice-7.0.1~rc2/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:243 Expected Results: Should open the file. Reproducible: Always User Profile Reset: No Additional Info: I tried it on Ubuntu 20.04.1 LTS x86_64 with Libreoffice Version 7.0.1.2 and version 6.4.5.2, both times with the same crash Enabeling/Disabeling OpenGl does not make a difference
pyoo: loadComponentFromURL in pyoo (https://github.com/seznam/pyoo/blob/master/pyoo.py#L1848 ) referrs to http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/XComponentLoader.html#loadComponentFromURL
I resolved the issue, by deleting .config/libreoffice/