Bug 128491 - Doubling of menubar after inserting formula in writer (only if LanguageTool is in use)
Summary: Doubling of menubar after inserting formula in writer (only if LanguageTool i...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.2.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 130085 131161 133129 135486 136771 (view as bug list)
Depends on:
Blocks: Main-Menu
  Show dependency treegraph
 
Reported: 2019-10-31 08:34 UTC by Bernard Decock
Modified: 2022-09-29 07:08 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
Double menubar in Writer (23.81 KB, image/png)
2019-10-31 08:34 UTC, Bernard Decock
Details
Idle lower menubar (64.39 KB, image/jpeg)
2019-11-03 08:20 UTC, Bernard Decock
Details
Double menubar in LO 6.3.3.2 (142.34 KB, image/jpeg)
2019-11-06 09:19 UTC, Bernard Decock
Details
LO Writer menu bar duplicates (2.24 MB, image/gif)
2020-02-01 10:11 UTC, Amr Ibrahim
Details
Double Menubar with LO7.0.1.2 (83.18 KB, image/jpeg)
2020-09-28 14:40 UTC, Bernard Decock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Decock 2019-10-31 08:34:09 UTC
Created attachment 155416 [details]
Double menubar in Writer

Linux mint Cinnamon = 19.2 or Ubuntu 19.10
Clean install
LibreOffice = 6.0.7.3 .. 6.3.2.2

Open LibreOffice
Open new writer-document
Insert object = formula => formula-application opens
     - A double menubar is visible (one from the writer, one from the formula-app
       (no problem sofar)
     - Either enter a formula or none
     - Close the formula-app by clicking outside the formula-panel
=> Writer has a double menubar (I you repeat this operation even a third one is possible)
Close the writer-document => double menubar still present in the general overview
Start new writer-document => double menubar
One has to close LO to get rid of this.
Comment 1 V Stuart Foote 2019-10-31 12:53:45 UTC
Not apparent on Windows builds
Version: 6.3.2.2 (x64)
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 2 Bernard Decock 2019-11-03 08:20:03 UTC
Created attachment 155481 [details]
Idle lower menubar
Comment 3 Bernard Decock 2019-11-04 10:30:28 UTC
Well I think I found the culprit. 

Clean install in a VM with version 6.3.2.2. Everything works fine. Then after installing the extension LanguageTool and restarting LO, I can reproduce this error. Bug related to LO or LanguageTool?
Comment 4 Bernard Decock 2019-11-04 10:48:31 UTC
Install LanguageTool => Bug happens
Disable or remove LanguageTool => Ok
Comment 5 Xisco Faulí 2019-11-05 11:43:03 UTC
I believe this might be a duplicate of bug 124391.
Please, try again with LibreOffice 6.3.3.2

*** This bug has been marked as a duplicate of bug 124391 ***
Comment 6 Bernard Decock 2019-11-06 09:18:50 UTC
Using a fresh install of LO 6.3.3.2 gives the same result

Install LanguageTool
Open writer -> insert formula
After inserting => double menubar (lower menubar is always idle)
Comment 7 Bernard Decock 2019-11-06 09:19:37 UTC
Created attachment 155552 [details]
Double menubar in LO 6.3.3.2
Comment 8 Xisco Faulí 2019-11-06 15:38:16 UTC
Hi Samuel, since you fixed bug 124391, could you please try to reproduce this issue ? I can't reproduce it here...
Comment 9 Stanislaus J. Pinasthika 2019-11-29 01:46:47 UTC
Yes, maybe the problem related with the LanguageTools. Try to reproduce with 
Version: 6.3.0.4
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: gtk3; 
Flatpak
 
and 

Version: 6.4.0.0.alpha1+
Build ID: eeae2032476e8c8645ab438fbb379f3151c8e472
CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: kf5; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-11-13_06:44:02

my menubar doesn't doubled
Comment 10 Bernard Decock 2019-11-29 17:12:44 UTC
Well, It starts to happen as soon as you try to insert an equation (Math) in a Writer-document.
Comment 11 Stanislaus J. Pinasthika 2019-11-30 01:44:05 UTC
(In reply to Bernard Decock from comment #10)
> Well, It starts to happen as soon as you try to insert an equation (Math) in
> a Writer-document.

yes, I have tried to insert an equation. It doesn't happen
Comment 12 AJ Justin 2019-12-21 15:09:39 UTC Comment hidden (spam)
Comment 13 Xisco Faulí 2020-01-21 12:40:40 UTC Comment hidden (obsolete)
Comment 14 Bernard Decock 2020-01-21 12:59:34 UTC
(In reply to Xisco Faulí from comment #13)
> Hi Bernard,
> do you reproduce it if you launch LibreOffice from commandline with:
> SAL_USE_VCLPLUGIN=gen soffice ?

In case I start LO with SAL_USE_VCLPLUGIN=gen soffice I'm not able to reproduce this issue. I tried out several cases and times, but I was in no way able to reproduce the issue.

Tested with LO 6.3.4.2
Build ID: 1:6.3.4-0ubuntu0.18.04.1~lo2
Comment 15 QA Administrators 2020-01-22 03:38:53 UTC Comment hidden (obsolete)
Comment 16 Amr Ibrahim 2020-02-01 10:11:29 UTC
Created attachment 157577 [details]
LO Writer menu bar duplicates

See the attached GIF and follow the steps below to reproduce the bug.

0. Start LibreOffice Writer, add the LanguageTool extension and restart LibreOffice
1. Close the text document but not the whole application
2. Re-open a Writer text document
3. Menu bar duplicates each time you close and open a text document

The bug disappears after the LanguageTool extension is deactivated or removed.

LibreOffice version: 6.3.4.2
LanguageTool version: 4.8
OS: Ubuntu 18.04.3 LTS

A bug filed against LanguageTool:
https://github.com/languagetool-org/languagetool/issues/2000
Comment 17 Amr Ibrahim 2020-02-01 10:22:10 UTC
(In reply to Xisco Faulí from comment #13)
> do you reproduce it if you launch LibreOffice from commandline with:
> SAL_USE_VCLPLUGIN=gen soffice ?

I can't reproduce the bug with "SAL_USE_VCLPLUGIN=gen soffice".

Here is the terminal output:
$ SAL_USE_VCLPLUGIN=gen soffice
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Comment 18 Dieter 2020-02-18 08:30:27 UTC
(In reply to Amr Ibrahim from comment #16)
> Created attachment 157577 [details]
> LO Writer menu bar duplicates
> 
> See the attached GIF and follow the steps below to reproduce the bug.
> 
> 0. Start LibreOffice Writer, add the LanguageTool extension and restart
> LibreOffice
> 1. Close the text document but not the whole application
> 2. Re-open a Writer text document
> 3. Menu bar duplicates each time you close and open a text document
> 
> The bug disappears after the LanguageTool extension is deactivated or
> removed.
> 
> LibreOffice version: 6.3.4.2
> LanguageTool version: 4.8
> OS: Ubuntu 18.04.3 LTS
> 
> A bug filed against LanguageTool:
> https://github.com/languagetool-org/languagetool/issues/2000


=> set status to NEW because of this bug confirmation
Comment 19 Dieter 2020-02-18 08:36:26 UTC
*** Bug 130085 has been marked as a duplicate of this bug. ***
Comment 20 Tommy 2020-03-04 07:09:40 UTC Comment hidden (spam)
Comment 21 Amr Ibrahim 2020-03-09 19:19:17 UTC
*** Bug 131161 has been marked as a duplicate of this bug. ***
Comment 22 Timur 2020-05-18 13:01:56 UTC
*** Bug 133129 has been marked as a duplicate of this bug. ***
Comment 23 Timur 2020-08-07 14:07:02 UTC
*** Bug 135486 has been marked as a duplicate of this bug. ***
Comment 24 Timur 2020-09-17 07:19:59 UTC
*** Bug 136771 has been marked as a duplicate of this bug. ***
Comment 25 linux 2020-09-27 14:18:43 UTC
The double menu bar has been fixed with development version 7.1 of 25th September 2020 and language tool version 5.1 without removing Language Tool
Comment 26 Timur 2020-09-28 07:27:47 UTC
(In reply to linux from comment #25)
> The double menu bar has been fixed with development version 7.1 of 25th
> September 2020 and language tool version 5.1 without removing Language Tool

CCed folks: to confirm please test daily master 7.1+, easiest is 1-file AppImage from https://libreoffice.soluzioniopen.com/daily-version/ and LanguageTools 5.1 from https://languagetool.org/download/.

Since bug filed against LanguageTool had some fix, it would be nice to also test with current LO 7.0 to see if this is NotOurBug. 
https://github.com/languagetool-org/languagetool/issues/2000.
Comment 27 Bernard Decock 2020-09-28 09:40:04 UTC Comment hidden (obsolete)
Comment 28 linux 2020-09-28 13:13:28 UTC
I tested with LO 7.0.0.3 and ubuntu18.04lts 64bit and language tool v5.1 and it works. No double menubar.
This was also valid with version 5.0.1 of the language tool

Version: 7.0.0.3
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
Thread CPU: 4; SO: Linux 4.15; Resa interfaccia: predefinito; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); Interfaccia utente: it-IT
Calc: threaded
Comment 29 Timur 2020-09-28 13:24:07 UTC
(In reply to Bernard Decock from comment #27)
> Just tested with LO Version: 7.0.1.2 and LanguageTool 5.1 : Problem not
> solved
> I will test again within a few day with a newer LO-build

To be sure: 7.0.1 is newest, but needed is also development daily master version.
And please for all who test: add Version Info from Help-About.
Comment 30 linux 2020-09-28 13:53:25 UTC
My test with LO 7.1alpha0 was using the version of 25 September 2020 downloaded from master. I downloaded version 5.1 from language tool. The bug was fixed.
With LO7.1alpha0 of 18 September 2020 and language tools version 5.0.1 the bug was not fixed.
Using version LO 7.0.0.X (X = 1/2/3) and language tool v5.0.1 or 5.1 the bug is not present.
Downloaded applimage from daily LO7.1alpha0 and language tools v5.1 from the site, the bug is fixed.
Concluding LO 7.0.0.3 and LO 7.1alpha0 (master and daily 25 September 2020) are not affected by the bug.


Version: 7.1.0.0.alpha0+
Build ID: a8c218a52a639b0e7f689dea878a0421702628e0
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-09-25_22:25:07
Calc: threaded
Comment 31 Bernard Decock 2020-09-28 14:38:22 UTC
(In reply to Timur from comment #29)
> (In reply to Bernard Decock from comment #27)
> > Just tested with LO Version: 7.0.1.2 and LanguageTool 5.1 : Problem not
> > solved
> > I will test again within a few day with a newer LO-build
> 
> To be sure: 7.0.1 is newest, but needed is also development daily master
> version.
> And please for all who test: add Version Info from Help-About.

Version: 7.0.1.2
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: nl-BE (nl_BE.UTF-8); GI: nl-NL
Calc: threaded
Comment 32 Bernard Decock 2020-09-28 14:40:49 UTC
Created attachment 165923 [details]
Double Menubar with LO7.0.1.2
Comment 33 Bernard Decock 2020-09-28 15:35:30 UTC
LanguageTool 5.1
LO Version: 7.0.3.0.0+
Build ID: 540eea58881ca17eff012a61b8b953d20b596b21
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: nl-BE (nl_BE.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:libreoffice-7-0, Time: 2020-09-26_08:59:12
Calc: threaded

1. Create new writer-document
2. Insert object -> formula : Initially there is no doubling of the menubar
3. Close document (don't save)
4. Create new writer-document
5. Insert object -> formula => doubling of the menubar
Comment 34 linux 2020-09-28 15:50:28 UTC
(In reply to Bernard Decock from comment #33)
> LanguageTool 5.1
> LO Version: 7.0.3.0.0+
> Build ID: 540eea58881ca17eff012a61b8b953d20b596b21
> CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
> Locale: nl-BE (nl_BE.UTF-8); UI: en-US
> TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:libreoffice-7-0, Time:
> 2020-09-26_08:59:12
> Calc: threaded
> 
> 1. Create new writer-document
> 2. Insert object -> formula : Initially there is no doubling of the menubar
> 3. Close document (don't save)
> 4. Create new writer-document
> 5. Insert object -> formula => doubling of the menubar

I followed the sequence indicated in comment # 33 but the behavior is always the same: no double menubar.
The data is always the same as comment # 30
Comment 35 QA Administrators 2022-09-29 03:54:19 UTC Comment hidden (obsolete)
Comment 36 Bernard Decock 2022-09-29 07:08:19 UTC
Tested with LO 7.3.6.2 and LT 5.7