Issue with running a sample on GNU/Linux

I am not able to run a sample on Linux. Below are the details on the environment setup I have tried out. Please help me with pointers to resolve the issue.



Linux environment: x86_64 x86_64 x86_64 GNU/Linux

Observation: Xlib: extension “NV-GLX” missing on display “localhost:10.0”.

jME3 nightly build used: jME3_2012-02-06.zip

Followed instructions as in https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:simpleapplication_from_the_commandline



This is the error I see when running the sample:



Feb 6, 2012 4:37:57 PM com.jme3.system.JmeDesktopSystem initialize

INFO: Running on jMonkeyEngine 3.0.0 Beta

Feb 6, 2012 4:37:57 PM com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory: /home/jmonkeyEngine/HelloJME3/build

Feb 6, 2012 4:37:57 PM com.jme3.system.lwjgl.LwjglAbstractDisplay run

INFO: Using LWJGL 2.8.2

Feb 6, 2012 4:37:57 PM com.jme3.system.lwjgl.LwjglDisplay createContext

INFO: Selected display mode: 640 x 480 x 0 @0Hz

Xlib: extension “NV-GLX” missing on display “localhost:10.0”.

Feb 6, 2012 4:37:58 PM com.jme3.app.Application handleError

SEVERE: Failed to create display

org.lwjgl.LWJGLException: X Error - disp: 0x2aaaf80f0c70 serial: 81 error: GLXUnsupportedPrivateRequest request_code: 143 minor _code: 16

at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:316)

at org.lwjgl.opengl.LinuxDisplay.nGetWidth(Native Method)

at org.lwjgl.opengl.LinuxDisplay.processEvents(LinuxDisplay.java:844)

at org.lwjgl.opengl.LinuxDisplay.update(LinuxDisplay.java:869)

at org.lwjgl.opengl.Display.processMessages(Display.java:626)

at org.lwjgl.opengl.Display.update(Display.java:691)

at org.lwjgl.opengl.Display.update(Display.java:654)

at org.lwjgl.opengl.Display.initContext(Display.java:1061)

at org.lwjgl.opengl.Display.create(Display.java:878)

at org.lwjgl.opengl.Display.create(Display.java:782)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:137)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:113)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:619)

Feb 6, 2012 4:37:58 PM com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:147)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:182)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:223)

at java.lang.Thread.run(Thread.java:619)





More info on linux environment:



output of glxinfo command:

name of display: localhost:10.0

display: localhost:10 screen: 0

direct rendering: No

server glx vendor string: SGI

server glx version string: 1.2

server glx extensions:

GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,

GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,

GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,

GLX_SGIX_fbconfig

client glx vendor string: NVIDIA Corporation

client glx version string: 1.4

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_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,

GLX_SGI_swap_control, GLX_EXT_swap_control, GLX_ARB_create_context,

GLX_ARB_create_context_profile, GLX_NV_float_buffer,

GLX_ARB_fbconfig_float, GLX_EXT_fbconfig_packed_float,

GLX_EXT_texture_from_pixmap, GLX_EXT_framebuffer_sRGB,

GLX_NV_present_video, GLX_NV_copy_image, GLX_NV_multisample_coverage,

GLX_NV_video_capture

GLX version: 1.2

GLX extensions:

GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,

GLX_EXT_import_context, GLX_SGIX_fbconfig, GLX_ARB_get_proc_address

OpenGL vendor string: Intel

OpenGL renderer string: Intel 965/963 Graphics Media Accelerator

OpenGL version string: 1.2 (2.0.0 - Build 7.15.10.5076)

OpenGL extensions:

GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_blend_color,

GL_EXT_abgr, GL_EXT_texture3D, GL_SGIS_generate_mipmap,

GL_EXT_draw_range_elements, GL_SGIS_texture_lod, GL_EXT_rescale_normal,

GL_EXT_packed_pixels, GL_EXT_separate_specular_color, GL_ARB_multitexture,

GL_EXT_texture_env_combine, GL_EXT_bgra, GL_EXT_blend_func_separate,

GL_EXT_secondary_color, GL_EXT_fog_coord, GL_EXT_texture_env_add,

GL_ARB_texture_cube_map, GL_ARB_texture_env_add,

GL_IBM_texture_mirrored_repeat, GL_EXT_multi_draw_arrays,

GL_NV_blend_square, GL_ARB_texture_border_clamp, GL_ARB_point_parameters,

GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,

GL_ARB_texture_env_crossbar, GL_ARB_shadow, GL_ARB_window_pos,

GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_texture_lod_bias,

GL_NV_texgen_reflection, GL_ARB_point_sprite, GL_ARB_depth_texture



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


0x22 24 tc 1 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x23 24 tc 1 24 0 r . . 8 8 8 0 0 0 0 16 16 16 16 0 0 None
0x24 24 tc 1 24 0 r . . 8 8 8 0 0 0 8 0 0 0 0 0 0 None
0x25 24 tc 1 24 0 r . . 8 8 8 0 0 0 8 16 16 16 16 0 0 None
0x26 24 tc 1 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x27 24 tc 1 24 0 r y . 8 8 8 0 0 0 0 16 16 16 16 0 0 None
0x28 24 tc 1 24 0 r y . 8 8 8 0 0 0 8 0 0 0 0 0 0 None
0x29 24 tc 1 24 0 r y . 8 8 8 0 0 0 8 16 16 16 16 0 0 None
0x2a 24 tc 1 24 0 r . . 8 8 8 0 2 0 0 0 0 0 0 0 0 None
0x2b 24 tc 1 24 0 r . . 8 8 8 0 2 0 0 16 16 16 16 0 0 None
0x2c 24 tc 1 24 0 r . . 8 8 8 0 2 0 8 0 0 0 0 0 0 None
0x2d 24 tc 1 24 0 r . . 8 8 8 0 2 0 8 16 16 16 16 0 0 None
0x2e 24 tc 1 24 0 r y . 8 8 8 0 2 0 0 0 0 0 0 0 0 None
0x2f 24 tc 1 24 0 r y . 8 8 8 0 2 0 0 16 16 16 16 0 0 None
0x30 24 tc 1 24 0 r y . 8 8 8 0 2 0 8 0 0 0 0 0 0 None
0x31 24 tc 1 24 0 r y . 8 8 8 0 2 0 8 16 16 16 16 0 0 None
0x32 24 tc 1 24 0 r . . 8 8 8 0 0 24 0 0 0 0 0 0 0 None
0x33 24 tc 1 24 0 r . . 8 8 8 0 0 24 0 16 16 16 16 0 0 None
0x34 24 tc 1 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x35 24 tc 1 24 0 r . . 8 8 8 0 0 24 8 16 16 16 16 0 0 None
0x36 24 tc 1 24 0 r y . 8 8 8 0 0 24 0 0 0 0 0 0 0 None
0x37 24 tc 1 24 0 r y . 8 8 8 0 0 24 0 16 16 16 16 0 0 None
0x38 24 tc 1 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x39 24 tc 1 24 0 r y . 8 8 8 0 0 24 8 16 16 16 16 0 0 None
0x3a 24 tc 1 24 0 r . . 8 8 8 0 2 24 0 0 0 0 0 0 0 None
0x3b 24 tc 1 24 0 r . . 8 8 8 0 2 24 0 16 16 16 16 0 0 None
0x3c 24 tc 1 24 0 r . . 8 8 8 0 2 24 8 0 0 0 0 0 0 None
0x3d 24 tc 1 24 0 r . . 8 8 8 0 2 24 8 16 16 16 16 0 0 None
0x3e 24 tc 1 24 0 r y . 8 8 8 0 2 24 0 0 0 0 0 0 0 None
0x3f 24 tc 1 24 0 r y . 8 8 8 0 2 24 0 16 16 16 16 0 0 None
0x40 24 tc 1 24 0 r y . 8 8 8 0 2 24 8 0 0 0 0 0 0 None
0x41 24 tc 1 24 0 r y . 8 8 8 0 2 24 8 16 16 16 16 0 0 None


Content in /etc/X11/xorg.conf file
# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Monitor"

### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "Dell 1024i"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 35.5 - 35.5
VertRefresh 87.0 - 87.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection