libreoffice unity menu bars greyed out after opening any dialog or switching window

Bug #1045372 reported by Alberto Perdomo
126
This bug affects 21 people
Affects Status Importance Assigned to Milestone
Indicator Applet
Fix Released
Undecided
Charles Kerr
libindicator
Fix Released
Undecided
Charles Kerr
indicator-applet (Ubuntu)
Fix Released
Undecided
Unassigned
libindicator (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu Release: Ubuntu 12.10 Quantal Quetzal beta1
Package version: libreoffice-gtk
Package version: 1:3.6.1~rc2-1ubuntu3

Behavior: Triggering an action from the menu, i.e. opening a file , turns the menu into disabled state. This happens randomly and sometimes also without any action triggers.

This is a new issue we have discovered in the latest versions of Unity/Gtk+. This wrong behavior is not present in precise pangolin and Quantal Alpha 3. Can someone please confirm if this is an issue in Unity/Gtk+?

Related branches

Revision history for this message
Allison Karlitskaya (desrt) wrote :

I think this is more likely to be a bug in libreoffice since we have quite a lot of apps that are working properly with Unity/Gtk in Q and the libreoffice code is new.

I welcome a small testcase that demonstrates the issue. Otherwise we're going to have to go digging through some rather large D-Bus logs to find the truth....

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
Allison Karlitskaya (desrt) wrote :

I've tried to reproduce this bug and for me it's not happening as described.

What does happen, however, with 100% reliability, is that the actions are disabled when switching away from the window and back to it again. In the case of triggering actions like "Open" or "About" this would indeed cause the foreground window to be changed (to the open or about dialog). This is probably a unity-panel-service bug (probably in the appmenu indicator).

For me, the bug does not happen with other actions like copy/paste that do not display new windows....

Revision history for this message
Antonio Fernández (antonio-fernandez-vega) wrote :

Yes, you are right. The issue seems to be happening when the window which holds the menu lose the focus.

Should we report this as a unity-panel-service bug then?

Revision history for this message
Adam Bruce (brucey-99-deactivatedaccount) wrote :

I think this and Bug #1047573 may be duplicates. The reproduction steps are a little clearer and I confirm they happen to me too:

1) Launch a LibreOffice such as Libreoffice-calc using the dash
2) Open the File menu; observe that menu items such as 'Exit' are not greyed out
3) Open a dialog from within LibreOffice. For example, in cal use Data-->Pivot Table-->Create
4) Close the dialog, either by cancelling it or pressing OK
5) Open the File menu

Expected results:
Items in the file menu are not greyed out

Actual results:
All items in the File menu (such as "Exit") are greyed out, with the exception of submenus like "New" and "Recent Documents".

We can mark them as dups if you feel they are the same

Revision history for this message
Antonio Fernández (antonio-fernandez-vega) wrote :

Yes, I think it is the same issue. Go ahead.

summary: - Menu bar in Unity is disabled
+ libreoffice unity menu bars greyed out after opening any dialog
Revision history for this message
Adam Bruce (brucey-99-deactivatedaccount) wrote :

Ryan, you're right, the bug simply occurs whenever the main libre office window is no longer active and then is returned to

summary: - libreoffice unity menu bars greyed out after opening any dialog
+ libreoffice unity menu bars greyed out after opening any dialog or
+ switching window
Revision history for this message
Nicolas Guichard (cocolas-nicolas) wrote :

The menus are disabled after trying to use the HUD too…

Revision history for this message
Allison Karlitskaya (desrt) wrote :

A bit more info on this: the bug is caused by the gtk_menu_detach() call in the "cloaking" code in libindicator. The menu gets detached from its GtkMenuItem, which breaks the GtkModelMenu logic (specifically: it separates it from the action group so all actions disappear, disabling the items). The decloak code doesn't reverse this.

We could workaround it in indicator-appmenu by associating the actions directly with each submenu but I think we should probably fix this in libindicator instead. The "cloak" logic is pretty suspicious....

affects: libreoffice (Ubuntu) → libindicator (Ubuntu)
Revision history for this message
Charles Kerr (charlesk) wrote :

I agree with Ryan's thoughts in comment #9 and am looking into removing the "cloak" code.

Changed in libindicator:
assignee: nobody → Charles Kerr (charlesk)
milestone: none → 12.10.1
status: New → In Progress
Charles Kerr (charlesk)
Changed in indicator-applet:
milestone: none → 12.10.1
assignee: nobody → Charles Kerr (charlesk)
status: New → In Progress
Changed in libindicator:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-applet (Ubuntu):
status: New → Confirmed
Changed in indicator-applet:
status: In Progress → Fix Committed
tags: added: rls-q-incoming
Revision history for this message
Matt Sturgeon (mattsturgeon) wrote :

Two possibly related bugs: Bug #1045353 "Commands are not displayed in the HUD" - using the HUD also seems to grey out the menu - and Bug #1049612 "Libre Offices global menu does not appear randomly when opening the application" - menu not visible at all (see Attachment 3309561)

Revision history for this message
Matt Sturgeon (mattsturgeon) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libindicator - 12.10.0-0ubuntu2

---------------
libindicator (12.10.0-0ubuntu2) quantal; urgency=low

  * Backport a fix so that libroffice doesn't hang on on startup (LP: #1045372)
 -- Didier Roche <email address hidden> Mon, 17 Sep 2012 11:13:49 +0200

Changed in libindicator (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-applet - 12.10.0-0ubuntu2

---------------
indicator-applet (12.10.0-0ubuntu2) quantal; urgency=low

  * Backport a fix so that libroffice doesn't hang on on startup (LP: #1045372)
 -- Didier Roche <email address hidden> Mon, 17 Sep 2012 11:13:15 +0200

Changed in indicator-applet (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Chris Hermansen (c-hermansen) wrote :

I see above that supposedly this bug was fixed in libindicator / indicator-applet 12.10.0-0ubuntu2

I have tested my original case (insert a table, then menus are grayed out) on my fully up to date system, which apparently (according to the software store) includes these versions of libindicator / indicator-applet, and I still have the problem.

So I don't think it's fixed.

Revision history for this message
Matt Price (matt-price) wrote : Re: [Bug 1045372] Re: libreoffice unity menu bars greyed out after opening any dialog or switching window

On Mon 17 Sep 2012 08:06:32 PM EDT, Chris Hermansen wrote:
> I see above that supposedly this bug was fixed in libindicator /
> indicator-applet 12.10.0-0ubuntu2
>
> I have tested my original case (insert a table, then menus are grayed
> out) on my fully up to date system, which apparently (according to the
> software store) includes these versions of libindicator / indicator-
> applet, and I still have the problem.
>
> So I don't think it's fixed.
>

did you restart gnome/unity? I think those libraries will only reload
if you restart the X server.

Revision history for this message
Chris Hermansen (c-hermansen) wrote :

Matt Price asks if I restarted gnome/unity.

It turns out that was a good question. I rebooted the machine and all seems to work as expected.

Wooooooooooooooohoooooooooooooooooooooo! Congratulations!

Charles Kerr (charlesk)
Changed in indicator-applet:
status: Fix Committed → Fix Released
Changed in libindicator:
status: Fix Committed → Fix Released
Revision history for this message
William (bthomas-akld) wrote :

I get an issue with lo 3.6.2.2 writer with up to date 12.10. If from writer open a recent documents item and then open recent documents again on a second document. The window for the second document has no menu. Could this be related to or a side effect of the above "fix"

Revision history for this message
Chris Hermansen (c-hermansen) wrote :

i noticed something like this yesterday but have not been able to create a
repeatable test case

Chris Hermansen · <email address hidden>

C'est ma façon de parler.
On Oct 16, 2012 4:45 AM, "William" <email address hidden> wrote:

> I get an issue with lo 3.6.2.2 writer with up to date 12.10. If from
> writer open a recent documents item and then open recent documents again
> on a second document. The window for the second document has no menu.
> Could this be related to or a side effect of the above "fix"
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1047496).
> https://bugs.launchpad.net/bugs/1045372
>
> Title:
> libreoffice unity menu bars greyed out after opening any dialog or
> switching window
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/indicator-applet/+bug/1045372/+subscriptions
>

Revision history for this message
Wolf Rogner (war-rsb) wrote :

The menu does not even appear sometimes (just the LibreOffice text in upper left corner)

Going to launcher (Alt-WindowKey or Alt-Cmd) and selecting LibreOffice (calc in my case) reveals the menu.

However, they sometimes don't react to menu selection even though enabled.

Conclusion: There is something wrong with unity integration

Revision history for this message
Allison Karlitskaya (desrt) wrote :

@#21: that is a different bug. This bug is fixed.

Revision history for this message
Wolf Rogner (war-rsb) wrote :

"This bug is fixed" says who.

But sure, if you insist, I'll open a new one.

Revision history for this message
Allison Karlitskaya (desrt) wrote :

> "This bug is fixed" says who.

"who" is the person who found the source of the problem (me) and the person who fixed it (currently sitting across the table from me).

> But sure, if you insist, I'll open a new one.

It's possible that the issue that you are describing is bug 1064962.

Revision history for this message
Wolf Rogner (war-rsb) wrote :

My dearest appologies.

From the description of the bug it seemed to be my primary issue.
Turns out #1064962 describes the issue more accurately.

I should have read the release notes in advance (which I usually do)

Cheers to you and the guy across the table

Revision history for this message
Allison Karlitskaya (desrt) wrote :

No worries. I've done the same. :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.