This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 213629 - Incorrect menus are activated by mouse
Summary: Incorrect menus are activated by mouse
Status: VERIFIED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 226925 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-05 20:15 UTC by ekstrand
Modified: 2014-04-15 15:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ekstrand 2012-06-05 20:15:30 UTC
The active menu in the main window does not correctly track the mouse pointer in some cases. Often, the menu 1-2 items to the left of the mouse pointer is active & selected.

This is on Fedora 17 x86_64, with Java 1.7u4 installed via the x86_64 RPM from java.oracle.com.

To reproduce:
1. Start NetBeans
2. Click the "Help" menu. The menu will drop down; it may or may not promptly switch to displaying the menu one or two menus to the left.
3. Move the mouse left. Moving the mouse horizontally gets the menu selection out-of-sync with the mouse pointer, so as the mouse pointer moves the active menu changes, but is not the menu under the pointer. This usually happens within 1-3 sweeps on my system.

I see this with Java 1.7u4 in the following applications:
* NetBeans 7.1.2
* NetBeans 7.2 Beta
* JVisualVM 1.7u4 as shipped with the JDK

My machine is a laptop with an Intel graphics chip, running Fedora 17 x86_64. I am using Gnome 3.4 with Gnome Shell as my desktop environment. I do *not* see the problem with JEdit, or on OpenJDK as shipped by Fedora (java-1.7.0-openjdk-devel-1.7.0.3-2.1.fc17.6.x86_64; tested NetBeans 7.1.2, 7.2, and VisualVM 1.3.3).
Comment 1 ekstrand 2012-06-05 22:16:36 UTC
I have tried to reproduce this issue on Ubuntu, and see a similar but slightly different problem.

Setup:
* Ubuntu 12.04, x86_64
* Gnome Shell
* ATI graphics, dual monitors
* Java 1.7u4
* JVisualVM from 1.7u4 (since it exhibits the problem on my Fedora laptop, I thought it would be a suitable test case)

Action:
* Start JVisualVM
* Click Help menu

Result:
* Help menu appears and immediately disappears. Holding down the mouse button on the Help menu does not cause it to stay - it still disappears.

Expected result:
* Help menu appears and allows me to select a menu option

Additional notes:
* Starting NetBeans 7.2 Beta and selecting the Help menu resulted in a lockup of some component of my graphics system; probably Gnome Shell. Upon restarting my X environment and starting it again, the menus worked. The JVisualVM menus then worked as well.
Comment 2 ekstrand 2012-06-05 22:23:30 UTC
I just also tested again on my Fedora laptop with my Gnome session in graphics fallback mode (using the legacy Metacity window manager, I believe). I could not reproduce the issue in a couple tries, one with NetBeans 7.2 and another with JVisualVM.

Therefore, it seems that the problem only appears
* under Gnome Shell
* with Oracle Java
* more frequently on Fedora
* sporadically (although I can reproduce with high probability within a couple tries on under the above configuration)

In earlier testing I had also seen NetBeans crash the GUI environment on my laptop as well.

I do not know what is different in OpenJDK that seems to fix the bug.
Comment 3 Stanislav Aubrecht 2012-06-06 10:07:06 UTC
Is NetBeans window maximized when you're testing the menu bar?
Was JEdit window maximized as well?
Comment 4 ekstrand 2012-06-06 14:49:13 UTC
Yes, both NetBeans and JEdit were maximized.
Comment 5 fgrazi 2012-07-27 13:44:01 UTC
I have the same problem, that actually seems to me 2 distinct issues (possibly the cause is the same):

(A) the menu immediately closes in mazimized state (*), this happens both with both jdk1.6.0_23.

(B) The menu pops-up wrong. Again only in maximized state this happens with jdk1.7.0_03, for example click on one item another at left opens.


(*) Actually the problem seems to be the offset (both vertical & horizontal) between maximized and floating state. If you move the window at at screen top left (0,0) and maximize the menu works just fine!

The same happens with other java desktop applications like JEdit, it is surely a bug of JRE. Hope they will fix soon.

I have removed the NVIDIA driver and the problem persists, I am using Mint 13 cinnamon. Int is not a video card issue.
Comment 6 Stanislav Aubrecht 2012-09-04 09:50:09 UTC
Looks like a duplicate of #215977, please reopen if still reproducible in recent builds, thanks.
Comment 7 Marian Mirilovic 2013-03-04 09:39:13 UTC
*** Bug 226925 has been marked as a duplicate of this bug. ***
Comment 8 Marian Mirilovic 2013-03-04 09:40:51 UTC
reopen as new report came from NB 7.3 final - see Bug 226925
Comment 9 Stanislav Aubrecht 2013-05-17 15:29:07 UTC
OpenJDK was used in bug #226925 so let's keep this closed until there's a new report with Oracle JDK 1.7 and from NetBeans 7.3 or newer.
Comment 10 EruIlluvatar 2014-04-15 15:43:29 UTC
I just downloaded and installed NetBeans 8.0 with Oracle's Java 1.8 JDK and this issue occurs. Once more, moving the window (un-maximized) to the upper-left corner of the screen resolves the issue.

I have tried this in the following Desktop Environments, all with the same results:
1) KDE
2) Gnome Shell
3) Mate

I haven't tried it with OpenJDK 8 yet, so I will do that when I can.