|Summary:||Crash of swing components with JOGL and 2 screens|
|Product:||[JogAmp] Jogl||Reporter:||Mickaël <shao.micka>|
|Component:||x11||Assignee:||Sven Gothel <sgothel>|
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.