<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 - Basic IDE hangs after several error messages"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=144183">144183</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Basic IDE hangs after several error messages
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.2.0.4 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>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>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikekaganski@hotmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>noelgrandin@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=174638" name="attach_174638" title="Test file with a sub calling another module's method">attachment 174638</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=174638&action=edit" title="Test file with a sub calling another module's method">[details]</a></span>
Test file with a sub calling another module's method
In 7.2 and master, the following sequence fails:
1. Define a module in a Basic shared library, containing a sub with an error:
Library "Standard" under "My Macros and Dialogs", Module "TestGlobalShared"
Option Explicit
Sub TestGlobalSub
MsgBox UndefinedVar
End Sub
2. In a document, define a Basic sub calling the said sub with error:
Document "TestGlobalSub.ODT">Library "Standard">Module "Module1"
Option Explicit
Sub Main
TestGlobalShared.TestGlobalSub
End Sub
3. Repeat this:
3.1. Double-click on "Main" under the document's "Module1";
3.2. Press F5;
3.2. Close the error message in the shared library's sub with error.
Repeating step 3 starts slowing down after several cycles; it depends on the
could of modules shown in the IDE, but in the simplest case, when there are
only a few modules, I see *some* delay after 7-8 repeats; significant delay on
the next repeat; and huge delay on the next repeat. Repeating after that would
hang.
It looks like some quadratic algorithm in place. It is a regression after
commit
<a href="https://git.libreoffice.org/core/+/d47ac2ebdb495b025eb26e17cbbe2509797c31f0">https://git.libreoffice.org/core/+/d47ac2ebdb495b025eb26e17cbbe2509797c31f0</a>
(Noel: could you please take a look? Maybe somewhere a typo crept in?).
Also in debug build, the second repeat brings an assertion failed at
TabBar::InsertPage ("TabBar::InsertPage(): Page already exists").</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>