Eclipse menus don't show up in Trusty

Bug #1208019 reported by Hans Joachim Desserud
This bug affects 291 people
Affects Status Importance Assigned to Milestone
Eclipse
Unknown
Critical
GTK+
Fix Released
Medium
Unity GTK+ module
Fix Released
Undecided
William Hua
gtk+3.0 (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
William Hua
unity-gtk-module (Ubuntu)
Fix Released
Critical
William Hua
Trusty
Fix Released
Undecided
William Hua

Bug Description

[Impact]

Switching tabs between open source files with different file types in Eclipse causes the Source and Refactor menus to be empty in the global menu bar under Unity.

This is a severe usability problem for many Eclipse users. The fix proposed has been available in a PPA and is well-tested.

[Test Case]

1. Open a new project in Eclipse.
2. Open two files: one with a .java extension, another with a .txt extension.
3. Switch between the .java file and the .txt file and back again.
4. Open the Source or Refactor menu in the Unity global menu bar.

Expected result: menus with menu items
Actual result: empty menus for both

[Regression Potential]

The fix involves changes to both gtk and unity-gtk-module.

The changes to gtk are minimal and only involve the reversal of a pair of signal emissions, in a part of the code (GtkMenuTracker) which is normally used by desktop environments, not typical user applications. Therefore regression potential for the gtk update is unlikely.

The changes to unity-gtk-module involve emitting show and hide signals where they were none before has some regression potential for applications that are explicitly watching for when their menus are opening and closing. But this is rare for applications to do, and we likely would have already received bug reports for those that do. Being completely sure would require extensive testing across all gtk apps though.

Both changes together have been available as a PPA, thoroughly tested for quite some time now.

[Other Info]

The changes to unity-gtk-module depend on the changes to gtk, so both must be tested in simultaneity. Suggested to upload both to trusty-proposed at the same time.

Original bug report follows:

=== %< ===

****************
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

Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Revision history for this message
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)
Revision history for this message
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 161 comments
Revision history for this message
Fuad Hamidan (vootsugu) wrote :

I got the same issue

Revision history for this message
john ferrier (john-j-ferrier) wrote :

Same problem for me.

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
john ferrier (john-j-ferrier) wrote :

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

Revision history for this message
arno_b (arno.b) wrote :

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

Revision history for this message
Franck (alci) wrote :

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

Revision history for this message
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.

Revision history for this message
Adnan Hodzic (fooctrl) wrote : Re: [Bug 1208019] Re: Eclipse menus doesn't show up in Saucy

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
>

Revision history for this message
Wiktor: Nizio (zap-4) wrote : Re: Eclipse menus doesn't show up in Saucy

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.

Revision history for this message
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!

Revision history for this message
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

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Anders Hall (a.hall) wrote :

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

Revision history for this message
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?

Revision history for this message
Ismayilzadeh Zulfugar (su-nami) wrote :

I also have same problem after upgrading into 13.10.

Revision history for this message
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

Revision history for this message
Megam Systems (megam) wrote :

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

Revision history for this message
曹树烽 (1033798960-n) wrote :

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

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

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
Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
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,

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Patrick Roncagliolo (roncapat) wrote :

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

Revision history for this message
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.

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Can you upload a screen-shot of you workspace?

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

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
Revision history for this message
Patrick Roncagliolo (roncapat) 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...

Revision history for this message
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?

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

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

Are you experiencing this bug after updating your system?

Revision history for this message
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

Revision history for this message
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

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

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
Changed in inkscape (Ubuntu):
status: New → Confirmed
igor (igoryonya)
affects: eclipse-eclipsers → inkscape (Ubuntu)
Changed in gimp (Ubuntu):
status: New → Confirmed
igor (igoryonya)
affects: inkscape → gimp (Ubuntu)
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
Changed in oracle-jdk7-installer (Ubuntu):
status: New → Confirmed
Changed in oracle-jdk7-installer (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Critical
Changed in eclipse:
importance: Unknown → Critical
status: Unknown → Confirmed
Anders (eddiedog988)
Changed in unity-gtk-module (Ubuntu):
status: Triaged → Confirmed
Changed in oracle-jdk7-installer (Ubuntu):
status: Triaged → Confirmed
C de-Avillez (hggdh2)
Changed in oracle-jdk7-installer (Ubuntu):
status: Confirmed → Triaged
William Hua (attente)
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
Teo (teo1978)
description: updated
description: updated
Changed in unity-gtk-module (Ubuntu):
status: In Progress → Fix Released
85 comments hidden view all 161 comments
Revision history for this message
In , Lars Vogel (lars-vogel) wrote :

This should have been solved with Ubuntu 14.04. See https://bugs.launchpad.net/ubuntu/+source/unity-gtk-module/+bug/1208019

I mark this one as solved. Please reopen if you see any issue with Ubuntu 14.04

Revision history for this message
In , Lars Vogel (lars-vogel) wrote :

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

Revision history for this message
In , Michael Prentice (splaktar) wrote :

This is indeed fixed in Ubuntu 14.04.

Revision history for this message
In , Arunkumar-thondapu-i (arunkumar-thondapu-i) wrote :

Verified it is fixed on Ubuntu 14.04. The current version of Unity in Ubuntu 14.04 still does not show the 'Source' and 'Refactor' menus but even that problem has a fix which should be made available in an update soon. See https://bugs.launchpad.net/ubuntu/+source/unity-gtk-module/+bug/1208019/comments/116 for installing the fixed packages now.

6 comments hidden view all 161 comments
Revision history for this message
William Hua (attente) wrote :

@sergio91pt Hi, are you using Eclipse from the distro? Or upstream's more recent version?

Revision history for this message
William Hua (attente) wrote :

@sergio91pt The plugins crash disappeared when I upgraded to Eclipse Luna 4.4. I also tested with Kepler 4.3, so it might be exclusively the Ubuntu version with that crash.

If anyone else is experiencing the crash Sérgio mentioned re: plugins, you might want to try upstream's version.

Revision history for this message
Sérgio Faria (sergio91pt) wrote :

@attente I have both installed, but I always use my own install of Kepler (Java EE Developers suite, SR2, last update roughly 1 month ago).
I tested with both, using the same workspace (gets some shared plugins).

I also have jayata [1] installed, removed it and tested with JAVA_TOOL_OPTIONS="" but it still crashes.

Attached is a list of all plugins I have installed, some are from dev channels: gradle, groovy and the theme plugin.
I'll test Luna and report back.

[1]: https://code.google.com/p/java-swing-ayatana/

Revision history for this message
Sérgio Faria (sergio91pt) wrote :
Changed in eclipse:
status: Confirmed → Unknown
4 comments hidden view all 161 comments
Revision history for this message
In , Daniel-megert (daniel-megert) wrote :

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

Revision history for this message
Sérgio Faria (sergio91pt) wrote : Re: Eclipse menus doesn't show up in Saucy

@attente Sorry for taking so long. I've tried it on Luna, with most of my old plugins re-installed and it works without the constant crashing.

I deleted .metadata and restarted (which I think I didn't do before), now it also works on Kepler.

Revision history for this message
Sérgio Faria (sergio91pt) wrote :

*Rebooted not restarted...

Revision history for this message
William Hua (attente) wrote :

Sérgio, thanks for the workaround!

Revision history for this message
William Hua (attente) wrote :
Download full text (3.3 KiB)

Hmm... I seem to be getting a different crash on startup now:

Stack: [0x00007f4bd26d8000,0x00007f4bd27d9000], sp=0x00007f4bd27d5460, free space=1013k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libwebkitgtk-1.0.so.0+0x461ca9] webkit_web_view_get_type+0x2489
C [libgtk-x11-2.0.so.0+0x12d7e5] gtk_marshal_VOID__UINT_STRING+0x105

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(J)V+0
j org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(J)V+8
j org.eclipse.swt.widgets.Display.eventProc(JJ)J+157
v ~StubRoutines::call_stub
j org.eclipse.swt.internal.gtk.OS._gdk_window_process_all_updates()V+0
j org.eclipse.swt.internal.gtk.OS.gdk_window_process_all_updates()V+7
j org.eclipse.swt.widgets.Display.update()V+10
j org.eclipse.swt.widgets.Display.runDeferredLayouts()Z+60
j org.eclipse.swt.widgets.Display.readAndDispatch()Z+10
j org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run()V+638
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(Lorg/eclipse/e4/ui/model/application/MApplicationElement;Lorg/eclipse/e4/core/contexts/IEclipseContext;)Ljava/lang/Object;+57
j org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(Lorg/eclipse/e4/ui/model/application/MApplicationElement;)V+20
j org.eclipse.ui.internal.Workbench$5.run()V+310
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+111
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+88
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+82
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+109
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+132
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+57
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211
j org....

Read more...

1 comments hidden view all 161 comments
Revision history for this message
William Hua (attente) wrote :

Wiktor, how are you reproducing the bug? Are you using the PPA?

Revision history for this message
Sérgio Faria (sergio91pt) wrote : Re: [Bug 1208019] Re: Eclipse menus doesn't show up in Saucy

I can easily trigger this one by opening a new Window.
My wild guess would be a race of sorts in MenuItem.createHandle

C [libglib-2.0.so.0+0x38fe0] g_str_hash+0x0

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.gtk.OS._gtk_widget_show(J)V+0
j org.eclipse.swt.internal.gtk.OS.gtk_widget_show(J)V+8
j org.eclipse.swt.widgets.MenuItem.createHandle(I)V+249
j org.eclipse.swt.widgets.Widget.createWidget(I)V+2
j
org.eclipse.swt.widgets.MenuItem.<init>(Lorg/eclipse/swt/widgets/Menu;II)V+38
j
org.eclipse.ui.internal.SwitchToWindowMenu.fill(Lorg/eclipse/swt/widgets/Menu;I)V+97

2014-05-07 20:39 GMT+01:00 William Hua <email address hidden>:

> Wiktor, how are you reproducing the bug? Are you using the PPA?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1208019
>
> Title:
> Eclipse menus doesn't show up in Saucy
>
> Status in Eclipse:
> Unknown
> Status in Unity GTK+ module:
> In Progress
> Status in “oracle-jdk7-installer” package in Ubuntu:
> Triaged
> Status in “unity-gtk-module” package in Ubuntu:
> Fix Released
>
> 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)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/eclipse/+bug/1208019/+subscriptions
>

Revision history for this message
Marc-Andre Laperle (malaperle) wrote : Re: Eclipse menus doesn't show up in Saucy

@attente

For the webkit crash in webkit_web_view_get_type, either disable overlay-scrollbar with LIBOVERLAY_SCROLLBAR=0 or use a recent build of Eclipse Luna (which disables them at startup). See https://bugs.eclipse.org/bugs/show_bug.cgi?id=425614

Revision history for this message
In , jenskapitza (j-kapitza) wrote :

With current Java 8u5 bug is still there in normal eclipse Download

Revision history for this message
Marc-Andre Laperle (malaperle) wrote :

@sergio91pt

I can reproduce the same crash using the PPA and doing New Window. I'm using Eclipse 4.4-I20140509-2000

Revision history for this message
Marc-Andre Laperle (malaperle) wrote :

I also got the crash when doing Window > Customize Perspective > Command Groups Availability then enabling command groups. But it's not 100% of the time.

I'm using the PPA:
0.0.0+14.04.20140424-0ubuntu1ppa1

Revision history for this message
matthieu vidal (mvidal0001) wrote :

Hi folks !!!

The bug is also there with the newborn eclipse 4.4

Hi think it's time to apply Ubunty (or Unitou .... I'm not sure of the name) to the Razzies awards

Category: Linux geeks have a big problem with Java technology which is kicking their ass for 20 years ....

or

Category: Ubunty (or Unitou) is a kind of gnome .... but not exactly ... something different ... but not the same ...

Revision history for this message
waffen (mlacunza) wrote :

In my ubuntu 14.04 64bits with unity I cant reproduce the bug anymore.

I has been setting menus in the top of the windows and not in the top OS bar maybe that helps.

Revision history for this message
matthieu vidal (mvidal0001) wrote :
Revision history for this message
William Hua (attente) wrote :

Matthieu, does the problem still happen with the PPA I mentioned from https://bugs.launchpad.net/ubuntu/+source/unity-gtk-module/+bug/1208019/comments/116?

Revision history for this message
matthieu vidal (mvidal0001) wrote :

Somebody told you it was working ?

Since #116 ? Since April ?

I'm not interesting with crashes : 141 ... 140 ... 138 ... 137 ?

I'm struggling with Eclipse Global menu since the first Unito (Ubunty ?) release .... and I do not use Unity anymore ... except for this test.

Sorry

Revision history for this message
Franck (alci) wrote :

I don't really get what is happening to you guys... I used to see this bug, but not anymore since at least 13.10. I'm using eclipse on a daily basis with no problem (with egit and a clovergui plugin based on GEF). I just upgraded to Luna (4.4.0), and things work just fine.

Here is my .desktop file:

[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/home/franck/devel/outils/eclipse-4.4.0/icon.xpm
Exec=/home/franck/devel/outils/eclipse-4.4.0/eclipse
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=Eclipse

So there must be another parameter kicking in than just eclipse + unity global menus, as this work out of the box for me and my coworkers.
Notice I don't use eclipse package as they are outdated, I just use plain tar.gz directly from eclipse.

Revision history for this message
William Hua (attente) wrote :
Revision history for this message
William Hua (attente) wrote :
William Hua (attente)
description: updated
William Hua (attente)
description: updated
description: updated
Changed in gtk:
importance: Unknown → Medium
status: Unknown → Fix Released
William Hua (attente)
Changed in oracle-jdk7-installer (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "gtk+3.0_3.10.8-0ubuntu1.2.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
no longer affects: oracle-jdk7-installer (Ubuntu)
William Hua (attente)
summary: - Eclipse menus doesn't show up in Saucy
+ Eclipse menus doesn't show up in Trusty
Changed in unity-gtk-module:
status: In Progress → Fix Released
Changed in gtk+3.0 (Ubuntu):
status: New → Fix Released
Changed in gtk+3.0 (Ubuntu Trusty):
status: New → Confirmed
Changed in unity-gtk-module (Ubuntu Trusty):
status: New → Confirmed
Revision history for this message
Iain Lane (laney) wrote : Re: Eclipse menus doesn't show up in Trusty

I uploaded these, thanks Will.

Changed in gtk+3.0 (Ubuntu Trusty):
status: Confirmed → In Progress
assignee: nobody → William Hua (attente)
Changed in unity-gtk-module (Ubuntu Trusty):
status: Confirmed → In Progress
assignee: nobody → William Hua (attente)
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Hans, or anyone else affected,

Accepted gtk+3.0 into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/gtk+3.0/3.10.8-0ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

summary: - Eclipse menus doesn't show up in Trusty
+ Eclipse menus don't show up in Trusty
Changed in gtk+3.0 (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
William Hua (attente) wrote :

This fix isn't working because it requires both the gtk patch and the unity-gtk-module patch simultaneously.

Revision history for this message
Chris Halse Rogers (raof) wrote :

Hello Hans, or anyone else affected,

Accepted unity-gtk-module into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/unity-gtk-module/0.0.0+14.04.20140403-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in unity-gtk-module (Ubuntu Trusty):
status: In Progress → Fix Committed
Revision history for this message
William Hua (attente) wrote :

It fixed the problem in a 14.04 VM for me.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of the Stable Release Update for gtk+3.0 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

This bug was fixed in the package gtk+3.0 - 3.10.8-0ubuntu1.2

---------------
gtk+3.0 (3.10.8-0ubuntu1.2) trusty; urgency=medium

  [ Iain Lane ]
  * Update Vcs-Bzr to a trusty branch.

  [ William Hua ]
  * Take upstream git-menu-binding-emit-submenu-close-after-activate.patch:
    - Ensures that menu item activations occur before GMenuModel
      submenu-action state changes (LP: #1208019)
 -- William Hua <email address hidden> Mon, 28 Jul 2014 15:56:01 +0100

Changed in gtk+3.0 (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
murzzz (murzzz) wrote :

Also can confirm that proposed package fixed problem

Changed in unity-gtk-module (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Mathew Hodson (mhodson) wrote :

unity-gtk-module is still in -proposed and has not been moved to -updates yet. unity-gtk-module should still be marked Fix Committed for trusty.

Revision history for this message
Mateusz Stachowski (stachowski-mateusz) wrote :

It was moved to updates on 2014-08-21 so now it is Fix Released.

https://launchpad.net/ubuntu/trusty/+source/unity-gtk-module/0.0.0+14.04.20140403-0ubuntu2

Revision history for this message
MV (mvidal) wrote :

Hi

Eclipse Mars on future Ubuntu Wily Werewolf

Sorry guys ... not the same bug but we have trouble with eclipse sub menus

Hopefully that can be solved with :

UBUNTU_MENUPROXY=0

I fulfilled this bug report :

https://bugs.launchpad.net/ubuntu/+source/unity-gtk-module/+bug/1501340

Displaying first 40 and last 40 comments. View all 161 comments or add a comment.
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.