Bug 216 - Cannot create GLCanvas on non-default GraphicsDevice
Summary: Cannot create GLCanvas on non-default GraphicsDevice
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All linux
: P1 normal
Assignee: Sven Gothel
Depends on:
Reported: 2006-04-14 11:03 CEST by Sven Gothel
Modified: 2010-03-24 07:48 CET (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
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 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

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.


--- 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