LWJGL Forum

Programming => OpenGL => Topic started by: wallnuss on February 02, 2011, 20:27:32

Title: LWJGL on a headless machine mesa swx xvfb
Post by: wallnuss on February 02, 2011, 20:27:32
Hello there, [I don't know if this is exactly the right forum and if I'm wrong pls move it to the appropriate forum]

I'm currently trying to run a programm that uses lwjgl on a headless machine. OS: Ubuntu 10.04 64bit libgl = libgl1-mesa-swx.
I also don't have a graphic card avaible
The programm I want to run can be found here http://www.minecraftforum.net/viewtopic.php?f=1022&t=95739&start=900 .But I don't have access to the code ;-)

I'm getting the following error running xvfb-run -a /usr/lib/jvm/java-6-sun/jre/bin/java -Dorg.lwjgl.util.Debug=true -jar /usr/bukkit/map/Tectonicus_v1.15.jar mode=cmd worldDir=/usr/bukkit/persistent_world signs=all outputDir=/var/www/map minecraftJar=/usr/bukkit/map/minecraft.jar force64BitNatives=true verbose=true numSamples=0


+ + + + + + + + + + + + + + + + + + + + + + +
                 Tectonicus
  Version: 1.15
  Build 2362\:2364P
  Constructed on January 30 2011 at 2008
+ + + + + + + + + + + + + + + + + + + + + + +
Started on Wed Feb 02 20:14:43 UTC 2011
System:
       OS Name: Linux
       OS Architecture: amd64
       OS Version: 2.6.35.10-vs2.3.0.36.33-netcup
       Java vendor: Sun Microsystems Inc.
       Java version: 1.6.0_22
       Awt toolkit: null
       Headless?: null
Settings:
       mode:CommandLine
       worldDir:/usr/bukkit/persistent_world
       outputDir:/var/www/map
       useCache:true
       cacheDir:/var/www/map/cache
       minecraftJar:/usr/bukkit/map/minecraft.jar
       texturePack:none
       colourDepth:24
       alphaBits:8
       numSamples:0
       tileSize:512
       lighting:Day
       cameraAngle:45
       closestZoomSize:12
       numZoomLevels:8
       imageFormat:Png
       signs:All
       players:All + /usr/bukkit/scripts/.
       showSpawn:true
       useBiomeColours:true
       signsInitiallyVisible:true
       playersInitiallyVisible:true
       eraseOutputDir:false
       extractLwjglNatives:true
       isVerbose:true
       forceLoadAwt:false
       force32BitNatives:false
       force64BitNatives:true

Forcing 64-bit native libraries
Tile cache directory found and is valid. Using cache at /var/www/map/cache/tileCache
Player skin cache is old or corrupt, cleaning...
Creating camera
Creating player icon assembler
Initialising display...
Could not locate symbol glXCreateContextAttribsARB
Xrandr extension version 1.3
Using Xrandr for display mode switching
Exception in XRandR.populate(): Cannot run program "xrandr": java.io.IOException: error=2, No such file or directory
XF86VidMode extension not available
Initial mode: 640 x 480 x 8 @0Hz
       Drawable: org.lwjgl.opengl.Display$3@80d3d6f
Pixel format info: r = 2, g = 3, b = 3, a = 0, depth = 16, stencil = 0, sample buffers = 0, samples = 0
       created pbuffer: org.lwjgl.opengl.Pbuffer@2705d88a
       used pixel format:   colour:0 depth:1 alpha:0 stencil:0 samples:0
Exception while trying to create drawing surface!
Try specifying numSamples=0 to disable antialiasing
org.lwjgl.LWJGLException: Could not make context current
       at org.lwjgl.opengl.LinuxContextImplementation.nMakeCurrent(Native Method)
       at org.lwjgl.opengl.LinuxContextImplementation.makeCurrent(LinuxContextImplementation.java:121)
       at org.lwjgl.opengl.Context.makeCurrent(Context.java:193)
       at org.lwjgl.opengl.AbstractDrawable.makeCurrent(AbstractDrawable.java:44)
       at tectonicus.rasteriser.LwjglRasteriser.<init>(LwjglRasteriser.java:91)
       at tectonicus.TileRenderer.<init>(TileRenderer.java:147)
       at tectonicus.TectonicusApp.run(TectonicusApp.java:419)
       at tectonicus.TectonicusApp.main(TectonicusApp.java:609)


So it says could not make the Context current but what does that mean?
IS some dependency missing or does mesa swx not fully support certain calls.

glxinfo says:
xvfb-run glxinfo
name of display: :99.0
display: :99  screen: 0
direct rendering: Yes
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 7.7.1
server glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
client glx vendor string: Brian Paul
client glx version string: 1.4 Mesa 7.7.1
client glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
GLX version: 1.4
GLX extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 2.1 Mesa 7.7.1
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_EXT_compiled_vertex_array, GL_EXT_texture_env_add, GL_ARB_copy_buffer,
    GL_ARB_depth_texture, GL_ARB_depth_clamp, GL_ARB_draw_buffers,
    GL_ARB_draw_elements_base_vertex, GL_ARB_fragment_program,
    GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
    GL_ARB_framebuffer_object, GL_ARB_half_float_pixel, GL_ARB_imaging,
    GL_ARB_map_buffer_range, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object,
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_provoking_vertex,
    GL_ARB_shader_objects, GL_ARB_shading_language_100,
    GL_ARB_shading_language_120, GL_ARB_shadow, GL_ARB_shadow_ambient,
    GL_ARB_sync, GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle,
    GL_ARB_transpose_matrix, GL_ARB_vertex_array_bgra,
    GL_ARB_vertex_array_object, GL_ARB_vertex_buffer_object,
    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos,
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_convolution, GL_EXT_copy_texture, GL_EXT_depth_bounds_test,
    GL_EXT_draw_range_elements, GL_EXT_framebuffer_blit,
    GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_object,
    GL_EXT_fog_coord, GL_EXT_gpu_program_parameters, GL_EXT_histogram,
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object,
    GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_provoking_vertex,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_two_side,
    GL_EXT_stencil_wrap, GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
    GL_EXT_texture_swizzle, GL_EXT_timer_query, GL_EXT_vertex_array,
    GL_EXT_vertex_array_bgra, GL_3DFX_texture_compression_FXT1,
    GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object,
    GL_ATI_blend_equation_separate, GL_ATI_envmap_bumpmap,
    GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
    GL_ATI_fragment_shader, GL_ATI_separate_stencil,
    GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_resize_buffers, GL_MESA_texture_array,
    GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_blend_square,
    GL_NV_depth_clamp, GL_NV_fragment_program, GL_NV_fragment_program_option,
    GL_NV_light_max_exponent, GL_NV_packed_depth_stencil, GL_NV_point_sprite,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle,
    GL_NV_texgen_reflection, GL_NV_vertex_program, GL_NV_vertex_program1_1,
    GL_OES_read_format, GL_SGI_color_matrix, GL_SGI_color_table,
    GL_SGI_texture_color_table, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

36 GLX Visuals
   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  8 pc  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16  0  0 0 None
0x22  8 gs  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16 16  0 0 None
0x23  8 sc  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16 16  0 0 None
0x24  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0x25  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0x26  8 sg  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16 16  0 0 None
0xcc  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xcd  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xce  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xcf  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd0  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd1  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd2  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd3  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd4  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd5  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd6  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd7  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd8  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd9  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xda  8 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdb  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdc  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdd  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xde  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdf  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe0  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe1  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe2  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe3  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe4  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe5  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe6  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe7  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe8  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe9  8 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None

36 GLXFBConfigs:
   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  0 pc  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16 16  0 0 None
0x22  0 gs  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16 16  0 0 None
0x23  0 sg  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16 16  0 0 None
0x24  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0x25  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0x26  0 sg  0  8  0 r  y  .  2  3  3  0  0 16  8 16 16 16 16  0 0 None
0xcc  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xcd  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xce  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xcf  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd0  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd1  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd2  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd3  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd4  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd5  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd6  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd7  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd8  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xd9  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xda  0 tc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdb  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdc  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdd  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xde  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xdf  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe0  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe1  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe2  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe3  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe4  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe5  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe6  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe7  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe8  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None
0xe9  0 dc  0  8  0 r  y  .  3  3  2  0  0 16  8 16 16 16 16  0 0 None

[1]+  Done                    Xvfb :98

If anyone could bring light inhere I would be very thankfull.
Title: Re: LWJGL on a headless machine mesa swx xvfb
Post by: sasmaster on June 06, 2012, 11:21:11
Hey man .Have you solved this issue ? Interests me too because I am working on an app that should run in a headless state.