Bug 112264 - LibreOffice freezes on attempting to open the dialog editor in the Basic IDE.
Summary: LibreOffice freezes on attempting to open the dialog editor in the Basic IDE.
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
5.4.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2017-09-06 21:37 UTC by Howard Rudd
Modified: 2018-09-11 08:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Video (9.40 MB, video/ogg)
2017-09-06 21:37 UTC, Howard Rudd
Details
Screenshot of bleachbit (38.01 KB, image/png)
2017-09-09 10:10 UTC, Howard Rudd
Details
Screenshot of terminal (106.56 KB, image/png)
2017-09-09 21:38 UTC, Howard Rudd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Howard Rudd 2017-09-06 21:37:25 UTC
Created attachment 136079 [details]
Video

The IDE works fine for editing code modules, but attempting to open the dialog editor causes it to freeze. When this happens, “soffice.bin” consumes 100% of the CPU. 

See attached video file. 

Deleting the user profile “/home/user/.config/libreoffice” has no effect. 

Reinstalling LibreOffice also has no effect. 

Turning off “Use java run time environment” under the “Advanced” tab in “tools-options” has no effect. 

My version of LibreOffice is: 
Version: 5.4.1.2
Build ID: 1:5.4.1~rc2-0ubuntu0.17.04.1~lo0.1
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.UTF-8); Calc: single

The OS is Xubuntu 17.04

I also have LO 5.3 installed as a “snap”, and it has the same problem. 

The machine has dual boot with Windows 7. The problem does NOT occur under windows. 

The machine is a Dell Latitude E6230.
Comment 1 Jean-Baptiste Faure 2017-09-08 05:56:29 UTC
Good catch, thank you for the bug report.
I reproduce with LO 5.4.1 from Ubuntu PPA, LO 5.4.2.0.0+ and master both built at home under Ubuntu 16.04. The problem is related to the gtk3 backend, it works as expected if I use GTK2 backend instead of gtk3.

Of course it worked before, so regression.
Setting status to NEW

Best regards. JBF
Comment 2 Howard Rudd 2017-09-09 10:10:31 UTC
Created attachment 136134 [details]
Screenshot of bleachbit
Comment 3 Howard Rudd 2017-09-09 10:18:03 UTC
I noticed that after running belachbit the problem disappeared until I next restarted my machine. By trying options individually I found that “system/clipboard” was the one that did it (see attached screenshot) though, strangely, it says it didn’t actually delete anything. After doing this, the dialog editor remains usable until I restart my machine, after which it freezes again. I then tried copying some random text to the clipboard instead of running bleachbit. This worked too. 

If I do the following steps I get the same behaviour reproducibly: 

    1. Start machine. 
    2. Start LibreOffice
    3. Attempt to open dialog editor => LibreOffice freezes
    4. Kill LibreOffice
    5. Open a text editor
    6. Copy a single character to the clipboard
    7. Close text editor
    8. Start LibreOffice
    9. Open dialog editor => Works fine till I restart my machine. 

This could be a workaround until a solution is found. An internet search revealed the following: https://wiki.ubuntu.com/ClipboardPersistence. I wonder whether this could be related?
Comment 4 raal 2017-09-09 18:33:02 UTC
no repro Version: 6.0.0.0.alpha0+
Build ID: e808bbe1ce51465e6f3e9dc4fec2ecd263fe0e4b
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3;
Comment 5 Jean-Baptiste Faure 2017-09-09 20:41:46 UTC
Today I can't reproduce the freeze anymore with GTK3 backend whatever version I use (5.4.1 from Ubuntu PPA or 5.4.2.0.0+ and master both built at home). That strange, I do not see what changed since yesterday. I recompiled 5.4.2.0.0+ and master but not 5.4.1. 

I wonder if trying GTK2 backend changed something in my user profile that made LO working again with GTK3 backend.

@Howard: Please could you try with GTK2 backend then with GTK3 again?
To switch between GTK2 and GTK3 backends launch LO in a terminal using environment variables:
for GTK2 : export SAL_USE_VCPLUGIN="gtk"
for GTK3 : export SAL_USE_VCPLUGIN="gtk3"

Best regards. JBF
Comment 6 Howard Rudd 2017-09-09 21:37:29 UTC
Hi Jean-Baptiste

I tried your suggestion but in both cases the office still freezes. I first re-started my machine, then opened a terminal. A screenshot of it is attached. The first two calls to soffice resulted in the office freezing. I typed the export commands by hand rather than pasting them. Then I tried my workaround as described above, i.e. copying something random to the clipboard. The second two calls are after doing that and in both cases no freezing occurred. 

Many thanks

Regards

Howard
Comment 7 Howard Rudd 2017-09-09 21:38:51 UTC
Created attachment 136139 [details]
Screenshot of terminal

Referred to in comment
Comment 8 QA Administrators 2018-09-10 02:37:13 UTC Comment hidden (obsolete)
Comment 9 Regis Perdreau 2018-09-10 09:55:58 UTC
I confirm in 

Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: x11; 
Locale : nl-NL (fr_FR.UTF-8); Calc: group

and


Version: 6.2.0.0.alpha0+
Build ID: 278e66488135c8fa2714520d056573c64ea803cf
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: fr-FR (fr_FR.UTF-8); Calc: CL

you can't close the dialog editor windows and do nothing else.
Comment 10 Howard Rudd 2018-09-11 08:26:27 UTC
Since reporting the bug I upgraded my OS to Xubuntu 18.04LTS with LibreOffice:

Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.UTF-8); Calc: group

The bug does not occur on this setup.