JOAL Couln't load native AL library

classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Sven Gothel
Administrator
On 11/12/2012 09:20 PM, Jkrzysztof [via jogamp] wrote:
> Hi,
>
> Log was to big to upload.
> It can be found here: http://pastebin.com/MDHDq6UZ
>
> Appreciate your help,
> K.

Kafka ? :)

>

Have you set:
  -Djogamp.debug=all
or
  -Djnlp.jogamp.debug=all
?

I assume not, since your trace files does not contain any string starting w/ like:
  NativeLibrary.findLibrary
  JNILibLoaderBase:

Pls do so - this info will give us a clue if a native OpenAL lib loading
attampt happend.

The debug flag will bloat the trace file even more - a lot.

~Sven



signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Sven Gothel
Administrator
In reply to this post by Jkrzysztof
On 11/12/2012 09:20 PM, Jkrzysztof [via jogamp] wrote:
> Hi,
>
> Log was to big to upload.
> It can be found here: http://pastebin.com/MDHDq6UZ
>
> Appreciate your help,
> K.
>

Regardless of the additional requested debug flags ..

Your system is Win7 32bit and the joal native jar contains:

> sven@risa:~/projects/JOGL/builds/v2.0-rc11/jogamp-all-platforms/jar$ unzip -l joal-natives-windows-i586.jar
> Archive:  joal-natives-windows-i586.jar
>   Length      Date    Time    Name
> ---------  ---------- -----   ----
>         0  2012-11-01 02:12   META-INF/
>       106  2012-11-01 02:12   META-INF/MANIFEST.MF
>     62255  2012-11-01 02:12   joal.dll
>    109080  2012-11-01 02:12   OpenAL32.dll
>    444952  2012-11-01 02:12   wrap_oal.dll
> ---------                     -------
>    616393                     5 files
Which OpenAL32.dll etc ..should work on your system.

I see that you use the DEPRECATED JNLPAppletLauncher,
which could cause the problem!

Please use either 'native' JNLP-Applets
or _RECOMMENDED_ the NApplet way as shown on our JOGL applet-test homepage.

The following JOGL/JOAL test uses both, hence will use JNLP-Applets if available:
 <http://jogamp.org/deployment/jogamp-current/jogl-demos/applet-gearsjoal.html>

I will add a version using NApplet later, as described here:
 <http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal-napplet.html>

However, it should be pretty easy to modify your html code to use NApplet
_or_ native JNLP-Applets.

Note: NApplet's are supported w/ all JVM's, incl. OpenJDK.

~Sven



signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

gouessej
Administrator
Sven Gothel wrote
Note: NApplet's are supported w/ all JVM's, incl. OpenJDK.
JOGL Applets still get frozen on my machine and I use OpenJDK with Icedtea-web:
http://jogamp.org/deployment/jogamp-current/jogl-demos/jogl-newt-applet-runner-angelesgl2es1.html
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Sven Gothel
Administrator
On 11/13/2012 01:28 AM, gouessej [via jogamp] wrote:
>     Sven Gothel wrote
>     Note: NApplet's are supported w/ all JVM's, incl. OpenJDK.
>
> JOGL Applets still get frozen on my machine and I use OpenJDK with Icedtea-web:
> http://jogamp.org/deployment/jogamp-current/jogl-demos/jogl-newt-applet-runner-angelesgl2es1.html

Yeah, looks like the stability of that IcedTea plugin varies from person to
person and time to time :(

But one thing for sure, Xerxes can run it fine :)

Joke aside, can you post details of your used distribution
and OpenJDK / IcedTea packages used ?
Then we may have a chance to track something down.

Will run some tests on Wheeze and Kubuntu in a sec ..

~Sven



signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Sven Gothel
Administrator
In reply to this post by gouessej
On 11/14/2012 02:29 AM, Sven Gothel wrote:

> On 11/13/2012 01:28 AM, gouessej [via jogamp] wrote:
>>     Sven Gothel wrote
>>     Note: NApplet's are supported w/ all JVM's, incl. OpenJDK.
>>
>> JOGL Applets still get frozen on my machine and I use OpenJDK with Icedtea-web:
>> http://jogamp.org/deployment/jogamp-current/jogl-demos/jogl-newt-applet-runner-angelesgl2es1.html
>
> Yeah, looks like the stability of that IcedTea plugin varies from person to
> person and time to time :(
>
> But one thing for sure, Xerxes can run it fine :)
>
> Joke aside, can you post details of your used distribution
> and OpenJDK / IcedTea packages used ?
> Then we may have a chance to track something down.
>
> Will run some tests on Wheeze and Kubuntu in a sec ..
>
[1] Debian/Wheezy:
  - Firefox 16.0.2
  - Java Version: 1.6.0_24, VM: OpenJDK 64-Bit Server VM
  - OpenJDK6 6b24-1.11.5-1
  - icedtea-6-plugin:amd64                   1.3.1-1

[1] Debian/Wheezy:
  - Firefox 16.0.2
  - Java Version: 1.7.0_03, VM: OpenJDK 64-Bit Server VM
  - OpenJDK7 7u3-2.1.3-1
  - icedtea-7-plugin:amd64                   1.3.1-1


It's 'funny' that (A) work, but not (B).

Admitted, (B) is sort of tricky when it comes to mixed code
but is in it's limits of the spec.
(B) does:
 b1 - launch directly into an Applet instance inside a signed JAR
 b2 - tries to get permissions (code signing relevant) .. and fails
 b3 - if it would not have failed, it would have loaded the GLEventListener
      from an unsigned JAR and utilized that.

Note that b1 is still secure, since we don't grab the whole privilege block
for an extended amount of code, only to read properties.

[Will test w/ kubuntu 12.10 soon]
   
A - https://jogamp.org/deployment/jogamp-current/jogl-applet-version-napplet.html
  - [1] OK
  - [2] OK

B - https://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal-napplet.html
  - [1] Error:

Exception in thread "Applet" java.lang.ExceptionInInitializerError
        at com.jogamp.common.util.PropertyAccess.addTrustedPrefix(PropertyAccess.java:52)
        at jogamp.newt.Debug.<clinit>(Debug.java:52)
        at com.jogamp.newt.awt.applet.JOGLNewtAppletBase.<clinit>(JOGLNewtAppletBase.java:58)
        at com.jogamp.newt.awt.applet.JOGLNewtApplet1Run.<clinit>(JOGLNewtApplet1Run.java:95)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:745)
        at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:687)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:905)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
        at java.security.AccessController.checkPermission(AccessController.java:558)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:284)
        at java.lang.Class.getProtectionDomain(Class.java:2123)
        at com.jogamp.common.util.SecurityUtil$2.run(SecurityUtil.java:52)
        at com.jogamp.common.util.SecurityUtil$2.run(SecurityUtil.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.common.util.SecurityUtil.getCerts(SecurityUtil.java:50)
        at com.jogamp.common.util.SecurityUtil.<clinit>(SecurityUtil.java:46)
        ... 13 more
java.lang.NullPointerException
        at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:154)
        at sun.applet.AppletPanel.run(AppletPanel.java:380)
        at java.lang.Thread.run(Thread.java:679)
java.lang.NullPointerException
        at sun.applet.AppletPanel.run(AppletPanel.java:430)
        at java.lang.Thread.run(Thread.java:679)


  - [2] Error:

Unable to find class net.sourceforge.jnlp.security.VariableX509TrustManagerJDK7
JAR https://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar not found. Continuing.
JAR https://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar not found. Continuing.
JAR https://jogamp.org/deployment/jogamp-current/jar/jogl-test.jar not found. Continuing.
netx: Initialization Error: Could not initialize applet. (com.jogamp.newt.awt.applet.JOGLNewtApplet1Run)
netx: Initialization Error: Could not initialize applet. (com.jogamp.newt.awt.applet.JOGLNewtApplet1Run)
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet.
    at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:754)
    at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:687)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:905)
Caused by: java.lang.ClassNotFoundException: com.jogamp.newt.awt.applet.JOGLNewtApplet1Run
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1609)
    at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:744)
    ... 2 more
java.lang.NullPointerException
    at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:154)
    at sun.applet.AppletPanel.run(AppletPanel.java:379)
    at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
    at sun.applet.AppletPanel.run(AppletPanel.java:429)
    at java.lang.Thread.run(Thread.java:722)


> ~Sven
>
>


--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1


signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Xerxes Rånby
2012-11-14 03:26, Sven Gothel [via jogamp] skrev:

> On 11/14/2012 02:29 AM, Sven Gothel wrote:
>
> > On 11/13/2012 01:28 AM, gouessej [via jogamp] wrote:
> >>     Sven Gothel wrote
> >>     Note: NApplet's are supported w/ all JVM's, incl. OpenJDK.
> >>
> >> JOGL Applets still get frozen on my machine and I use OpenJDK with Icedtea-web:
> >> http://jogamp.org/deployment/jogamp-current/jogl-demos/jogl-newt-applet-runner-angelesgl2es1.html
> >
> > Yeah, looks like the stability of that IcedTea plugin varies from person to
> > person and time to time :(
> >
> > But one thing for sure, Xerxes can run it fine :)
> >
> > Joke aside, can you post details of your used distribution
> > and OpenJDK / IcedTea packages used ?
> > Then we may have a chance to track something down.
> >
> > Will run some tests on Wheeze and Kubuntu in a sec ..
> >
> [1] Debian/Wheezy:
>   - Firefox 16.0.2
>   - Java Version: 1.6.0_24, VM: OpenJDK 64-Bit Server VM
>   - OpenJDK6 6b24-1.11.5-1
>   - icedtea-6-plugin:amd64                   1.3.1-1
>
> [1] Debian/Wheezy:
>   - Firefox 16.0.2
>   - Java Version: 1.7.0_03, VM: OpenJDK 64-Bit Server VM
>   - OpenJDK7 7u3-2.1.3-1
>   - icedtea-7-plugin:amd64                   1.3.1-1
>
I assume the icedtea-7-plugin 1.3.1-1 setup is [2]

>   - [2] Error:
>
> Unable to find class net.sourceforge.jnlp.security.VariableX509TrustManagerJDK7
> JAR https://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar not found. Continuing.
> JAR https://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar not found. Continuing.
> JAR https://jogamp.org/deployment/jogamp-current/jar/jogl-test.jar not found. Continuing.
> netx: Initialization Error: Could not initialize applet. (com.jogamp.newt.awt.applet.JOGLNewtApplet1Run)
> netx: Initialization Error: Could not initialize applet. (com.jogamp.newt.awt.applet.JOGLNewtApplet1Run)

This indicate a problem with the IcedTea plugin, looks like it have timed out or similar issue while downloading the jar.
Thus if the plugin manages to download all jars == application runs fine and if it for some reason time-out then you will hit the bug.
I will investigate further.

How many concurrect web-accesses do the jogamp webserver handle?

Cheers
Xerxes



Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Xerxes Rånby
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Sven Gothel
Administrator
In reply to this post by Xerxes Rånby
On 11/14/2012 10:17 AM, Xerxes Rånby [via jogamp] wrote:
>
> This indicate a problem with the IcedTea plugin, looks like it have timed out
> or similar issue while downloading the jar.
> Thus if the plugin manages to download all jars == application runs fine and
> if it for some reason time-out then you will hit the bug.
> I will investigate further.

Thank you.

>
> How many concurrect web-accesses do the jogamp webserver handle?

I haven't tested this - but it's a fairly good machine (8 cores, 8GB ram,
apache2):
  MaxKeepAliveRequests 100

We don't use prefork or worker now,
so I guess it depends on resources.

~Sven

>
> Cheers
> Xerxes
>


signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

JKrzysztof
In reply to this post by Sven Gothel
Hi,

Here is trace with debug on:
http://www.sendspace.com/file/n7vi6a (5MB)

BR
Krzysztof
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Xerxes Rånby
JKrzysztof wrote
Hi,

Here is trace with debug on:
http://www.sendspace.com/file/n7vi6a (5MB)

BR
Krzysztof
Thank you,
While investigating your log my conclusion is that the Gluegen TempJarCache is not yet initialized. The plugin have downloaded the native jars, in this case the plugin already got the jars in its plugin cache (304) but something still prevents the native jar to get extracted into the Gluegen TempJarCache, also the extracted path never gets added to the list of folders where JOAL looks for the unpacked natives. Note that its both the JOAL tool library and the OpenAL library fails to load.

I will investigate the log further and try reproduce this on a windows machine using the same JDK version.
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

JKrzysztof
Appreciate your help :)

BR
Reply | Threaded
Open this post in threaded view
|

Re: JOAL Couln't load native AL library

Xerxes Rånby
JKrzysztof wrote
Appreciate your help :)

BR
Like sgothel wrote earlier, please test using "NApplet" deployment:
The latest JogAmp releases can operate without the now deprecated JNLPAppletLauncher, please test a change to your applet html code to look something like this:

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      width="200" height="200">
   <param name="code" value="com.jogamp.newt.awt.applet.JOGLNewtApplet1Run">
   <param name="archive" value="jar/gluegen-rt.jar,
                                jar/jogl-all.jar,
                                jar/joal.jar,
                                jar/jogl-test.jar">
   <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
   <param name="gl_event_listener_class" value="com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2">
   <param name="gl_profile" value="GL2ES2">
   <param name="gl_swap_interval" value="1">
   <param name="gl_debug" value="false">
   <param name="gl_trace" value="false">
   <comment>
     <embed code="com.jogamp.newt.awt.applet.JOGLNewtApplet1Run"
          width="200" height="200"
          type="application/x-java-applet;version=1.6"
          pluginspage="http://java.sun.com/javase/downloads/ea.jsp"
          archive="jar/gluegen-rt.jar,
                   jar/jogl-all.jar,
                   jar/joal.jar,
                   jar/jogl-test.jar"
          java_arguments="-Dsun.java2d.noddraw=true"
          gl_event_listener_class="com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2"
          gl_profile="GL2ES2"
          gl_swap_interval="1"
          gl_debug="false"
          gl_trace="false">
        <noembed>Sorry, no Java support detected.</noembed>
     </embed>
   </comment>
</object>


12