Bug Hunting Session
Bug 108763 - non visible items in menu Styles in Writer
Summary: non visible items in menu Styles in Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
5.4.0.0.beta2
Hardware: All Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Menus Styles-Menu User-Profile-Upgrade
  Show dependency treegraph
 
Reported: 2017-06-25 13:05 UTC by Roman Kuznetsov
Modified: 2019-01-07 00:40 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot with spaces instead items of menu Styles (159.40 KB, image/png)
2017-06-25 13:06 UTC, Roman Kuznetsov
Details
Styles menu gaps as they appear in LO Writer 6.0.7.3, MacOS 10.12 (260.29 KB, image/png)
2019-01-07 00:21 UTC, okinasevych
Details
Styles menu after XML fiddling (LO Writer 6.0.7.3, MacOS 10.12) (117.32 KB, image/png)
2019-01-07 00:40 UTC, okinasevych
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Kuznetsov 2017-06-25 13:05:39 UTC
Description:
non visible items in menu Styles in Writer (see attach)

Version: 5.4.0.1
Build ID: 962a9c4e2f56d1dbdd354b1becda28edd471f4f2
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: ru-RU (ru_RU.UTF-8); Calc: group

Xubuntu 14.04.4

Steps to Reproduce:
1. Open Writer 5.4.0.1 on Linux
2. Select menu Styles
3. Look on spaces in menu

Actual Results:  
menu Styles has a lot of space instead items

Expected Results:
menu Styles shows normal


Reproducible: Always

User Profile Reset: No

Additional Info:
on Windows in LO 5.4.0.1 menu Styles is OK


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:54.0) Gecko/20100101 Firefox/54.0
Comment 1 Roman Kuznetsov 2017-06-25 13:06:29 UTC
Created attachment 134265 [details]
screenshot with spaces instead items of menu Styles
Comment 2 Xisco Faulí 2017-06-25 15:06:03 UTC
it seems to me like a duplicate of bug 107166...

*** This bug has been marked as a duplicate of bug 107166 ***
Comment 3 Roman Kuznetsov 2017-06-25 16:28:12 UTC
(In reply to Xisco Faulí from comment #2)
> it seems to me like a duplicate of bug 107166...
> 
> *** This bug has been marked as a duplicate of bug 107166 ***

my bug ONLY for Linux. In 107166 problem is on Windows, IMHO it is another bug...
By me in Xubuntu LO 5.3.3 works fine.

status -> UNCONFIRMED
Comment 4 Xisco Faulí 2017-06-25 18:18:00 UTC
So, it seems you reproduced it with gtk2. I can't reproduce it in

Version: 6.0.0.0.alpha0+
Build ID: 08f6f9dded1b142b858c455da03319abac691655
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

To be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and re-test?

if it's still happening after resetting the profile, could you please try to bibisect this following the instructions from https://wiki.documentfoundation.org/QA/Bibisect/Linux ?
Comment 5 Yousuf Philips (jay) (retired) 2017-06-25 19:35:43 UTC
Cant repo it. Would suggest you test beta 2 and if that still doesnt fix it, clear your user profile.

Version: 5.4.0.0.beta2+
Build ID: 81e7ef8d3941de527f21c1508389c9e09518680b
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-4, Time: 2017-06-08_04:31:09
Locale: en-US (en_US.UTF-8); Calc: group
Comment 6 Roman Kuznetsov 2017-06-25 20:12:27 UTC
(In reply to Yousuf Philips (jay) from comment #5)
> Cant repo it. Would suggest you test beta 2 and if that still doesnt fix it,
> clear your user profile.
> 
> Version: 5.4.0.0.beta2+
> Build ID: 81e7ef8d3941de527f21c1508389c9e09518680b
> CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
> TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-4, Time:
> 2017-06-08_04:31:09
> Locale: en-US (en_US.UTF-8); Calc: group

clear user profile -> solved my problem

status -> NOTABUG

ps: but, 5.4.0.1 and 5.3.3.2 installed parallel on Linux and use one user profile?
Comment 7 Yousuf Philips (jay) (retired) 2017-06-25 23:00:54 UTC
(In reply to kompilainenn from comment #6)
> ps: but, 5.4.0.1 and 5.3.3.2 installed parallel on Linux and use one user
> profile?

Just another reason why each version should have its own user profile (check bug 57466 comment 15 for more info).
Comment 8 Kribly Krably 2018-03-14 08:46:35 UTC
Steps to reproduce this bug and reveal the cause of it:


1. Install LO 5.3.7 with a fresh user profile.

2. Open Writer and create new menu with Tools->Customize tool.

3. Now the new file \AppData\Roaming\LibreOffice\4\user\config\soffice.cfg\modules\swriter\menubar\menubar.xml is created. This file contain description of new created menu AND all default menus too, in spite of that default menus are not changed, only new one menu was created in step 2.

4. Copy this file to menubar53.xml.

5. Upgrade to LO 5.4.4 (keep old profile).

6. Open Writer, open the Styles menu and see the bug (non-visible items). Close Writer.

7. Go to user profile and delete menubar.xml file.

8. Open Writer and see correct Styles menu.

9. Create new menu with Tools->Customize tool again.

10. Now new file menubar.xml is created again. Copy it to menubar54.xml (just to not to be confused with this files).

11. Open menubar53.xml in text editor and find this section:

<menu:menu menu:id=".uno:FormatStylesMenu">
  <menu:menupopup>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Standard&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Title&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Subtitle&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading%201&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading%202&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading%203&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading%204&amp;FamilyName:string=ParagraphStyles"/>
This section describes the Styles menu.

12. Open menubar54.xml and find corresponding section:

<menu:menu menu:id=".uno:FormatStylesMenu">
  <menu:menupopup>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Standard&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Title&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Subtitle&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading 1&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading 2&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading 3&amp;FamilyName:string=ParagraphStyles"/>
   <menu:menuitem menu:id=".uno:StyleApply?Style:string=Heading 4&amp;FamilyName:string=ParagraphStyles"/>

13. Compare the last four lines of cited above sections. This lines describes that invisible points of Styles menu. There is difference in symbols between the Heading word and numbers: %20 in menubar53.xml file, and simple space in menubar54.xml. Conclusion: Writer version 5.4 can't process menubar.xml file, migrated from Writer version 5.3.
	
14. Proof: delete menubar.xml. Copy menubar53.xml to menubar.xml. Open Writer and see the bug.
	
15. Open menubar.xml in text editor and replace the %20 to spaces. Open Writer and see correct Styles menu.


This bug concern to bugs 57466, 115518
Comment 9 okinasevych 2019-01-07 00:21:42 UTC
Created attachment 148079 [details]
Styles menu gaps as they appear in LO Writer 6.0.7.3, MacOS 10.12

I'm seeing this problem in LO Writer 6.0.7.3, MacOS 10.12. 

Don't recall when Styles menu gaps first appeared but I installed/uninstalled LO beta not that long ago in attempt to fix a different problem (Bug 122145). Related perhaps?
Comment 10 okinasevych 2019-01-07 00:35:56 UTC
Confirming that Kribly Krably suggestion for edits of menubar.xml partially fixes the problem for me. 

All Styles menu items appear now except for "Quotation" character style. I can see its entry in the menubar.xml but there is no %20 character entity to replace, nor any other variations from adjacent menu items.
Comment 11 okinasevych 2019-01-07 00:40:29 UTC
Created attachment 148084 [details]
Styles menu after XML fiddling (LO Writer 6.0.7.3, MacOS 10.12)

All but one menu item available after fiddling with menubar.xml file, replacing "%20" with spaces. Missing in the menu is "Quotation" character style.