<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - bad_alloc when using the uno bridge"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136476">136476</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>bad_alloc when using the uno bridge
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0.0.3 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>framework
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>roth-a@gmx.de
</td>
</tr></table>
<p>
<div>
<pre>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
<a href="https://github.com/roth-a/pyoo/commit/7e2c21e445e4d620bfa61010c59ea571a8998851">https://github.com/roth-a/pyoo/commit/7e2c21e445e4d620bfa61010c59ea571a8998851</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>