Ubuntu

Eclipse menus doesn't show up in Saucy

Reported by Hans Joachim Desserud on 2013-08-03
This bug affects 281 people
Affects Status Importance Assigned to Milestone
Eclipse
Confirmed
Critical
Unity GTK+ module
Undecided
William Hua
oracle-jdk7-installer (Ubuntu)
Critical
Unassigned
unity-gtk-module (Ubuntu)
Critical
William Hua

Bug Description

****************
HOW TO REPRODUCE
****************

1. Run Eclipse, Gimp or Inkscape.
2. Move the cursor to the top of the screen.
3. Click on any of the menu items (File, Edit, Navigate, ...)

******************
EXPECTED BEHAVIOUR
******************

- The content of the submenus show up.

**************
REAL BEHAVIOUR
**************

- Only the top-level headers are available.
- Nothing happens when clicking on them
- They don't show up in the HUD either.

***********
WORK-AROUND
***********

To modify "/usr/share/applications/eclipse.desktop" to look like this:

[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=eclipse
Exec=env UBUNTU_MENUPROXY= eclipse
Terminal=false
Categories=Development;IDE;Java;

****************
RELEVANT DETAILS
****************

- Doesn't affect Ubuntu releases prior to 13.10.

**************
TECHNICAL INFO
**************

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: eclipse 3.8.1-1ubuntu1
ProcVersionSignature: Ubuntu 3.10.0-6.17-generic 3.10.3
Uname: Linux 3.10.0-6-generic i686
ApportVersion: 2.11-0ubuntu1
Architecture: i386
Date: Sat Aug 3 17:03:55 2013
InstallationDate: Installed on 2013-07-08 (25 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha i386 (20130708)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: eclipse
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

lp:~attente/unity-gtk-module/1208019
Merged into lp:unity-gtk-module at revision 321
Charles Kerr: Approve on 2014-03-21
PS Jenkins bot: Approve (continuous-integration) on 2014-03-20
lp:~attente/gtk/x-canonical-accel
Lars Uebernickel (community): Approve on 2014-04-03
Ubuntu Desktop: Pending requested 2014-03-31
lp:~attente/unity-gtk-module/eclipse-accelerators
Merged into lp:unity-gtk-module at revision 325
Charles Kerr: Approve on 2014-04-02
PS Jenkins bot: Approve (continuous-integration) on 2014-03-31
Hans Joachim Desserud (hjd) wrote :
Hans Joachim Desserud (hjd) wrote :

I can only reproduce this issue in Unity, so that might be the cause somehow. Just tried in XFCE and the menus workd as expected without any issues.

no longer affects: unity (Ubuntu)
Launchpad Janitor (janitor) wrote :

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

Changed in eclipse (Ubuntu):
status: New → Confirmed
Changed in unity-gtk-module (Ubuntu):
status: New → Confirmed
1 comments hidden view all 113 comments
Fuad Hamidan (vootsugu) wrote :

I got the same issue

john ferrier (john-j-ferrier) wrote :

Same problem for me.

john ferrier (john-j-ferrier) wrote :

My Eclipse was the latest version (Kepler) downloaded from http://www.eclipse.org/downloads/, not the specific Ubuntu package "eclipse 3.8.1-1ubuntu1" which was mention above. It worked on Ubuntu 13.04 but had problem after I upgraded my OS from 13.04 to 13.10 yesterday.

john ferrier (john-j-ferrier) wrote :

The problem is caused by unity global menu. if I start eclipse "env UBUNTU_MENUPROXY= eclipse" then there is no problem.

john ferrier (john-j-ferrier) wrote :

Do you have a plan to fix this before the official release of Ubuntu 13.10?

arno_b (arno.b) wrote :

The workaround of comment #8 fixed this issues for me.

Franck (alci) wrote :

Workaround works, but this is a regression nonetheless...

Michael Prentice (splaktar) wrote :

I'm seeing this same issue and UBUNTU_MENUPROXY= eclipse isn't helping me. This really breaks things for me, please fix ASAP.

I'll try to push a fix for this problem into Debian over the upcoming
weekend. Will keep you guys posted.

Adnan

On Wed, Sep 25, 2013 at 8:48 AM, Michael Prentice <email address hidden>wrote:

> I'm seeing this same issue and UBUNTU_MENUPROXY= eclipse isn't helping
> me. This really breaks things for me, please fix ASAP.
>
> --
> You received this bug notification because you are subscribed to eclipse
> in Ubuntu.
> Matching subscriptions: eclipse bug mail
> https://bugs.launchpad.net/bugs/1208019
>
> Title:
> Eclipse menus doesn't show up in Saucy
>
> Status in “eclipse” package in Ubuntu:
> Confirmed
> Status in “unity-gtk-module” package in Ubuntu:
> Confirmed
>
> Bug description:
> Steps to reproduce:
> 1. Run Eclipse.
> 2. Move the cursor to the top of the screen.
> 3. Click on any of the menu items (File, Edit, Navigate, ...)
>
> Expected: The content of the submenus show up
>
> Actual: Only the top-level headers seem to be available. Nothing
> happens when I click on them either. They don't show up in the HUD
> either.
>
> It worked fine on 13.04, so I'm not sure what changed.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 13.10
> Package: eclipse 3.8.1-1ubuntu1
> ProcVersionSignature: Ubuntu 3.10.0-6.17-generic 3.10.3
> Uname: Linux 3.10.0-6-generic i686
> ApportVersion: 2.11-0ubuntu1
> Architecture: i386
> Date: Sat Aug 3 17:03:55 2013
> InstallationDate: Installed on 2013-07-08 (25 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha i386
> (20130708)
> MarkForUpload: True
> PackageArchitecture: all
> SourcePackage: eclipse
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/1208019/+subscriptions
>

Wiktor: Nizio (zap-4) wrote :

Michael Prentice re#12: In order for workaround #8 to work, you have to type in one line:
env UBUNTU_MENUPROXY= eclipse
Notice the space bar after the '=' character. Do not use EXPORT etc, do not set environment variables, use this exact command provided that 'eclipse' is the command you would usually use.

George Shields (gherbs) wrote :

Using 13.10 (latest release 10-4-13) and clean of install fo Dart (eclipse).
Menus FAIL, solution is export UBUNTU_MENUPROXY= eclipse
Now menus work!

Basher Aobasher (aobasher) wrote :

it work fro me now, here is how to

sudo gedit /usr/share/applications/eclipse.desktop

update it to :

[Desktop Entry]
Version=1.0
Name=Eclipse
Exec=env UBUNTU_MENUPROXY= eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Type=Application
Categories=IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow
[NewWindow Shortcut Group]
Name=New Window
Exec=env UBUNTU_MENUPROXY= eclipse
TargetEnvironment=Unity

Peter Salzmann (petersalzmann) wrote :

I just upgraded 13.04 to 13.10 today 18/10/2013 and issue still exists with eclipse Kepler SR x64 version.
no worries with ubuntu build.

68 comments hidden view all 113 comments

Downloaded "http://download.eclipse.org/eclipse/downloads/drops4/R-4.3.1-201309111000/download.php?dropFile=eclipse-platform-4.3.1-linux-gtk.tar.gz" on Ubuntu 13.10, starting with OpenJDK 1.7.0_25: clicking the main menu bar entries does not show the menus.

67 comments hidden view all 113 comments
j (j-the-k) wrote :

Eclipse Indigo works with 13.10, as it does not seem to have the gobal menu integration.
The #8 workaround helped with Kepler, thanks.

Anders Hall (a.hall) wrote :

Nr 8 worked for me. Nr 16 worked when running as root.

Daniel Korsak (daniel-korsak) wrote :

I do not have "/usr/share/applications/eclipse.desktop". Installed eclipse from eclipse download page.
I have also the same problem after upgrade ubuntu to 13.10.

How can I fix it?

I also have same problem after upgrading into 13.10.

ian stansbury (istansbury22) wrote :

Comment 16 fixed for me.

Did have to change one line to

Exec=env UBUNTU_MENUPROXY= /opt/eclipse/eclipse
                                                                (my eclipse installed directory)

Wanted to clarify if others were having problems with the solution. Thanks for the solution.

@Daniel-

if you got to eclipse directory in terminal and:

export UBUNTU_MENUPROXY= eclipse

it should allow you to have a fixed solution launching with ./eclipse

I have an eclipse bundle downloaded (tar ball) with scala/go updates.
It works when you export it in your .bashrc.
You need to have a space after = and eclipse

曹树烽 (1033798960-n) wrote :

We can create a .desktop file ourself. Then use the "chmod u+x eclipse.desktop". Finally,we can cleak the Icon.

62 comments hidden view all 113 comments

Does the problem happen when using Oracle JRE or happens only with OpenJDK 1.7?

I have only tried with OpenJDK.

Same problem, again on 13.10. This time with:
eclipse-SDK-4.4M2-linux-gtk-x86_64.tar.gz

and Java:
java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b111)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b53, mixed mode)

64 comments hidden view all 113 comments

Since the package that configures the desktop file is "eclipse", " unity-gtk-module" has no relationship with this bug.

Changed in unity-gtk-module (Ubuntu):
status: Confirmed → Invalid
importance: Undecided → Critical
Changed in eclipse (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
gbolcer (gbolcer) wrote :

Used workaround. Menus work, Eclipse launches, but Ivy and Vaadin plugin menus do not. Eclipse assumes they are already installed, but no way to access them either through the toolbar or the right-click on project menus. Uinstall and reinstall have no effect.

Tin Tvrtkovic (tinchester) wrote :

UBUNTU_MENUPROXY makes Eclipse not use the global menu, right?

It works for me, but it's extra screen real-estate wasted and the HUD doesn't work.

Dac Chartrand (conner-bw) wrote :

Hi, this is a long shot but the symptoms are the same. That is, Java apps that used Global Menus working fine in 13.04 are now broken in 13.10 - the UBUNUTU_MENUPROXY being the same.

The possibly related (or unrelated?) bug was narrowed down to "Native crash in org.eclipse.swt.internal.gtk.OS._gtk_widget_show." Crash logs and test case here (in the thread):

https://bugs.eclipse.org/bugs/show_bug.cgi?id=419729

Ie. Launchpad bug #1241101. It would be nice to get some coordinated efforts on this?

Best regards,

Luis Martín (luismartinsev) wrote :

I've upgraded to Ubuntu 13.10 today and same problem. Everyone seems to fix their problem with:
env UBUNTU_MENUPROXY= path/to/eclipse
and editing eclipse.desktop to add the same to the Exec line,
but I'm still having this issue.

Netbeans (also Java) doesn't even start. I must say that just after upgrading Ubuntu, I tried to open Eclipse, but there was an error saying Java was not installed. It worked perfectly in Ubuntu 13.04 though.

So I've followed the steps provided here to reinstall Java: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
and then Eclipse starts with this annoying bug. The splash screen looks also buggy, displaying part of it repeated just below like a pattern.

Please I need this working. Any help would be really appreciated.

Enol (nfsu-2-91) wrote :

I have the same problem, the menus won't show. I did not install eclipse, just unpacked the jar.gz and run it. This worked fine in ubuntu 13.04, but doesn't in 13.10.

Patrick Roncagliolo (pat-96) wrote :

The problem affects my eclipse startup splash screen too...

Andrey T (tandrey-office) wrote :

I have exactly the same bug in eclipse - menus don't work. splash screen as in the previous message. Ubuntu 13.10.

Can you upload a screen-shot of you workspace?

Do you experience this same behaviour when:

- Editing images in GIMP?
- Cutting an image in Simple Scan?

Changed in eclipse (Ubuntu):
status: Triaged → Incomplete
Changed in unity-gtk-module (Ubuntu):
status: Invalid → Incomplete
Patrick Roncagliolo (pat-96) wrote :

Simple Scan works...
I don't have GIMP installed

"Can you upload a screen-shot of you workspace?"

This is a screenshot of my eclipse on a two-screens configuration... but i don't know how it can help us...

Marc-Andre Laperle (malaperle) wrote :

I think Eclipse used to be black-listed in raring in
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies/libappmenu.so
but now in Saucy it's in
/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libunity-gtk-module.so

Maybe it's not getting picked up because it's in a different .so?

I'm unable to reproduce this bug using two different computers.

Are you experiencing this bug after updating your system?

Marc-Andre Laperle (malaperle) wrote :

"Are you experiencing this bug after updating your system?"

Here is what I tested:

                                         eclipse ubuntu package eclipse kepler sr1
13.04 i386 fresh good good
13.10 i386 upgrade bad bad
13.10 x86_64 upgrade ? bad
13.10 i386 fresh bad bad
13.10 x86_64 fresh good bad

Marc-Andre Laperle (malaperle) wrote :

well, that was bad formatting, let's try this

13.04 i386 fresh install
    eclipse ubuntu package: good
    eclipse kepler sr1: good
13.10 i386 upgraded from 13.04
    eclipse ubuntu package: bad
    eclipse kepler sr1: bad
13.10 x86_64 upgraded from 13.0
    eclipse ubuntu package: ?
    eclipse kepler sr1: bad
13.10 i386 fresh install
    eclipse ubuntu package: bad
    eclipse kepler sr1: bad
13.10 x86_64 fresh install
    eclipse ubuntu package: good
    eclipse kepler sr1: bad

Thanks Marc, this is just what we needed. I will correct that line with "?":

13.04 i386 fresh install
    eclipse ubuntu package: good
    eclipse kepler sr1: good
13.10 i386 upgraded from 13.04
    eclipse ubuntu package: bad
    eclipse kepler sr1: bad
13.10 x86_64 upgraded from 13.0
    eclipse ubuntu package: good
    eclipse kepler sr1: bad
13.10 i386 fresh install
    eclipse ubuntu package: bad
    eclipse kepler sr1: bad
13.10 x86_64 fresh install
    eclipse ubuntu package: good
    eclipse kepler sr1: bad

Changed in unity-gtk-module (Ubuntu):
status: Incomplete → Invalid
Changed in eclipse (Ubuntu):
status: Incomplete → Triaged
Changed in unity-gtk-module (Ubuntu):
status: Invalid → Triaged
description: updated
tags: added: rls-t-incoming
50 comments hidden view all 113 comments
16 comments hidden view all 113 comments
deepak (deepatwal) wrote :

Hi guys,

I am very new to UBUNTU.

I have a question : eclipse ide 3.8 is very fine in 13.04 or not..?
 because as per the bug mentioned here I am facing the same problem.

igor (igoryonya) wrote :

The bug also affects GIMP and Inkscape

Launchpad Janitor (janitor) wrote :

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

igor (igoryonya) on 2014-01-20
affects: eclipse-eclipsers → inkscape (Ubuntu)
Changed in inkscape (Ubuntu):
status: New → Confirmed
igor (igoryonya) on 2014-01-20
affects: inkscape → gimp (Ubuntu)
Changed in gimp (Ubuntu):
status: New → Confirmed
1 comments hidden view all 113 comments

Since the origin of the bug is the "unity-gtk-module" package, this is the only affected one.

description: updated
no longer affects: eclipse (Ubuntu)
no longer affects: gimp (Ubuntu)
no longer affects: inkscape (Ubuntu)
Changed in unity-gtk-module:
status: New → Confirmed
Changed in hundredpapercuts:
status: New → Triaged
importance: Undecided → Critical
no longer affects: hundredpapercuts
vtec (vitekcvachoucek) wrote :

I have run a debugging session from the Eclipse side. When you click the global menu it is producing event that gets handed down to the main SWT loop, there Eclipse takes the event and gives it back to GTK calling gtk_main_do_event for precise targeting of the affected component. Without the global menu the event would popout back from GTK inside the Menu widget triggering something like menuIsAboutToShow callback. With global menu however the event is swallowed and never comes back.

The Java code in Eclipse has no role here nor the super-thin SWT native code. It an apparent regression in the behavior of the GTK library. In other words it is Ubuntu global menu back not being compatible with standard GTK behavior.

12 comments hidden view all 113 comments

*** Bug 426707 has been marked as a duplicate of this bug. ***

*** Bug 424672 has been marked as a duplicate of this bug. ***

12 comments hidden view all 113 comments

Revisiting this : I don't see this behaviour with Inkscape or with GIMP.

I still see this with Eclipse 4.3

The behaviour almost looks like the menu is being drawn behind the application window, but that could just be a product of the code flow mentioned above.

See attached image : the top of the menu visible in the menu bar area has been drawn, along with some of the menu spilling into the application window, but this seems to have stopped short of rendering the whole menu. This is the product of clicking the menu item.

In addition, the top-level menu titles are available in the HUD, but none of their content.

dapaldo (dpalomar) wrote :

Same behaviour with eclipse 3.8.1 and eclipse 4.3 and springsource tool suite (eclipse same version based) on ubuntu 14.04.
Tested with openjdk-7 and oracle-jdk7.
OS: ubuntu trusty 14.04
Only top-level menu items are available.

Launchpad Janitor (janitor) wrote :

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

Changed in oracle-jdk7-installer (Ubuntu):
status: New → Confirmed
Changed in oracle-jdk7-installer (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Critical
Raymond Wells (rfw2nd) wrote :

Confirmed on Trusty as well. Still no submenus w/ the gloabal menu.

matthieu vidal (mvidal0001) wrote :

Still a problem with trusty alpha ... except for the menu Edit

the problem is also there when "In Window Title Bars" is checked.

Changed in eclipse:
importance: Unknown → Critical
status: Unknown → Confirmed
8 comments hidden view all 113 comments
Bai Lee (calidion) wrote :

have the same problem.

Anders (eddiedog988) on 2014-03-13
Changed in unity-gtk-module (Ubuntu):
status: Triaged → Confirmed
Changed in oracle-jdk7-installer (Ubuntu):
status: Triaged → Confirmed
Jörg Frings-Fürst (jff-de) wrote :

Hi Anders,

why do you change the status from triaged to confirmed??

Jörg

C de-Avillez (hggdh2) wrote :

returned oracle-jdk7-installer to triaged.

@all: please provide an explanation of any and all status changes you make.

Changed in oracle-jdk7-installer (Ubuntu):
status: Confirmed → Triaged
William Hua (attente) on 2014-03-20
Changed in unity-gtk-module:
assignee: nobody → William Hua (attente)
Changed in unity-gtk-module (Ubuntu):
assignee: nobody → William Hua (attente)
status: Confirmed → In Progress
Changed in unity-gtk-module:
status: Confirmed → In Progress
description: updated
description: updated

for the keyboard shortcuts with the global menu see Bug417601

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-gtk-module - 0.0.0+14.04.20140328-0ubuntu1

---------------
unity-gtk-module (0.0.0+14.04.20140328-0ubuntu1) trusty; urgency=low

  [ CI bot ]
  * Stop using signal handler ids. Use
    g_signal_handlers_disconnect_by_data () instead.

  [ William Hua ]
  * Fix Eclipse and DBeaver menus. (LP: #1208019)
  * Watch use-underline on label instead of menu item. (LP: #1294947)
 -- Ubuntu daily release <email address hidden> Fri, 28 Mar 2014 10:54:34 +0000

Changed in unity-gtk-module (Ubuntu):
status: In Progress → Fix Released

Hooray! Any chance of a backport to Saucy or is it destined to be broken for that release forever? (although I suppose I'll be upgrading quite soon....)

matthieu vidal (mvidal0001) wrote :

Great !!! It works on the beta

but the icons of the menus are missing

Wiktor: Nizio (zap-4) wrote :

The proplem persists on Trusty in Eclipse. Menus 'Search', 'Source' and 'Refactor' become inaccessible after 1+ hour of working. They are okay only for a while when Eclipse is run. Not observed for any of the other menus.

Dan Jared (danjaredg) wrote :

I created the Java Ayatana Project http://code.google.com/p/java-swing-ayatana/, And I have a similar problem, when you change the menu items direct of menu bar, the menu items aren't refresh, and the Eclipse Kepler create and remove menu items direct of menu bar for a open file or selected project or resource.

William Hua (attente) wrote :

@zap-4 Hi Wiktor, my apologies, I'm not an Eclipse user. Is there a set of simple steps I could do to reproduce the missing menus problem?

William Hua (attente) wrote :

@zap-4 Also Wiktor, what Eclipse version are you using? Thanks.

Wiktor: Nizio (zap-4) wrote :

It's Eclipse Kepler Service Release 2 Build id: 20140224-0627 (Eclipse Standard) with Android plugin (ADT). I do not know the styeps. It happens about three times a day (sometimes in less than one hour) and requires Eclipse restart to heal..

matthieu vidal (mvidal0001) wrote :

IMPORTANT : I think this new problem (#101) is not specific to eclipse. Did you try the HUD (ALT+text of the menu) when this problem occurs ?

I've got this problem when playing (too long ... ) to FiveOrMore game. Only the HUD gives me access to the menu choices then the menus are accessible again with the mouse.

@mvidal0001 - Icons missing is the default GTK config option. The GNOME config panels don't show it, of course, because giving choices to users only confuses them, poor things. As does having icons on menus, which is "cluttered" and thus confusing. Apparently.

You can turn it back on like this...

http://ubuntuforums.org/showthread.php?t=1246454&p=7829482#post7829482

matthieu vidal (mvidal0001) wrote :

@adrian-wilkins

Thanks for the answer.

I've done this a long time ago and I have checked that it's still set like that.

I should have indicated that the icons are visible with the UBUNTU_MENUPROXY = 0 workaround.

Firefox is the only application having its menu icons in fact.

about #106 I'm working with the new option 'Menus in title bar"

This bug is still present in last daily build of ubuntu 14.04 LTS (16/04/2014). Is it planned to be solved before final release?

Thx

William Hua (attente) wrote :

Hi José, is the problem that some of the menus disappear after some Eclipse usage? Do you happen to know if there's an easy way to replicate that problem?

matthieu vidal (mvidal0001) wrote :

About Source and Refactor Menus the problem seems to appear when you work with two files of a different type.

ie. Java file vs a text file.

when focusing the text file as there are not Source and Refactor menus for a text file, these two menus are not reactivated when switching back to the Java file. They are empty as describes by the initial problem.

The HUD do not work for these menus and I do not see a workaround to reveale the content of these two menus.

This is a different problem of #106

William Hua (attente) wrote :

Hi matthieu, thanks, I managed to replicate it thanks to your instructions. I'll see if I can figure out what's happening...

the bug is still there 14.04 ....

.... Ubuntu based upon a gnome out of control !!!

... and yes ... I'm upset because of
 the confidence that I had about ubuntu ...

And no ... I won't recomand a phone or tablet with ubuntu inside.

Displaying first 40 and last 40 comments. View all 113 comments or add a comment.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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