Bug 1051

Summary: org.eclipse.swt.widgets.Menu cannot be created over com.jogamp.newt.swt.NewtCanvasSWT
Product: [JogAmp] Newt Reporter: geoff.ulman
Component: swtAssignee: Petros Koutsolampros <pjgl>
Status: IN_PROGRESS ---    
Severity: normal CC: bryan.osborn, stacktracer
Priority: ---    
Version: 1   
Hardware: All   
OS: linux   
Type: --- SCM Refs:
Workaround: ---

Description geoff.ulman 2014-08-24 12:31:16 CEST
The following simple, runnable class demonstrates the error:

https://gist.github.com/ulmangt/e5aa014c1eb8c75328cd

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:

https://gist.github.com/ulmangt/3abfcd7bccb8ad6195d2
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)

or

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

or

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.