Could not init gl function pointers

Started by karlb, September 20, 2003, 14:43:56

Previous topic - Next topic

princec

That log isn't it crashing unfortunately. I have a feeling you're falling foul of a driver cock-up.

Cas :)

karlb

Strange. All other OpenGL apps work fine (Blender, Quake3, Tuxracer etc.). Is there anything I can do except waiting for a new driver?

-- Karl

princec

I have a funny feeling that it's actually getting the wrong driver somehow, or the other apps would likely experience some trouble.

What you can do is badger Elias a lot about it because he's Mr Linux :D

Cas :)

elias

Thanx alot!

Now, I can't do much more without a real exception. The fact that you can reach the menu suggests that there's a driver issue in play, but anymore than that is guesswork.

Cas, don't you have a straight up jar file for him to try from the command line?

- elias

princec

Yep; just download this zip file which contains only the jars. Unzip somewhere nice where the liblwjgl_d.so is and run from the cmd line with:
java -ea -cp alienflux-full-code.jar:alienflux-full-game.jar:alienflux-full-resources.jar:spgl.jar:lwjgl.jar -Djava.library.path=. xap.Game

Cas :)

karlb

Isn't a java.lang.NumberFormatException a real exception? (see post at the end of page one)

Starting download now...

-- Karl

karlb

I'm getting an error page when trying to download:

You are not authorized to view this page
<snip>

-- Karl

princec

Bloody hell, Win2k security actually works... forgot to check the permissions on the file :) Everyone can read it now.

Cas :)

cfmdobbie

Quote from: "karlb"Isn't a java.lang.NumberFormatException a real exception? (see post at the end of page one)

Naa, that's just AF failing to read in some properties or a licence key or some such.  It's a non-fatal error and occurs all the time.  Probably shouldn't even make it into the log, hey? :wink:
ellomynameis Charlie Dobbie.

karlb

Here's the Alien Flux_err.log:

thodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Thu Sep 25 15:35:57 CEST 2003      at java.lang.Class.getMethod0(Class.java:1756)
Thu Sep 25 15:35:57 CEST 2003      at java.lang.Class.getMethod(Class.java:963)
Thu Sep 25 15:35:57 CEST 2003      at org.lwjgl.openal.BaseAL.getPathFromJWS(BaseAL.java:146)
Thu Sep 25 15:35:57 CEST 2003      at org.lwjgl.openal.BaseAL.create(BaseAL.java:100)
Thu Sep 25 15:35:57 CEST 2003      at org.lwjgl.openal.AL.create(AL.java:93)
Thu Sep 25 15:35:57 CEST 2003      at xap.Game.init(Game.java:582)
Thu Sep 25 15:35:57 CEST 2003      at xap.Game.main(Game.java:377)
org.lwjgl.openal.OpenALException: Unable to load function pointers to openal.
Thu Sep 25 15:35:57 CEST 2003      at org.lwjgl.openal.BaseAL.nCreate(Native Method)
Thu Sep 25 15:35:57 CEST 2003      at org.lwjgl.openal.BaseAL.create(BaseAL.java:118)
Thu Sep 25 15:35:57 CEST 2003      at org.lwjgl.openal.AL.create(AL.java:93)
Thu Sep 25 15:35:57 CEST 2003      at xap.Game.init(Game.java:582)
Thu Sep 25 15:35:57 CEST 2003      at xap.Game.main(Game.java:377)
java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Thu Sep 25 15:37:08 CEST 2003      at java.lang.Class.getMethod0(Class.java:1756)
Thu Sep 25 15:37:08 CEST 2003      at java.lang.Class.getMethod(Class.java:963)
Thu Sep 25 15:37:08 CEST 2003      at org.lwjgl.openal.BaseAL.getPathFromJWS(BaseAL.java:146)
Thu Sep 25 15:37:08 CEST 2003      at org.lwjgl.openal.BaseAL.create(BaseAL.java:100)
Thu Sep 25 15:37:08 CEST 2003      at org.lwjgl.openal.AL.create(AL.java:93)
Thu Sep 25 15:37:08 CEST 2003      at xap.Game.init(Game.java:582)
Thu Sep 25 15:37:08 CEST 2003      at xap.Game.main(Game.java:377)
org.lwjgl.openal.OpenALException: Unable to load function pointers to openal.
Thu Sep 25 15:37:08 CEST 2003      at org.lwjgl.openal.BaseAL.nCreate(Native Method)
Thu Sep 25 15:37:08 CEST 2003      at org.lwjgl.openal.BaseAL.create(BaseAL.java:118)
Thu Sep 25 15:37:08 CEST 2003      at org.lwjgl.openal.AL.create(AL.java:93)
Thu Sep 25 15:37:08 CEST 2003      at xap.Game.init(Game.java:582)
Thu Sep 25 15:37:08 CEST 2003      at xap.Game.main(Game.java:377)

And here's the other error file:


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
     just occurred. Please refer to release documentation for possible
     reason and solutions.


Current Java thread:
   at org.lwjgl.opengl.CoreGL13.glActiveTexture(Native Method)
   at com.shavenpuppy.jglib.opengl.GL.glActiveTexture(GL.java:118)
   at xap.background.TextureSortState.preRender(TextureSortState.java:38)
   at com.shavenpuppy.jglib.renderer.Renderer$StateList.render(Renderer.java:168)
   at com.shavenpuppy.jglib.renderer.Renderer.draw(Renderer.java:435)
   at com.shavenpuppy.jglib.renderer.Renderer.render(Renderer.java:307)
   at xap.features.BackgroundFeature.render(BackgroundFeature.java:483)
   at xap.features.BattleZoneFeature$BattleZoneInstance.render(BattleZoneFeature.java:94)
   at xap.features.GamePanelFeature$GamePanelInstance.renderBackground(GamePanelFeature.java:419)
   at xap.gui.Component.render(Component.java:1279)
   at xap.gui.Component.renderChildren(Component.java:1347)
   at xap.gui.Component.render(Component.java:1288)
   at xap.gui.Interface.render(Interface.java:568)
   at xap.Game.main(Game.java:441)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:04 1469487    /usr/local/java/j2sdk1.4.1_01/bin/java
0804e000-0804f000 rw-p 00005000 03:04 1469487    /usr/local/java/j2sdk1.4.1_01/bin/java
40000000-40014000 r-xp 00000000 03:04 2464657    /lib/ld-2.3.2.so
40014000-40015000 rw-p 00013000 03:04 2464657    /lib/ld-2.3.2.so
40016000-4001f000 r-xp 00000000 03:04 2073340    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so
4001f000-40020000 rw-p 00008000 03:04 2073340    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so
40022000-40023000 rw-s dd5e1000 03:04 2693911    /dev/dri/card0
40023000-40030000 r-xp 00000000 03:04 2465366    /lib/libpthread-0.10.so
40030000-40031000 rw-p 0000d000 03:04 2465366    /lib/libpthread-0.10.so
40073000-40075000 r-xp 00000000 03:04 2464666    /lib/libdl-2.3.2.so
40075000-40076000 rw-p 00002000 03:04 2464666    /lib/libdl-2.3.2.so
40076000-4019d000 r-xp 00000000 03:04 2464660    /lib/libc-2.3.2.so
4019d000-401a2000 rw-p 00127000 03:04 2464660    /lib/libc-2.3.2.so
401a5000-404bd000 r-xp 00000000 03:04 1273252    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so
404bd000-40671000 rw-p 00317000 03:04 1273252    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so
40681000-40693000 r-xp 00000000 03:04 2465355    /lib/libnsl-2.3.2.so
40693000-40694000 rw-p 00011000 03:04 2465355    /lib/libnsl-2.3.2.so
40696000-406b7000 r-xp 00000000 03:04 2465354    /lib/libm-2.3.2.so
406b7000-406b8000 rw-p 00020000 03:04 2465354    /lib/libm-2.3.2.so
406b8000-406c8000 r-xp 00000000 03:04 1894262    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so
406c8000-406ca000 rw-p 0000f000 03:04 1894262    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so
406ca000-406eb000 r-xp 00000000 03:04 1894263    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so
406eb000-406ed000 rw-p 00020000 03:04 1894263    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so
406ed000-40702000 r-xp 00000000 03:04 1894265    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so
40702000-40704000 rw-p 00014000 03:04 1894265    /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so
40704000-41dd2000 r--s 00000000 03:04 1894306    /usr/local/java/j2sdk1.4.1_01/jre/lib/rt.jar
41e15000-41e2c000 r--s 00000000 03:04 1894286    /usr/local/java/j2sdk1.4.1_01/jre/lib/sunrsasign.jar
41e2c000-41e9d000 r--s 00000000 03:04 1894288    /usr/local/java/j2sdk1.4.1_01/jre/lib/jsse.jar
41e9d000-41eb0000 r--s 00000000 03:04 1894287    /usr/local/java/j2sdk1.4.1_01/jre/lib/jce.jar
41eb0000-4216c000 r--s 00000000 03:04 1894304    /usr/local/java/j2sdk1.4.1_01/jre/lib/charsets.jar
44214000-4421b000 r-xp 00000000 03:04 2465356    /lib/libnss_compat-2.3.2.so
4421b000-4421c000 rw-p 00006000 03:04 2465356    /lib/libnss_compat-2.3.2.so
4421c000-4421f000 r--s 00000000 03:04 3003449    /usr/local/java/j2sdk1.4.1_01/jre/lib/ext/dnsns.jar
4c2a0000-4c426000 r--p 00000000 03:04 2906127    /usr/lib/locale/locale-archive
4c426000-4c432000 r-xp 00000000 03:04 1910404    /usr/X11R6/lib/libXext.so.6.4
4c432000-4c433000 rw-p 0000c000 03:04 1910404    /usr/X11R6/lib/libXext.so.6.4
4c433000-4c43b000 r-xp 00000000 03:04 2465360    /lib/libnss_nis-2.3.2.so
4c43b000-4c43c000 rw-p 00007000 03:04 2465360    /lib/libnss_nis-2.3.2.so
4c43c000-4c445000 r-xp 00000000 03:04 2465358    /lib/libnss_files-2.3.2.so
4c445000-4c446000 rw-p 00008000 03:04 2465358    /lib/libnss_files-2.3.2.so
4c446000-4c463000 r--s 00000000 03:04 3003448    /usr/local/java/j2sdk1.4.1_01/jre/lib/ext/sunjce_provider.jar
4c463000-4c502000 r--s 00000000 03:04 3003450    /usr/local/java/j2sdk1.4.1_01/jre/lib/ext/localedata.jar
4c502000-4c510000 r--s 00000000 03:04 3003451    /usr/local/java/j2sdk1.4.1_01/jre/lib/ext/ldapsec.jar
4c510000-4c637000 r--s 00000000 03:04 1959583    /home/karl/lwjgl/af/alienflux-full-code.jar
4c637000-4c695000 r--s 00000000 03:04 1959584    /home/karl/lwjgl/af/alienflux-full-game.jar
4c695000-4df8a000 r--s 00000000 03:04 1959585    /home/karl/lwjgl/af/alienflux-full-resources.jar
4df8a000-4e02d000 r--s 00000000 03:04 1959587    /home/karl/lwjgl/af/spgl.jar
4e02d000-4e096000 r--s 00000000 03:04 1959586    /home/karl/lwjgl/af/lwjgl.jar
4e096000-4e0ec000 r-xp 00000000 03:04 1959588    /home/karl/lwjgl/af/liblwjgl_d.so
4e0ec000-4e0ef000 rw-p 00055000 03:04 1959588    /home/karl/lwjgl/af/liblwjgl_d.so
4e0f0000-4e1a8000 r-xp 00000000 03:04 1910402    /usr/X11R6/lib/libX11.so.6.2
4e1a8000-4e1ab000 rw-p 000b8000 03:04 1910402    /usr/X11R6/lib/libX11.so.6.2
4e1ab000-4e1ad000 rw-s e093b000 03:04 2693911    /dev/dri/card0
4e1ad000-4e1b0000 rw-s f0c00000 03:04 2693911    /dev/dri/card0
4e1b0000-4e1b4000 rw-s f0eef000 03:04 2693911    /dev/dri/card0
4e1b8000-4e255000 r-xp 00000000 03:04 2481461    /usr/lib/libstdc++.so.5.0.5
4e255000-4e26a000 rw-p 0009d000 03:04 2481461    /usr/lib/libstdc++.so.5.0.5
4e26f000-4e276000 r-xp 00000000 03:04 2465488    /lib/libgcc_s.so.1
4e276000-4e277000 rw-p 00007000 03:04 2465488    /lib/libgcc_s.so.1
4e277000-4e2f0000 r-xp 00000000 03:04 1910609    /usr/X11R6/lib/libGL.so.1.2
4e2f0000-4e2f4000 rw-p 00078000 03:04 1910609    /usr/X11R6/lib/libGL.so.1.2
4e2f7000-4e360000 r-xp 00000000 03:04 1910492    /usr/X11R6/lib/libGLU.so.1.3
4e360000-4e36a000 rw-p 00069000 03:04 1910492    /usr/X11R6/lib/libGLU.so.1.3
4e36a000-4e873000 rwxp 00000000 03:04 2546868    /usr/X11R6/lib/modules/dri/fglrx_dri.so
4e8be000-568be000 rw-s f0000000 03:04 2693911    /dev/dri/card0
568be000-568ce000 rw-s fe9e0000 03:04 2693911    /dev/dri/card0
568ce000-56cce000 rw-s e8a77000 03:04 2693911    /dev/dri/card0
56cce000-56dce000 rw-s e0001000 03:04 2693911    /dev/dri/card0
56dce000-5708a000 rw-s e0101000 03:04 2693911    /dev/dri/card0
5708a000-571ca000 rw-s e03bd000 03:04 2693911    /dev/dri/card0
5725b000-5775b000 rw-s f0700000 03:04 2693911    /dev/dri/card0
5775b000-57c5b000 rw-s f7b00000 03:04 2693911    /dev/dri/card0
5840e000-58424000 rw-s f0e83000 03:04 2693911    /dev/dri/card0
587fc000-5883c000 rw-s f0c43000 03:04 2693911    /dev/dri/card0
5887f000-588bf000 rw-s f0c03000 03:04 2693911    /dev/dri/card0
58902000-58942000 rw-s f0c83000 03:04 2693911    /dev/dri/card0
589e7000-58a27000 rw-s f0cc3000 03:04 2693911    /dev/dri/card0
58a27000-58a67000 rw-s f0d03000 03:04 2693911    /dev/dri/card0
58a67000-58aa7000 rw-s f0d43000 03:04 2693911    /dev/dri/card0
58aa7000-58ae7000 rw-s f0d83000 03:04 2693911    /dev/dri/card0
58ae7000-58b27000 rw-s f0dc3000 03:04 2693911    /dev/dri/card0
58b27000-58b67000 rw-s f0e03000 03:04 2693911    /dev/dri/card0
58b67000-58ba7000 rw-s f0e43000 03:04 2693911    /dev/dri/card0
58ba7000-58bfd000 rw-s f0e99000 03:04 2693911    /dev/dri/card0
58bfd000-58d53000 rw-s f0ef3000 03:04 2693911    /dev/dri/card0
58d53000-58da9000 rw-s f1049000 03:04 2693911    /dev/dri/card0
58da9000-58e54000 rw-s f109f000 03:04 2693911    /dev/dri/card0
58e54000-58eff000 rw-s f114a000 03:04 2693911    /dev/dri/card0
58eff000-58f3f000 rw-s f11f5000 03:04 2693911    /dev/dri/card0
58f3f000-58f7f000 rw-s f1235000 03:04 2693911    /dev/dri/card0
58f7f000-58fbf000 rw-s f1275000 03:04 2693911    /dev/dri/card0
58fbf000-58fff000 rw-s f12b5000 03:04 2693911    /dev/dri/card0

Local Time = Thu Sep 25 15:36:11 2003
Elapsed Time = 15
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)
#


-- Karl

elias

It seems it cannot find the OpenAL library. Do you have libopenal.so in your AF directory?

- elias

princec

That's not actually what's causing the problem though - it's barfing in glActiveTexture, which means there's a bug in the driver.

(AF runs without openAL being present - it just tells you there won't be any sound)

Cas :)

elias

Hm, LWJGL should have disabled OpenGL1.3 because of missing symbols already. Can you try with the liblwjgl_d.so I gave you and give the list of extensions it disables? The lines look like:

NOTICE: %s disabled because of missing driver symbols

- elias

elias

Never mind that - I've found the reason it's not disabled. We do our own checking from java, independent from the native core. It will require some more careful thinking to fix.

- elias