Bug 1051 - org.eclipse.swt.widgets.Menu cannot be created over com.jogamp.newt.swt.NewtCanvasSWT
Summary: org.eclipse.swt.widgets.Menu cannot be created over com.jogamp.newt.swt.NewtC...
Alias: None
Product: Newt
Classification: JogAmp
Component: swt (show other bugs)
Version: 1
Hardware: All linux
: --- normal
Assignee: Petros Koutsolampros
Depends on:
Reported: 2014-08-24 12:31 CEST by geoff.ulman
Modified: 2015-06-05 13:40 CEST (History)
2 users (show)

See Also:
Type: ---
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description geoff.ulman 2014-08-24 12:31:16 CEST
The following simple, runnable class demonstrates the error:


Clicking anywhere in the window should bring up a SWT Menu, but instead nothing happens.

This additional example demonstrates the expected behavior using a com.jogamp.opengl.swt.GLCanvas:

Comment 1 Petros Koutsolampros 2014-08-24 22:58:58 CEST
Non-reproducable in OSX and Windows

Reproducable in older versions of jogl (tested at around 500 commits before current commit 2965f17f1abd3c3af640407187ebedded29ad105)

Seems fixed with swt 4.4, current jogl (tested at current commit 2965f17f1abd3c3af640407187ebedded29ad105) in arch linux (kernel: 3.12.9)
Comment 2 geoff.ulman 2014-08-25 00:42:43 CEST
I'm currently still experiencing the issue with the following setup:

OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)


java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-4ubuntu1~
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)


Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Ubuntu 14.04 LTS

linux kernel 3.13.0-32-generic

Both GTK Version 2.8.7 and 3.10.8

JOGL Release Version 2.2.0

Both SWT 4.4 and 4.3

Does any of that look potentially outdated or not covered by your test cases?

It looks like you used a development snapshot of JOGL instead of the latest release (2.2.0). Are you able to reproduce the issue in 2.2.0?
Comment 3 Petros Koutsolampros 2014-08-25 22:33:14 CEST
My bad, not fixed. 

It seems to actually be on and off... Some times the menu pops up some times not, and the button clicked (left-right) seems to affect whether it will..
Comment 4 geoff.ulman 2014-08-27 06:06:05 CEST
Interesting. In the configuration which I listed below, the popup over NewtCanvasSWT _never_ works.

I'm glad that you're able to at least intermittently reproduce the issue though.