Display problem when running Anatomist remotely on unix

Questions about Anatomist manipulation

Moderators: denghien, riviere

Post Reply
SylvainT
Posts: 73
Joined: Mon Feb 13, 2006 6:37 pm
Location: INT, Marseille, France

Display problem when running Anatomist remotely on unix

Post by SylvainT »

Hi Denis,

We found another case in which we found problem 2 (the one described in your windows post): when running anatomist remotely on a unix server (running debian)...

We have a centralized unix server on which people in our lab log on to (from unix or windows desktops, through a standard 'ssh -X' or with a X client called FreeNX), and any time we try to open an object, the object window immediately disappears, the main anatomist window stays on, and we get the following error in the console:

Code: Select all

QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLTempContext: No GL capable X visuals available.
Unrecognised OpenGL version
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
-----------------------------------------------------------
##### ANATOMIST WARNING
AWindow3D::Refresh: OpenGL error.
-----------------------------------------------------------
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
-----------------------------------------------------------
##### ANATOMIST WARNING
AWindow3D::Refresh: OpenGL error.
-----------------------------------------------------------
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
warning: window geometry too small (dimx : 256)
warning: window geometry too small (dimy : 128)
warning: window geometry too small (dimz : 256)
QGLContext::makeCurrent(): Cannot make invalid context current.
warning: window geometry too small (dimx : 256)
warning: window geometry too small (dimy : 128)
warning: window geometry too small (dimz : 256)
resize window 3D
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
-----------------------------------------------------------
##### ANATOMIST WARNING
AWindow3D::Refresh: OpenGL error.
-----------------------------------------------------------
-----------------------------------------------------------
##### ANATOMIST WARNING
AWindow3D::Refresh: OpenGL error.
-----------------------------------------------------------
No OpenGL extensions found
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
QGLContext::makeCurrent(): Cannot make invalid context current.
~GLList : Bad GL list - 0
QGLContext::makeCurrent(): Cannot make invalid context current.
~GLTexture - Bad GL texture - 74154488
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
QGLContext::makeCurrent(): Cannot make invalid context current.
~GLList : Bad GL list - 0
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
QGLContext::makeCurrent(): Cannot make invalid context current.
GLList::generate() could not allocate OpenGL display list: no error
cleaning and trying again...
OpenGL lists cleanup...
GLList::generate() could definitely not allocate OpenGL display list: no error
-----------------------------------------------------------
##### ANATOMIST ERROR
Light::GetGLList : not enough OGL memory.
-----------------------------------------------------------
QGLContext::makeCurrent(): Cannot make invalid context current.
~GLList : Bad GL list - 0
We tried to lower the number of texture units, but without success...

Let me know if we can run some further tests to help you fix this!

Sylvain
SylvainT
Posts: 73
Joined: Mon Feb 13, 2006 6:37 pm
Location: INT, Marseille, France

Re: Display problem when running Anatomist remotely on unix

Post by SylvainT »

little update...

if we do this before launching anatomist
export LIBGL_ALWAYS_INDIRECT=y
(which is a trick we had to use in some cases with past versions)
then we switch to case 1 of your windows post (display windows are all white)

sylvain
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Display problem when running Anatomist remotely on unix

Post by riviere »

Hi Sylvain,

This problem seems to be related to GLX, the network protocol to pass OpenGL commands through the X server network connection. It may be linked to OpenGL implementations on both sides of the network connection. Sometimes remote display of OpenGL doesn't work well...

- Do other OpenGL programs work, like glxgrears ?
- What does glxinfo output ?
For me, on a network connection, it's something like that:

-bash-3.00$ glxinfo
name of display: localhost:10.0
display: localhost:10 screen: 0
direct rendering: No
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_EXT_swap_control, GLX_EXT_texture_from_pixmap, GLX_ARB_create_context,
GLX_ARB_create_context_profile, GLX_ARB_multisample, GLX_NV_float_buffer,
GLX_ARB_fbconfig_float, GLX_NV_swap_group, GLX_EXT_framebuffer_sRGB,
GLX_NV_multisample_coverage, GLX_NV_copy_image, GLX_NV_video_capture
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_NV_float_buffer, GLX_ARB_fbconfig_float,
GLX_EXT_fbconfig_packed_float, GLX_EXT_texture_from_pixmap,
GLX_EXT_framebuffer_sRGB
GLX extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_SGI_video_sync, GLX_NV_swap_group, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_NV_float_buffer,
GLX_ARB_fbconfig_float, GLX_EXT_texture_from_pixmap,
GLX_EXT_framebuffer_sRGB, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro FX 1700/PCI/SSE2
OpenGL version string: 2.1.2 NVIDIA 195.36.24
OpenGL extensions:
GL_ARB_color_buffer_float, GL_ARB_depth_texture, GL_ARB_fragment_program,
GL_ARB_fragment_program_shadow, GL_ARB_half_float_pixel, GL_ARB_imaging,
GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_point_parameters,
GL_ARB_point_sprite, GL_ARB_shadow, 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_dot3, GL_ARB_texture_float,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
GL_ARB_texture_rectangle, GL_ARB_vertex_program, GL_ARB_window_pos,
GL_ATI_texture_float, GL_ATI_texture_mirror_once, GL_S3_s3tc,
GL_EXT_texture_env_add, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_draw_range_elements, GL_EXT_fog_coord,
GL_EXTX_framebuffer_mixed_formats, GL_EXT_framebuffer_sRGB,
GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_rescale_normal,
GL_EXT_secondary_color, GL_EXT_separate_specular_color,
GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_texture3D,
GL_EXT_texture_array, GL_EXT_texture_compression_latc,
GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod,
GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
GL_EXT_texture_object, GL_EXT_texture_sRGB,
GL_EXT_texture_shared_exponent, GL_EXT_timer_query, GL_EXT_vertex_array,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
GL_KTX_buffer_region, GL_NV_blend_square, GL_NV_copy_depth_to_color,
GL_NV_depth_clamp, GL_NV_float_buffer, GL_NV_fog_distance,
GL_NV_fragment_program_option, GL_NV_fragment_program2,
GL_NV_geometry_shader4, GL_NV_light_max_exponent,
GL_NV_multisample_filter_hint, GL_NV_packed_depth_stencil,
GL_NV_texgen_reflection, GL_NV_texture_compression_vtc,
GL_NV_texture_env_combine4, GL_NV_texture_expand_normal,
GL_NV_texture_rectangle, GL_NV_texture_shader, GL_NV_texture_shader2,
GL_NV_texture_shader3, GL_NV_vertex_program2_option,
GL_NV_vertex_program3, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,
GL_SGIX_depth_texture, GL_SGIX_shadow, GL_SUN_slice_accum
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 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
... etc... (I have a list of more than 200 visuals)

Denis
Post Reply