Bug 122902 - Impress hangs for a while when opening or saving a document. FILEOPEN FILESAVE
Summary: Impress hangs for a while when opening or saving a document. FILEOPEN FILESAVE
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-23 15:37 UTC by Clay Spence
Modified: 2020-12-23 09:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Single slide. (22.45 KB, application/vnd.oasis.opendocument.presentation)
2019-01-23 15:49 UTC, Clay Spence
Details
area without gradient (17.38 KB, application/vnd.oasis.opendocument.presentation)
2019-01-23 20:07 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clay Spence 2019-01-23 15:37:50 UTC
Description:
When I open or save a document with Impress, or quit, the document is displayed but I can't do anything for 30 seconds to a minute.

Steps to Reproduce:
1. Open an Impress document, or save one (Ctrl-S) that is open


Actual Results:
The window is frozen for at least 30 seconds.  The mouse pointer doesn't change if I move it over regions where it normally change, like to indicate text insert. At the end there is a transient change in the window and then things are back to normal.

Expected Results:
A brief (about 1 second) pause, maybe some transient change of the display.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
If I run top in a shell window during this time, both soffice.bin and Xorg are using a lot of cpu time, even though nothing is happening on the screen.

Version: 6.1.4.2
Build ID: 1:6.1.4-0ubuntu0.18.10.1
CPU threads: 2; OS: Linux 4.18; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group threaded

By the way, the Tools > Options > LibreOffice > View window does not have "Use OpenGL for all rendering" option, just "Use hardware acceleration," which is on.
Comment 1 Xisco Faulí 2019-01-23 15:39:45 UTC
Does it happen with any document or with a specific one ? If so, could you please attach it ?
Otherwise, what happens if you lauch LibreOffice with SAL_USE_VCLPLUGIN=gen soffice ? does it hangs as well ?
Comment 2 Clay Spence 2019-01-23 15:49:04 UTC
Created attachment 148564 [details]
Single slide.

It happens with this document, but not with a very plain single-slide document.
Comment 3 Clay Spence 2019-01-23 16:55:06 UTC
(Somehow my answer to the second question doesn't appear below, so here it is again.) Yes, the problem goes away if I use "SAL_USE_VCLPLUGIN=gen soffice". Is there a way to set that so it doesn't need to be run from the command line, or is that intended as a temporary work-around?
Comment 4 raal 2019-01-23 20:07:02 UTC
Created attachment 148571 [details]
area without gradient

hello, attached file without area gradient. Is it problem with computing gradient?  Can you check this file?
Comment 5 Clay Spence 2019-01-23 21:51:43 UTC
Yes, the problem does not happen with that file.
Comment 6 Xisco Faulí 2019-01-24 10:56:43 UTC
I can't reproduce it in

Version: 6.1.4.2
Build ID: 1:6.1.4-0ubuntu0.16.04.1~lo2
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded

Which version of GTK3 do you use ?
Do you see the same behaviour with LibreOffice 6.2.0.2 from https://wiki.documentfoundation.org/QA/GetInvolved#Test_Pre-releases ?
Comment 7 Clay Spence 2019-01-24 12:00:05 UTC
If I understand it, the gtk3 version is 3.24.1-1ubun.

I will check LibreOffice 6.2.0.2.
Comment 8 Clay Spence 2019-01-26 16:58:43 UTC
Yes, I see the same behavior with LibreOffice 6.2.0.2, from the site you gave.
Comment 9 Xisco Faulí 2019-02-07 20:14:20 UTC
(In reply to Clay Spence from comment #8)
> Yes, I see the same behavior with LibreOffice 6.2.0.2, from the site you
> gave.

Hi There,
is it still reproducible in LibreOffice 6.2 from
https://www.libreoffice.org/download/libreoffice-fresh/ ?
Comment 10 Clay Spence 2019-02-08 21:06:06 UTC
It still happens with 6.2.0.3 (From the About window: Version: 6.2.0.3
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
CPU threads: 2; OS: Linux 4.18; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded)
Comment 11 Xisco Faulí 2019-03-21 10:41:33 UTC
Hello,
LibreOffice 6.2.2.2 is going to be released today, could you please try again
with this version to see if the problem has been resolved meanwhile? Thanks in
advance
Comment 12 Clay Spence 2019-03-25 01:34:43 UTC
(In reply to Xisco Faulí from comment #11)
> Hello,
> LibreOffice 6.2.2.2 is going to be released today, could you please try again
> with this version to see if the problem has been resolved meanwhile? Thanks
> in
> advance

6.2.2.2 has exactly the same issue.
Comment 13 Xisco Faulí 2019-03-25 17:51:35 UTC
Hello Clay,
Does it hang if you launch LibreOffice with SAL_USE_VCLPLUGIN=gen ?
Comment 14 Clay Spence 2019-03-25 22:27:38 UTC
(In reply to Xisco Faulí from comment #13)
> Hello Clay,
> Does it hang if you launch LibreOffice with SAL_USE_VCLPLUGIN=gen ?

No.
Comment 15 Babak Razmjoo 2019-03-27 11:59:22 UTC
This bug is still present in
Version: 6.2.2.2
Build ID: 2b840030fec2aae0fd2658d8d4f9548af4e3518d
CPU threads: 1; OS: Linux 5.0; UI render: default; VCL: x11; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

but will be resolved if I set SAL_USE_VCLPLUGIN=gen
Comment 16 Xisco Faulí 2019-04-30 09:10:44 UTC
not reproduced in

Version: 6.3.0.0.alpha0+
Build ID: f45f8d0c6eb1d5d28a92399b82d13c2894f06069
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 17 QA Administrators 2019-10-28 03:30:26 UTC Comment hidden (obsolete)
Comment 18 Clay Spence 2019-10-29 01:57:07 UTC
Yes, it still happens.

Additional detail: I downloaded and unpacked https://dev-builds.libreoffice.org/daily/master/Linux-archive-x86_64@80-updater/2019-10-28_01.24.31/LibreOfficeDev_6.4.0.0.alpha1_Linux_x86-64_archive.tar.gz. I cd'd to the program subdirectory, set PATH to that and usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, and ran ./soffice. It has the same pauses of about 50 seconds on opening, clicking in a text field, saving, and quitting.

The pause doesn't happen if I run "SAL_USE_VCLPLUGIN=gen ./soffice" instead.

If anything, the problem may be worse. *Sometimes* it seems to just hang the whole computer. When this happens, I can't Ctrl-Alt-F<n> to a terminal. Clicking outside the window does nothing. The mouse cursor moves with the mouse, but it doesn't change appearance when passing over different things. This has happened twice, and lasted at least 5 minutes, when I did a hard reboot.

BTW, since my last comment I wiped my hard drive and installed Lubuntu from scratch. (I apologize for not responding earlier.)
Comment 19 Clay Spence 2019-11-03 00:26:46 UTC
I just noticed a possibly related bug in writer: In a particular document, when I click on the toolbar icon for text highlight color my computer freezes as described above: The mouse pointer moves but doesn't change form when passing over different objects. Nothing else responds, including Ctrl-Alt-F2, for example. This happened twice. In both cases after a few minutes I rebooted. When I started it from a command line with "SAL_USE_VCLPLUGIN=gen soffice" there was no problem.
Comment 20 Xisco Faulí 2020-05-11 07:36:31 UTC
Hello Clay,
A new major release of LibreOffice is available since this bug was reported.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 21 QA Administrators 2020-11-08 04:18:37 UTC Comment hidden (obsolete)
Comment 22 QA Administrators 2020-12-09 03:39:44 UTC Comment hidden (obsolete)
Comment 23 Clay Spence 2020-12-23 00:47:13 UTC
I just tested with 7.0.4. (https://download.documentfoundation.org/libreoffice/stable/7.0.4/deb/x86_64/LibreOffice_7.0.4_Linux_x86-64_deb.tar.gz) The problem with Impress hanging for a while when opening a document with a background color gradient didn't happen when I tried it with this version. It does still happen with 7.0.3.1 (the current version in my computer running Ubuntu).

Thanks, and I apologize for taking so long to get back to this.