Bug 216

Summary: Cannot create GLCanvas on non-default GraphicsDevice
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P1    
Version: 1   
Hardware: All   
OS: linux   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:48:42 CET


---- Reported by jbwest 2006-04-14 11:03:23 ----

Multiheaded (NVIDIA) Linux system.

Create GLCanvas with cap=GLCapabilities [DoubleBuffered: true, Stereo: false,
HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red: 12, Green: 12,
Blue: 12, Alpha: 12, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum:
0, Multisample: false ] graphicsDevice= X11GraphicsDevice[screen=1]

results in:
javax.media.opengl.GLException: Error while enumerating available XVisualInfos
	at
com.sun.opengl.impl.x11.X11GLDrawableFactory.chooseGraphicsConfiguration(X11GLDrawableFactory.java:135)
	at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:113)

Create on Screen 0 is ok, but, of course, the canvas cannot be added to a
container on screen 1.

Note that "java screen 1" isn't a "Screen 1" in X11 parlance; this is a single
big desktop using NVIDIA proprietary driver.



---- Additional Comments From kbr 2006-04-17 01:04:08 ----

I'll need to ask you to please help with this investigation as I don't have a
machine with this configuration to test on.

How are you getting the desktop to span the two displays? Could you please
attach your xorg.conf or similar? I assume there is one X server running for
both displays? Is this a single graphics card with dual outputs, or two graphics
cards?

Could you please check out and build the current source tree as per the
instructions on the JOGL home page? It is going to be necessary to instrument
some routines in X11GLDrawableFactory.java to see what is going wrong and to
figure out what should be happening. The last time I heard, which was a couple
of years ago, multihead support on X11 platforms was working correctly in JOGL.

It would probably be easiest to conduct this discussion over email, so please
feel free to email me.




---- Additional Comments From jbwest 2006-05-30 13:19:39 ----

Latest CVS (as of 5/29/2006) has resolved the issue with the addition of the
Xinerama-aware native code.

-jbw



--- Bug imported by sgothel@jausoft.com 2010-03-24 07:48 EDT  ---

This bug was previously known as _bug_ 216 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=216