Skip to main content

Res: Exception (OpenGL) when running effects JNLP

7 replies [Last post]
Anonymous

Are you sure your JNLP xml is loading the JOGL libs ?

----- Mensagem original ----
De: Patrick Wright
Para: dev@scenegraph.dev.java.net
Enviadas: Sábado, 2 de Fevereiro de 2008 10:46:48
Assunto: Exception (OpenGL) when running effects JNLP

Hi

I'm
not
sure
if
I
should
report
this
to
the
update-N
team
or
here.
I
tried
running
the
new
Effects
Framework
Webstart
app
(the
version
that
tries
to
use
OGL
or
D3D)
on:
Java
6
Update
N
build
11
Firefox
3
beta
2
Ati
Radeon
Mobility
x700

The
following
exception
shows
in
the
console,
though
the
application
does
go
through
the
demo
(apparently
using
the
CPU
rendering,
according
to
the
text
in
the
lower
left).

If
you
want
me
to
file
this
as
bug
to
one
or
the
other
project,
let
me
know,
thanks.
Patrick

Java
Web
Start
1.6.0_10-ea
Using
JRE
version
1.6.0_10-ea
Java
HotSpot(TM)
Client
VM
User
home
directory
=
/home/patrick
----------------------------------------------------
c:

clear
console
window
f:

finalize
objects
on
finalization
queue
g:

garbage
collect
h:

display
this
help
message
m:

print
memory
usage
o:

trigger
logging
p:

reload
proxy
configuration
q:

hide
console
r:

reload
policy
configuration
s:

dump
system
and
deployment
properties
t:

dump
thread
list
v:

dump
thread
stack
0-5:
set
trace
level
to

----------------------------------------------------
Error
instantiating
com.sun.scenario.effect.impl.hw.ogl.OGLRenderer:
java.lang.reflect.InvocationTargetException

at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at
com.sun.scenario.effect.impl.hw.HWEffectPeer.findHwRenderer(HWEffectPeer.java:116)

at
com.sun.scenario.effect.impl.hw.HWEffectPeer.(HWEffectPeer.java:45)

at
java.lang.Class.forName0(Native
Method)

at
java.lang.Class.forName(Class.java:169)

at
com.sun.scenario.effect.impl.EffectPeer.isHWEffectPeerAvailable(EffectPeer.java:293)

at
com.sun.scenario.effect.impl.EffectPeer.getInstance(EffectPeer.java:219)

at
com.sun.scenario.effect.AbstractGaussian.updatePeer(AbstractGaussian.java:118)

at
com.sun.scenario.effect.AbstractGaussian.setRadius(AbstractGaussian.java:87)

at
com.sun.scenario.effect.AbstractGaussian.(AbstractGaussian.java:55)

at
com.sun.scenario.effect.Shadow.(Shadow.java:98)

at
com.sun.scenario.effect.Shadow.(Shadow.java:85)

at
com.sun.scenario.effect.Shadow.(Shadow.java:68)

at
com.sun.scenario.effect.PhongLighting.(PhongLighting.java:59)

at
demo.effect.intro.Intro.(Intro.java:114)

at
demo.effect.intro.Intro$16.run(Intro.java:604)

at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

at
java.awt.EventQueue.dispatchEvent(EventQueue.java:597)

at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)

at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused
by:
java.lang.UnsatisfiedLinkError:
no
gluegen-rt
in
java.library.path

at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)

at
java.lang.Runtime.loadLibrary0(Runtime.java:823)

at
java.lang.System.loadLibrary(System.java:1030)

at
com.sun.gluegen.runtime.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:91)

at
com.sun.gluegen.runtime.NativeLibLoader.access$000(NativeLibLoader.java:50)

at
com.sun.gluegen.runtime.NativeLibLoader$1.run(NativeLibLoader.java:69)

at
java.security.AccessController.doPrivileged(Native
Method)

at
com.sun.gluegen.runtime.NativeLibLoader.loadGlueGenRT(NativeLibLoader.java:67)

at
com.sun.gluegen.runtime.NativeLibrary.ensureNativeLibLoaded(NativeLibrary.java:399)

at
com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:163)

at
com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:129)

at
com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:109)

at
com.sun.opengl.impl.x11.X11GLDrawableFactory.(X11GLDrawableFactory.java:99)

at
java.lang.Class.forName0(Native
Method)

at
java.lang.Class.forName(Class.java:169)

at
javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:111)

at
com.sun.opengl.impl.GLDrawableFactoryImpl.getFactoryImpl(GLDrawableFactoryImpl.java:76)

at
com.sun.opengl.impl.Java2D.invokeWithOGLSharedContextCurrent(Java2D.java:314)

at
com.sun.opengl.impl.Java2D.initFBOShareContext(Java2D.java:557)

at
com.sun.opengl.impl.Java2D.getShareContext(Java2D.java:451)

at
com.sun.scenario.effect.impl.hw.ogl.OGLRenderer.(OGLRenderer.java:54)

...
27
more

---------------------------------------------------------------------
To
unsubscribe,
e-mail:
dev-unsubscribe@scenegraph.dev.java.net
For
additional
commands,
e-mail:
dev-help@scenegraph.dev.java.net

Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Patrick Wright

I was trying the demo from Chris' blog on the Effects project,
http://download.java.net/javadesktop/scenario/effects/demos/Intro-OGL.jnlp

which is supposed to be OGL-enabled. I didn't dig through all the
imported JNLP files, but it looks like the third or fourth one
(nested) Decora-Impl-0.5.jnlp, does specifically include JOGL stuff.

Patrick

On Feb 3, 2008 9:23 PM, Alessandro Borges wrote:
>
> Are you sure your JNLP xml is loading the JOGL libs ?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

Hans Muller

Dmitri Trembovetski suggested this:

... [the problem is] most likely because of the drivers. He can run any
swing application from the terminal with J2D_TRACE_LEVEL=4 env.
variable set (and with -Dsun.java2d.opengl=true) to see exactly why the
pipeline wasn't enabled.

- Hans

Patrick Wright wrote:
> I was trying the demo from Chris' blog on the Effects project,
> http://download.java.net/javadesktop/scenario/effects/demos/Intro-OGL.jnlp
>
> which is supposed to be OGL-enabled. I didn't dig through all the
> imported JNLP files, but it looks like the third or fourth one
> (nested) Decora-Impl-0.5.jnlp, does specifically include JOGL stuff.
>
> Patrick
>
> On Feb 3, 2008 9:23 PM, Alessandro Borges wrote:
>
>> Are you sure your JNLP xml is loading the JOGL libs ?
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

Patrick Wright

Thanks for the pointer to the env var. The output is very long, am
attaching it here. The recurring message is "could not find an
appropriate fbconfig". If you would like me to report this somewhere
else, please let me know.

Thanks
Patrick

On Feb 4, 2008 9:59 PM, Hans Muller wrote:
>
> Dmitri Trembovetski suggested this:
>
> ... [the problem is] most likely because of the drivers. He can run any
> swing application from the terminal with J2D_TRACE_LEVEL=4 env.
> variable set (and with -Dsun.java2d.opengl=true) to see exactly why the
> pipeline wasn't enabled.
>
>
> - Hans
>
>
>
> Patrick Wright wrote:
> > I was trying the demo from Chris' blog on the Effects project,
> > http://download.java.net/javadesktop/scenario/effects/demos/Intro-OGL.jnlp
> >
> > which is supposed to be OGL-enabled. I didn't dig through all the
> > imported JNLP files, but it looks like the third or fourth one
> > (nested) Decora-Impl-0.5.jnlp, does specifically include JOGL stuff.
> >
> > Patrick
> >
> > On Feb 3, 2008 9:23 PM, Alessandro Borges wrote:
> >
> >> Are you sure your JNLP xml is loading the JOGL libs ?
> >>
> >>
> >
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> > For additional commands, e-mail: dev-help@scenegraph.dev.java.net
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>
>
[j2d_trace_level_4.txt]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

campbell
Offline
Joined: 2003-06-24
Points: 0

Hi Patrick,

Could you also post the full output of "glxinfo". I'll need to compare that to the log you just posted to figure out what's going on. Did you use the latest binaries from ati.com to install, or did you use some other mechanism?

Thanks,
Chris

Patrick Wright

Hi Chris

glxinfo output is attached, thanks for looking into it.

I downloaded the latest binaries (I believe they are from Jan 18) and
followed the install instructions (basically running the installer as
sudo and accepting all defaults). Apart from glxgears, I briefly
tested Compiz and that seemed to work (am not using it because Firefox
interacts badly with it)--so have no reason to believe the install
failed, but you never know.

Thanks
Patrick

On Feb 5, 2008 6:22 PM, wrote:
> Hi Patrick,
>
> Could you also post the full output of "glxinfo". I'll need to compare that to the log you just posted to figure out what's going on. Did you use the latest binaries from ati.com to install, or did you use some other mechanism?
>
> Thanks,
> Chris
> [Message sent by forum member 'campbell' (campbell)]
>
> http://forums.java.net/jive/thread.jspa?messageID=257512
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>
>
[glxinfo.txt]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

campbell
Offline
Joined: 2003-06-24
Points: 0

Hi Patrick,

Thanks for the quick reply. It's been a while since I've installed the latest ATI drivers on Linux, but I've seen this issue before. The problem is that the drivers are not using the right version of GLX (you'll see that it's reporting the use of GLX 1.2 on the server side; Java 2D requires GLX 1.3 or higher). This page might be of help:
http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide

Basically, if you get it to the point where it reports GLX 1.3 support (for both client and server), I'd expect things to work.

Thanks,
Chris

Patrick Wright

Hi Chris

Thanks for taking the time to look through the logs. I will try and
track down the GLX version issue, but there is one open posting
related directly to this problem on the Phoronix ATI/Linux driver
forums

http://www.phoronix.com/forums/showthread.php?t=7529&highlight=glx+1.3

He's can't run the OGL pipeline with this driver version, so it might
just be an open issue with the ATI drivers--at least ATI is making
some progress with them. May just have to wait.

Thanks for your help
Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net