OpenGl4Java crash with nvidia

Hello,

my problem is that I can’t launch any OpenGl4Java program. I always get the following message.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4CB588F0
Function=glXGetCurrentContext+0x0
Library=/usr/lib/libGL.so

Current Java thread:
at gl4java.GLContext.gljMakeCurrentNative(Native Method)
at gl4java.GLContext.gljMakeCurrent(GLContext.java:2472)
- locked <0x4421cc90> (a gl4java.GLContext)
at gl4java.awt.GLCanvas.sDisplay(GLCanvas.java:697)
at gl4java.awt.GLAnimCanvas.run(GLAnimCanvas.java:466)
at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 16:02 65041 /opt/java/j2sdk1.4.1/bin/java
0804e000-0804f000 rw-p 00005000 16:02 65041 /opt/java/j2sdk1.4.1/bin/java
40000000-40011000 r-xp 00000000 16:02 20684 /lib/ld-2.3.1.so
40011000-40012000 rw-p 00011000 16:02 20684 /lib/ld-2.3.1.so
40012000-4001b000 r-xp 00000000 16:02 64428 /opt/java/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
4001b000-4001c000 rw-p 00008000 16:02 64428 /opt/java/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
4001d000-4002a000 r-xp 00000000 16:02 20703 /lib/libpthread-0.10.so
4002a000-4002d000 rw-p 0000d000 16:02 20703 /lib/libpthread-0.10.so
4006e000-40070000 r-xp 00000000 16:02 20690 /lib/libdl-2.3.1.so
40070000-40071000 rw-p 00001000 16:02 20690 /lib/libdl-2.3.1.so
40071000-4017a000 r-xp 00000000 16:02 20688 /lib/libc-2.3.1.so
4017a000-4017f000 rw-p 00109000 16:02 20688 /lib/libc-2.3.1.so
40184000-4049c000 r-xp 00000000 16:02 64434 /opt/java/j2sdk1.4.1/jre/lib/i386/client/libjvm.so
4049c000-40650000 rw-p 00317000 16:02 64434 /opt/java/j2sdk1.4.1/jre/lib/i386/client/libjvm.so
40660000-40670000 r-xp 00000000 16:02 20692 /lib/libnsl-2.3.1.so
40670000-40671000 rw-p 00010000 16:02 20692 /lib/libnsl-2.3.1.so
40673000-40693000 r-xp 00000000 16:02 20691 /lib/libm-2.3.1.so
40693000-40694000 rw-p 0001f000 16:02 20691 /lib/libm-2.3.1.so
40694000-406a4000 r-xp 00000000 16:02 64438 /opt/java/j2sdk1.4.1/jre/lib/i386/libverify.so
406a4000-406a6000 rw-p 0000f000 16:02 64438 /opt/java/j2sdk1.4.1/jre/lib/i386/libverify.so
406a6000-406c7000 r-xp 00000000 16:02 64439 /opt/java/j2sdk1.4.1/jre/lib/i386/libjava.so
406c7000-406c9000 rw-p 00020000 16:02 64439 /opt/java/j2sdk1.4.1/jre/lib/i386/libjava.so
406c9000-406de000 r-xp 00000000 16:02 64441 /opt/java/j2sdk1.4.1/jre/lib/i386/libzip.so
406de000-406e0000 rw-p 00014000 16:02 64441 /opt/java/j2sdk1.4.1/jre/lib/i386/libzip.so
406e0000-41dae000 r–s 00000000 16:02 65017 /opt/java/j2sdk1.4.1/jre/lib/rt.jar
41df1000-41e08000 r–s 00000000 16:02 64467 /opt/java/j2sdk1.4.1/jre/lib/sunrsasign.jar
41e08000-41e79000 r–s 00000000 16:02 64475 /opt/java/j2sdk1.4.1/jre/lib/jsse.jar
41e79000-41e8c000 r–s 00000000 16:02 64468 /opt/java/j2sdk1.4.1/jre/lib/jce.jar
41e8c000-42148000 r–s 00000000 16:02 64976 /opt/java/j2sdk1.4.1/jre/lib/charsets.jar
4c270000-4c271000 r-xp 00000000 16:02 64457 /opt/java/j2sdk1.4.1/jre/lib/i386/libjawt.so
4c271000-4c272000 rw-p 00000000 16:02 64457 /opt/java/j2sdk1.4.1/jre/lib/i386/libjawt.so
4c272000-4c273000 rw-s 40000000 16:02 64269 /dev/nvidia0
4c273000-4c276000 r–s 00000000 16:02 64464 /opt/java/j2sdk1.4.1/jre/lib/ext/dnsns.jar
4c276000-4c279000 r–s 00000000 16:02 66181 /home/oli/Desktop/DemoBox.jar
4c279000-4c27b000 r–s 00000000 16:02 64318 /home/oli/Desktop/GT01.jar
4c27b000-4c284000 r-xp 00000000 16:02 20693 /lib/libnss_compat-2.3.1.so
4c284000-4c285000 rw-p 00009000 16:02 20693 /lib/libnss_compat-2.3.1.so
4c285000-4c2bd000 r–s 00000000 16:02 522882 /opt/java/j2sdk1.4.1/jre/lib/ext/gl4java.jar
4c2bd000-4c2db000 r–s 00000000 16:02 522884 /opt/java/j2sdk1.4.1/jre/lib/ext/gl4java-glutfonts.jar
4c2db000-4c372000 r–s 00000000 16:02 522886 /opt/java/j2sdk1.4.1/jre/lib/ext/gl4java-glffonts.jar
4c372000-4c38f000 r–s 00000000 16:02 64463 /opt/java/j2sdk1.4.1/jre/lib/ext/sunjce_provider.jar
4c38f000-4c39d000 r–s 00000000 16:02 64466 /opt/java/j2sdk1.4.1/jre/lib/ext/ldapsec.jar
4c39d000-4c3ab000 r–s 00000000 16:02 522888 /opt/java/j2sdk1.4.1/jre/lib/ext/png.jar
4c3ab000-4c44a000 r–s 00000000 16:02 64465 /opt/java/j2sdk1.4.1/jre/lib/ext/localedata.jar
4c44a000-4c711000 r-xp 00000000 16:02 64449 /opt/java/j2sdk1.4.1/jre/lib/i386/libawt.so
4c711000-4c726000 rw-p 002c6000 16:02 64449 /opt/java/j2sdk1.4.1/jre/lib/i386/libawt.so
4c74b000-4c79e000 r-xp 00000000 16:02 64448 /opt/java/j2sdk1.4.1/jre/lib/i386/libmlib_image.so
4c79e000-4c79f000 rw-p 00052000 16:02 64448 /opt/java/j2sdk1.4.1/jre/lib/i386/libmlib_image.so
4c79f000-4c7a1000 r-xp 00000000 16:02 429562 /usr/X11R6/lib/X11/locale/common/xlcDef.so.2
4c7a1000-4c7a2000 rw-p 00001000 16:02 429562 /usr/X11R6/lib/X11/locale/common/xlcDef.so.2
4c7a2000-4c7a3000 rwxp 00000000 16:02 4120 /dev/zero
4c7a3000-4c7a4000 rwxp 00000000 16:02 4120 /dev/zero
4c7a4000-4c7a5000 rwxp 00000000 16:02 4120 /dev/zero
4c7a5000-4c7a6000 rwxp 00000000 16:02 4120 /dev/zero
4c7a6000-4c7a7000 rwxp 00000000 16:02 4120 /dev/zero
4c7a7000-4c7a8000 rwxp 00000000 16:02 4120 /dev/zero
4c7a8000-4c7a9000 rwxp 00000000 16:02 4120 /dev/zero
4c7a9000-4c7aa000 rwxp 00000000 16:02 4120 /dev/zero
4c7aa000-4c7b0000 r-xp 00000000 16:02 429696 /usr/X11R6/lib/libXp.so.6.2
4c7b0000-4c7b1000 rw-p 00006000 16:02 429696 /usr/X11R6/lib/libXp.so.6.2
4c7b1000-4c7f7000 r-xp 00000000 16:02 429700 /usr/X11R6/lib/libXt.so.6.0
4c7f7000-4c7fb000 rw-p 00045000 16:02 429700 /usr/X11R6/lib/libXt.so.6.0
4c7fb000-4c807000 r-xp 00000000 16:02 429691 /usr/X11R6/lib/libXext.so.6.4
4c807000-4c808000 rw-p 0000c000 16:02 429691 /usr/X11R6/lib/libXext.so.6.4
4c808000-4c80c000 r-xp 00000000 16:02 429701 /usr/X11R6/lib/libXtst.so.6.1
4c80c000-4c80d000 rw-p 00003000 16:02 429701 /usr/X11R6/lib/libXtst.so.6.1
4c80d000-4c8c4000 r-xp 00000000 16:02 429689 /usr/X11R6/lib/libX11.so.6.2
4c8c4000-4c8c7000 rw-p 000b7000 16:02 429689 /usr/X11R6/lib/libX11.so.6.2
4c8c7000-4c8ce000 r-xp 00000000 16:02 429688 /usr/X11R6/lib/libSM.so.6.0
4c8ce000-4c8cf000 rw-p 00007000 16:02 429688 /usr/X11R6/lib/libSM.so.6.0
4c8cf000-4c8e2000 r-xp 00000000 16:02 429687 /usr/X11R6/lib/libICE.so.6.3
4c8e2000-4c8e4000 rw-p 00012000 16:02 429687 /usr/X11R6/lib/libICE.so.6.3
4c8e5000-4c9ab000 r-xp 00000000 16:02 64451 /opt/java/j2sdk1.4.1/jre/lib/i386/libfontmanager.so
4c9ab000-4c9c6000 rw-p 000c5000 16:02 64451 /opt/java/j2sdk1.4.1/jre/lib/i386/libfontmanager.so
4c9c6000-4c9fa000 r-xp 00000000 16:02 77150 /usr/lib/libstdc+±2-libc6.1-1-2.9.0.so
4c9fa000-4ca06000 rw-p 00033000 16:02 77150 /usr/lib/libstdc+±2-libc6.1-1-2.9.0.so
4ca08000-4ca22000 r-xp 00000000 16:02 429561 /usr/X11R6/lib/X11/locale/common/ximcp.so.2
4ca22000-4ca24000 rw-p 00019000 16:02 429561 /usr/X11R6/lib/X11/locale/common/ximcp.so.2
4ca24000-4cb27000 r-xp 00000000 16:02 66175 /opt/java/j2sdk1.4.1/jre/lib/i386/libGL4JavaJauGljJNI14.so
4cb27000-4cb2b000 rw-p 00102000 16:02 66175 /opt/java/j2sdk1.4.1/jre/lib/i386/libGL4JavaJauGljJNI14.so
4cb39000-4cb7c000 r-xp 00000000 16:02 64325 /usr/lib/libGL.so.1.0.3123
4cb7c000-4cb7f000 rw-p 00042000 16:02 64325 /usr/lib/libGL.so.1.0.3123
4cb81000-4cee9000 r-xp 00000000 16:02 64327 /usr/lib/libGLcore.so.1.0.3123
4cee9000-4cef1000 rw-p 00367000 16:02 64327 /usr/lib/libGLcore.so.1.0.3123
4cf98000-4d004000 r-xp 00000000 16:02 25334 /usr/X11R6/lib/libGLU.so.1.3
4d004000-4d014000 rw-p 0006c000 16:02 25334 /usr/X11R6/lib/libGLU.so.1.3
4d014000-4d04a000 r-xp 00000000 16:02 1308 /usr/lib/libstdc+±3-libc6.2-2-2.10.0.so
4d04a000-4d05b000 rw-p 00036000 16:02 1308 /usr/lib/libstdc+±3-libc6.2-2-2.10.0.so
4d05d000-4d164000 rw-s 00000000 00:04 32769 /SYSV00000000 (deleted)
4d164000-55164000 rw-s 10000000 16:02 64269 /dev/nvidia0
55223000-55325000 rw-s 80000000 16:02 64269 /dev/nvidia0
55325000-55335000 rw-s 00810000 16:02 64269 /dev/nvidia0

Local Time = Thu Oct 31 18:41:35 2002
Elapsed Time = 7

The exception above was detected in native code outside the VM

Java VM: Java HotSpot™ Client VM (1.4.1_01-b01 mixed mode)

I have the new nvidia-1.0.3123 driver installed but already tried it with older ones. Strange is that I can launch ‘glxgears’
‘quake’ and other 3D stuff. I have heard that it might be a nvidia bug, but that helps me not much, because I need them running right now, in order to program for my study.

I hope you can help me!
Thanks in advance.
Oli
:slight_smile:

debian sid
asus 7100 mx

As root, type

cp /usr/lib/libGL.so.1.0.3123 /usr/lib/libGL.so

When I installed linux on my box it named the GL files with version info appended to the filename hope it works.

Sounds like you did not setup your XF86Config-4 file in /etc/X11/

There are some readme’s in the nvidia stuff:
/usr/share/doc/NVIDIA_GLX-1.0 … or so…

You should go through those. You will know if it is setup once glxinfo reports a working system like so:
glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.2
client glx extensions:

etc…

hope that helps,

Jamie

Hello,

thanks for your help, but neither of your
suggestions did work.

‘glxinfo’ provides the following output.

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.2
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_SGIX_swap_group, GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce2 MX/AGP/3DNOW!
OpenGL version string: 1.3.1 NVIDIA 31.23
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_S3_s3tc, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shared_texture_palette,
GL_EXT_stencil_wrap, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_cube_map, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_EXT_vertex_weighting,
GL_IBM_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_blend_square,
GL_NV_evaluators, GL_NV_fence, GL_NV_fog_distance,
GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
GL_NV_register_combiners, GL_NV_texgen_emboss, GL_NV_texgen_reflection,
GL_NV_texture_env_combine4, GL_NV_texture_rectangle,
GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_SGIS_generate_mipmap, GL_SGIS_multitexture,
GL_SGIS_texture_lod
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat

0x21 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 0 0 None
0x22 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 0 0 None
0x23 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 16 0 0 None
0x24 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 16 0 0 None

How can I use a newer (cvs version) of OpenGl4Java. I downloaded already the latest cvs version, but now I don’t now how to install it. Or has anybody a better idea ?

Big Thank’s to all

Oli
:slight_smile:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.