Bug 109130 - LibreOffice freezes and becomes unusable
Summary: LibreOffice freezes and becomes unusable
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.4.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-14 20:50 UTC by Donaithnen
Modified: 2018-07-16 17:17 UTC (History)
4 users (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 Donaithnen 2017-07-14 20:50:15 UTC
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.
Comment 1 Buovjaga 2017-08-08 09:08:25 UTC
I recommend you to debug LibreOffice and find out the cause: https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

I don't think anyone else can help you.
Comment 2 Judith M Vander Wege 2017-12-09 23:46:30 UTC Comment hidden (me-too)
Comment 3 QA Administrators 2018-07-03 14:16:01 UTC Comment hidden (obsolete)
Comment 4 Timur 2018-07-16 17:17:34 UTC
I'll close. If you debug with current master 6.2', please set back to Unconfirmed.