Bug 613 - Crash of swing components with JOGL and 2 screens
Summary: Crash of swing components with JOGL and 2 screens
Status: RESOLVED WORKSFORME
Alias: None
Product: Jogl
Classification: JogAmp
Component: x11 (show other bugs)
Version: 1
Hardware: pc_x86_64 linux
: --- major
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2012-09-04 16:22 CEST by Mickaël
Modified: 2012-09-17 06:32 CEST (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickaël 2012-09-04 16:22:21 CEST
To reproduce, implement a JFrame composed by a simple JButton and a JPanel. In the panel, add a JOGL context to draw a simple image (for example).

The problem is : when you move the frame from the first screen to the second, and when the screen separation cuts the JFrame in two parts with the same width (call it the "bug position"), most of the time, swing components crash and you have to close the frame.

This problem appeared with Java 7, several weeks ago.

With JOGL 2.0, the behavior of the frame can be slightly different : the frame moves itself on the second screen, then on the first, etc... it runs in a loop, and it's difficult to select it in order to move on a screen (in fact, leave the "bug position" named above). But to see this behavior, the frame have to be resizable. If it's not, its behavior is the first described above.

Other information, this bug appears on Linux (tested on Red Hat and Fedora), not on Windows (it works correctly on it).
Comment 1 Sven Gothel 2012-09-17 06:32:49 CEST
Is this within a Xinerama setup, i.e. one big desktop where one X11 Screen covers all monitors ?

Bug 615 is similar if not using Xinerama, maybe you like to try again.

However, pls provide detailed about the setup and test case,
the more detailed the recipe for reproduction is - the better.
I.e. you could produce a unit test .. and certain setup details ..

However, I tested:

VirtualBox, Ubuntu 12.04, 64bit, 2 CPUs
GL_VENDOR: VMware, Inc.
GL_RENDERER: Gallium 0.4 on llvmpipe (LLVM 0x300)
GL_VERSION: 2.1 Mesa 8.0.2

2 Screens (xinerama setup)

java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

Test:
  java .. com.jogamp.opengl.test.junit.jogl.awt.TestJScrollPaneMixHwLw01AWT -time 100000

Slides the JFrame w/ mixed lw/hw components via 2 screens .. no crash,
all works fine. Sure .. a little 'jump' happened when moving from A -> B Screen.

Tested w/ latest source code - you may find an aggregate build here:
<http://jogamp.org/deployment/archive/master/gluegen_586-joal_355-jogl_803-jocl_672/>
<http://jogamp.org/deployment/archive/master/gluegen_586-joal_355-jogl_803-jocl_672/archive/jogamp-all-platforms.7z>

Please retest .. if bug still exists re-open report and describe in detail. Thank you.