[Libreoffice-bugs] [Bug 109130] New: LibreOffice freezes and becomes unusable
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 14 20:50:15 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=109130
Bug ID: 109130
Summary: LibreOffice freezes and becomes unusable
Product: LibreOffice
Version: 5.3.4.2 release
Hardware: x86 (IA32)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: donaithnen at gmail.com
I've had problems with LibreOffice freezing for years, but this is the first
time i've ever been able to consistently reproduce it.
I noticed it was constantly locking up when a new piece of code was running in
the background. After some testing i've narrowed it down to the following
relevant bits:
---------------------------
for (int i = 0; i < 10000; i++)
{
try
{
string html = "HTML Text"; // html content
WebBrowser wb = new WebBrowser();
wb.Navigate("about:blank");
wb.Document.OpenNew(true);
wb.Document.Write(html);
wb.Document.ExecCommand("SelectAll", false, null);
wb.Document.ExecCommand("Copy", false, null);
System.Threading.Thread.Sleep(100);
wb.Dispose();
}
catch (Exception ex)
{
int j = 0;
}
} // For Loop
---------------------------
This is obviously not production ready code and is intended for demo purposes
only. But approximately three times out of four when I start running this C#
code in Visual Studio 2012 LibreOffice will freeze up after 5-15 seconds. It
will remain frozen until i either terminate the code or it crashes. Most of the
time LibreOffice will then return to normal behaviour after that, but
occasionally it will remain stuck.
I've mostly been testing this in Calc since that's usually what I'm using when
I observe the freezing behaviour, but during testing it also affected Writer.
No other programs seem to have their basic functionality affected when this
code is running. Excel performs normally, Word performs normally, Outlook,
Chrome, Firefox, Notpadd++, everything else performs normally.
However copy/paste is impacted on a global level. (Not entirely unexpected
given the code's use of "copy".) Notepadd++, Word, and Excel all have
intermittent issues with trying to copy/paste text while or immediately after
this code is running. But as long as i don't try to copy/paste anything they
continue working normally. LibreOffice is the only program to become generally
unusable.
Since i frequently observe the "normal" LibreOffice freezing behaviour while
trying to copy/paste cells in Calc i'm really hoping the fundamental underlying
issue is linked, and if you can resolve the issue in this exceptional case it
will fix the other more common case as well.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170714/ae165b79/attachment.html>
More information about the Libreoffice-bugs
mailing list