Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: com.sun.star.uno.RuntimeException: C++ code threw St9bad_alloc: std::bad_alloc #26

Open
roth-a opened this issue Sep 4, 2020 · 1 comment

Comments

@roth-a
Copy link

roth-a commented Sep 4, 2020

In Ubuntu 20.04.1 LTS x86_64 , LibreOffice Version: 6.4.5.2
I get an error when opening a file:

os.system('libreoffice  --accept="socket,host=localhost,port=2002;urp;" --norestore --nologo	&' )  
time.sleep(3)
desktop = pyoo.Desktop('localhost', 2002)
desktop.open_spreadsheet('myfile.ods')

Error:

  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
@roth-a
Copy link
Author

roth-a commented Sep 4, 2020

In Ubuntu 20.04.1 LTS x86_64 , LibreOffice Version: 7.0.1
I get a similar error:

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant