Bug 136476 - bad_alloc when using the uno bridge
Summary: bad_alloc when using the uno bridge
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL: https://github.com/seznam/pyoo/issues/26
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-04 20:01 UTC by roth-a
Modified: 2021-02-09 12:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roth-a 2020-09-04 20:01:26 UTC
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
Comment 2 roth-a 2020-09-08 13:36:14 UTC
I resolved the issue, by deleting   .config/libreoffice/