Forum

Author Topic: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 is not sup  (Read 15054 times)

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
Hello,
As Ashalota in his topic on September 11, 2017, i am receiving the same error when i run photoscan 1.3.5:
failed to get the current screen resources
No license found.
Details: No license for product (-1)
WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 is not supported!  This is an application bug!
QXcbConnection: XCB error: 170 (Unknown), sequence: 170, resource id: 90, major code: 146 (Unknown), minor code: 20

I am unsing photoscan on a remote Linux system with X11 forwarding back to a windows system and cygwin.

Does anyone have an idea of what can happen ?
Thanks!
P.M.


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Hello pmoreau,

What GPU do you have on server and what on the client? Also please run glxinfo and post output here.
Best regards,
Alexey Pasumansky,
Agisoft LLC

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
Thanks Alexey,
On the server the graphics card is an nvidia nvs 310:
$ lspci|grep VGA
03:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 310] (rev a1)
0b:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2 (rev 01)


But it does not appear in 'Tools' 'Preferences' 'GPU'.

The console in photoscan:
2018-02-07 08:12:06 Agisoft PhotoScan Professional Version: 1.3.5 build 5649 (64 bit)
2018-02-07 08:12:06 Platform: Linux
2018-02-07 08:12:06 OpenGL Vendor: VMware, Inc.
2018-02-07 08:12:06 OpenGL Renderer: llvmpipe (LLVM 5.0, 256 bits)
2018-02-07 08:12:06 OpenGL Version: 3.0 Mesa 17.2.4
2018-02-07 08:12:06 Maximum Texture Size: 8192
2018-02-07 08:12:06 Quad Buffered Stereo: not enabled
2018-02-07 08:12:06 ARB_vertex_buffer_object: supported
2018-02-07 08:12:06 ARB_texture_non_power_of_two: supported
2018-02-07 08:12:06 Using simple console. Rich console can be enabled in Preferences dialog.



and the glxinfo command returns:
$ glxinfo
name of display: TLS-AGIR-IMAGE:11.0
display: TLS-AGIR-IMAGE:11  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_OML_swap_method, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
    GLX_SGI_make_current_read
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile,
    GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float,
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGI_make_current_read
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: VMware, Inc. (0xffffffff)
    Device: llvmpipe (LLVM 5.0, 256 bits) (0xffffffff)
    Version: 17.2.4
    Accelerated: no
    Video memory: 128837MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 5.0, 256 bits)
OpenGL version string: 3.0 Mesa 17.2.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
    GL_AMD_conservative_depth, GL_AMD_draw_buffers_blend,
    GL_AMD_seamless_cubemap_per_texture, GL_AMD_shader_stencil_export,
    GL_AMD_shader_trinary_minmax, GL_ANGLE_texture_compression_dxt3,
    GL_ANGLE_texture_compression_dxt5, GL_APPLE_packed_pixels,
    GL_ARB_ES2_compatibility, GL_ARB_ES3_compatibility,
    GL_ARB_arrays_of_arrays, GL_ARB_base_instance, GL_ARB_blend_func_extended,
    GL_ARB_buffer_storage, GL_ARB_clear_buffer_object, GL_ARB_clear_texture,
    GL_ARB_clip_control, GL_ARB_color_buffer_float,
    GL_ARB_compressed_texture_pixel_storage,
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_ARB_copy_buffer, GL_ARB_copy_image, GL_ARB_cull_distance,
    GL_ARB_debug_output, GL_ARB_depth_buffer_float, GL_ARB_depth_clamp,
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_draw_buffers_blend,
    GL_ARB_draw_elements_base_vertex, GL_ARB_draw_instanced,
    GL_ARB_explicit_attrib_location, GL_ARB_explicit_uniform_location,
    GL_ARB_fragment_coord_conventions, GL_ARB_fragment_program,
    GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
    GL_ARB_framebuffer_object, GL_ARB_framebuffer_sRGB,
    GL_ARB_get_program_binary, GL_ARB_get_texture_sub_image,
    GL_ARB_half_float_pixel, GL_ARB_half_float_vertex,
    GL_ARB_instanced_arrays, GL_ARB_internalformat_query,
    GL_ARB_internalformat_query2, GL_ARB_invalidate_subdata,
    GL_ARB_map_buffer_alignment, GL_ARB_map_buffer_range, GL_ARB_multi_bind,
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query,
    GL_ARB_occlusion_query2, GL_ARB_pixel_buffer_object,
    GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_program_interface_query, GL_ARB_provoking_vertex,
    GL_ARB_robustness, GL_ARB_sampler_objects, GL_ARB_seamless_cube_map,
    GL_ARB_seamless_cubemap_per_texture, GL_ARB_separate_shader_objects,
    GL_ARB_shader_bit_encoding, GL_ARB_shader_objects,
    GL_ARB_shader_stencil_export, GL_ARB_shader_texture_lod,
    GL_ARB_shading_language_100, GL_ARB_shading_language_420pack,
    GL_ARB_shading_language_packing, GL_ARB_shadow, GL_ARB_stencil_texturing,
    GL_ARB_sync, GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_compression_rgtc, GL_ARB_texture_cube_map,
    GL_ARB_texture_cube_map_array, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_float, GL_ARB_texture_gather,
    GL_ARB_texture_mirror_clamp_to_edge, GL_ARB_texture_mirrored_repeat,
    GL_ARB_texture_multisample, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_query_levels, GL_ARB_texture_rectangle, GL_ARB_texture_rg,
    GL_ARB_texture_rgb10_a2ui, GL_ARB_texture_stencil8,
    GL_ARB_texture_storage, GL_ARB_texture_storage_multisample,
    GL_ARB_texture_swizzle, GL_ARB_texture_view, GL_ARB_timer_query,
    GL_ARB_transform_feedback2, GL_ARB_transform_feedback3,
    GL_ARB_transform_feedback_instanced, GL_ARB_transpose_matrix,
    GL_ARB_uniform_buffer_object, GL_ARB_vertex_array_bgra,
    GL_ARB_vertex_array_object, GL_ARB_vertex_attrib_binding,
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader,
    GL_ARB_vertex_type_10f_11f_11f_rev, GL_ARB_vertex_type_2_10_10_10_rev,
    GL_ARB_window_pos, GL_ATI_blend_equation_separate, GL_ATI_draw_buffers,
    GL_ATI_fragment_shader, GL_ATI_separate_stencil,
    GL_ATI_texture_compression_3dc, GL_ATI_texture_env_combine3,
    GL_ATI_texture_float, GL_ATI_texture_mirror_once, GL_EXT_abgr,
    GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate,
    GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, GL_EXT_draw_buffers2,
    GL_EXT_draw_instanced, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
    GL_EXT_framebuffer_multisample_blit_scaled, GL_EXT_framebuffer_object,
    GL_EXT_framebuffer_sRGB, GL_EXT_gpu_program_parameters,
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
    GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object,
    GL_EXT_point_parameters, GL_EXT_polygon_offset,
    GL_EXT_polygon_offset_clamp, GL_EXT_provoking_vertex,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shader_integer_mix,
    GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap,
    GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
    GL_EXT_texture_array, GL_EXT_texture_compression_dxt1,
    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_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_integer, 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_sRGB_decode,
    GL_EXT_texture_shared_exponent, GL_EXT_texture_snorm,
    GL_EXT_texture_swizzle, GL_EXT_timer_query, GL_EXT_transform_feedback,
    GL_EXT_vertex_array, GL_EXT_vertex_array_bgra,
    GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_KHR_context_flush_control, GL_KHR_debug, GL_KHR_no_error,
    GL_MESA_pack_invert, GL_MESA_shader_integer_functions,
    GL_MESA_texture_signed_rgba, GL_MESA_window_pos, GL_MESA_ycbcr_texture,
    GL_NV_blend_square, GL_NV_conditional_render, GL_NV_depth_clamp,
    GL_NV_fog_distance, GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
    GL_NV_primitive_restart, GL_NV_texgen_reflection,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_OES_EGL_image,
    GL_OES_read_format, GL_S3_s3tc, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

6 GLX Visuals
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x022 24 tc  1  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x026 24 tc  1  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x032 24 tc  1  24  0 r  . .   8  8  8  0 .  .  0 24  0  0  0  0  0  0 0 None
0x034 24 tc  1  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x036 24 tc  1  24  0 r  y .   8  8  8  0 .  .  0 24  0  0  0  0  0  0 0 None
0x038 24 tc  1  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None

6 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x022 24 tc  1  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x026 24 tc  1  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x032 24 tc  1  24  0 r  . .   8  8  8  0 .  .  0 24  0  0  0  0  0  0 0 None
0x034 24 tc  1  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x036 24 tc  1  24  0 r  y .   8  8  8  0 .  .  0 24  0  0  0  0  0  0 0 None
0x038 24 tc  1  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None


And finally i run :
ssh -Y <IP_server>

Thanks.
P.M.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Hello pmoreau,

How do you get the Console pane output from the server and check the GPU preferences tab? In the original post you say that the application doesn't start.
Can you run glxinfo when you are already connected remotely to the server?

Usually we do not recommend to use ssh for remote access with OpenGL rendering. Instead you can use VNC (for example, TurboVNC).
Best regards,
Alexey Pasumansky,
Agisoft LLC

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
Alexey,

I did not say that the application did not start. It starts with the error message that I indicated.
So i could check the console.
The glxinfo that i give is when i am actually connected remotely to the server.

I can specify that if I launch the program photoscan directly on the server I do not have an error message but I still do not see the GPUs in 'Tools' 'Preferences' 'GPU'.

If I have to use vnc I will do it but I wanted to understand exactly what was happening with this error message.

Thanks a lot.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
I can specify that if I launch the program photoscan directly on the server I do not have an error message but I still do not see the GPUs in 'Tools' 'Preferences' 'GPU'.
Hello pmoreau,

It means that despite your GPU is available for OpenGL rendering - it is not available for CUDA computations. What drivers have you installed? Please download CUDA-Z (http://cuda-z.sourceforge.net/#block-linux), make it executable (chmod +x CUDA-Z-0.10.251-64bit.run) and run it directly on the server - is CUDA device visible from CUDA-Z?
 
Your SSH connection's OpenGL support is not sufficient. This is because OpenGL over SSH uses indirect rendering on client and all OpenGL features are available only in very rare cases - we were able to establish it properly only between client and server both with NVidia GPUs and with the same 384 driver installed.
 
VNC doesn't have such a problem, because in VNC OpenGL rendering performs on server (like direct working on server), so client receives only "video of the server screen".
 
Best regards,
Alexey Pasumansky,
Agisoft LLC

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
Hello,
Actually CUDA-Z returns: "CUDA not found".
I do not have a proprietary driver installed.
The video module is "nouveau":
$lsmod
../..
nouveau              1642496  1
video                  40960  1 nouveau
../..


I do not have an /etc/X11/xorg.conf file on the server and the drivers installed with X11 are:
$ dpkg -l|grep xorg
ii  python3-xkit                           0.5.0ubuntu2                               all          library for the manipulation of xorg.conf files (Python 3)
ii  vnc4server                             4.1.1+xorg4.3.0-37.3ubuntu2                amd64        Virtual network computing server software
ii  xorg                                   1:7.7+13ubuntu3                            amd64        X.Org X Window System
ii  xorg-docs-core                         1:1.7.1-1ubuntu1                           all          Core documentation for the X.org X Window System
ii  xorg-sgml-doctools                     1:1.11-1                                   all          Common tools for building X.Org SGML documentation
ii  xserver-xorg-core-hwe-16.04            2:1.19.5-0ubuntu2~16.04.1                  amd64        Xorg X server - core server
ii  xserver-xorg-hwe-16.04                 1:7.7+16ubuntu3~16.04.1                    amd64        X.Org X server
ii  xserver-xorg-input-all-hwe-16.04       1:7.7+16ubuntu3~16.04.1                    amd64        X.Org X server -- input driver metapackage
ii  xserver-xorg-input-evdev-hwe-16.04     1:2.10.5-1ubuntu1~16.04.1                  amd64        X.Org X server -- evdev input driver
ii  xserver-xorg-input-synaptics-hwe-16.04 1.9.0-1ubuntu1~16.04.1                     amd64        Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-wacom-hwe-16.04     1:0.34.0-0ubuntu2~16.04.1                  amd64        X.Org X server -- Wacom input driver
ii  xserver-xorg-legacy-hwe-16.04          2:1.19.5-0ubuntu2~16.04.1                  amd64        setuid root Xorg server wrapper
ii  xserver-xorg-video-all-hwe-16.04       1:7.7+16ubuntu3~16.04.1                    amd64        X.Org X server -- output driver metapackage
ii  xserver-xorg-video-amdgpu-hwe-16.04    1.3.0-0ubuntu1~16.04.1                     amd64        X.Org X server -- AMDGPU display driver
ii  xserver-xorg-video-ati-hwe-16.04       1:7.9.0-0ubuntu1~16.04.1                   amd64        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-fbdev-hwe-16.04     1:0.4.4-1build6~16.04.1                    amd64        X.Org X server -- fbdev display driver
ii  xserver-xorg-video-intel-hwe-16.04     2:2.99.917+git20170309-0ubuntu1~16.04.1    amd64        X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-video-nouveau-hwe-16.04   1:1.0.14-0ubuntu1~16.04.1                  amd64        X.Org X server -- Nouveau display driver
ii  xserver-xorg-video-qxl-hwe-16.04       0.1.5-2build1~16.04.1                      amd64        X.Org X server -- QXL display driver
ii  xserver-xorg-video-radeon-hwe-16.04    1:7.9.0-0ubuntu1~16.04.1                   amd64        X.Org X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-vesa-hwe-16.04      1:2.3.4-1build3~16.04.1                    amd64        X.Org X server -- VESA display driver
ii  xserver-xorg-video-vmware-hwe-16.04    1:13.2.1-1build1~16.04.1                   amd64        X.Org X server -- VMware display driver

I suppose i have to install nvidia-384 and nvidia-384-dev.
Should I also install nvidia-cuda-toolkit ?
What about nvidia-opencl ? Is it usefui ?
Thanks's a lot !
P.M.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Hello pmoreau,

nvidia-384 driver should be sufficient, please let me know, if the installation helps.
Best regards,
Alexey Pasumansky,
Agisoft LLC

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
Alexey,

Thank you, I'm progressing.
I adapted the instructions given here  (https://github.com/agisoft-llc/cloud-scripts) for installing the nvidia-384.111 driver and installing virtualGL.
Now CUDA device is visible from CUDA-Z. But the result of the command is:
$ ./CUDA-Z-0.10.251-64bit.run
CUDA-Z Started!
CUDA Present: 1
CUDA Devices found: 1
QString::arg: Argument missing: 64, linux64
QString::arg: Argument missing: 64, linux64


Then when i launch photoscan, the displkay is not correct and  i get :
$ ./photoscan.sh
No license found.
Details: No license for product (-1)
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context


And:
$ glxgears
Xlib:  extension "GLX" missing on display ":1.0".
Error: couldn't get an RGB, Double-buffered visual


$ glxinfo
name of display: :1.0
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".

Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".
Xlib:  extension "GLX" missing on display ":1.0".


It seems like I still have a problem with the GL library.

Do you have an idea ?

Thanks'
P.M.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Hello pmoreau,

You need to start the commands via vgl, for example, providing that you are using VNC connection:
Code: [Select]
vglrun photoscan
vglrun glxgears
vglrun glxinfo
Best regards,
Alexey Pasumansky,
Agisoft LLC

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
ok,

I think i have a problem with X11:

$ vglrun ./photoscan
No license found.
Details: No license for product (-1)
Unrecognized OpenGL version
Unrecognized OpenGL version
Unrecognized OpenGL version
Unrecognized OpenGL version
QOpenGLWidget: Failed to make context current


$ ldd photoscan
   linux-vdso.so.1 =>  (0x00007ffe0b7d1000)
   libpython3.5m.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0 (0x00007fac397a3000)
   libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fac395a0000)
   libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fac3939c000)
   libcholmod.so => /home/pmoreau/Téléchargements/photoscan-pro/libcholmod.so (0x00007fac390bc000)
   libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fac38e4d000)
   libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fac38ba9000)
   libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fac3898c000)
   librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fac38784000)
   libQt5OpenGL.so.5 => /home/pmoreau/Téléchargements/photoscan-pro/libQt5OpenGL.so.5 (0x00007fac38524000)
   libQt5Network.so.5 => /home/pmoreau/Téléchargements/photoscan-pro/libQt5Network.so.5 (0x00007fac381ae000)
   libQt5PrintSupport.so.5 => /home/pmoreau/Téléchargements/photoscan-pro/libQt5PrintSupport.so.5 (0x00007fac37f45000)
   libQt5Svg.so.5 => /home/pmoreau/Téléchargements/photoscan-pro/libQt5Svg.so.5 (0x00007fac37ce5000)
   libQt5Widgets.so.5 => /home/pmoreau/Téléchargements/photoscan-pro/libQt5Widgets.so.5 (0x00007fac37413000)
   libQt5Gui.so.5 => /home/pmoreau/Téléchargements/photoscan-pro/libQt5Gui.so.5 (0x00007fac36bc2000)
   libQt5Core.so.5 => /home/pmoreau/Téléchargements/photoscan-pro/libQt5Core.so.5 (0x00007fac363fa000)
   libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fac36078000)
   libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fac35d6f000)
   libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007fac35b4d000)
   libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fac35937000)
   libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fac3556d000)
   /lib64/ld-linux-x86-64.so.2 (0x00007fac39e2a000)
   libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fac35344000)
   libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fac3512a000)
   libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fac34efa000)
   libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fac34c2c000)
   libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fac349d9000)
   libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fac347d7000)
   libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fac344c6000)
   libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fac342b4000)
   libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fac33f7a000)
   libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fac33d72000)
   libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fac33b02000)
   libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fac338e0000)
   libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fac336dc000)
   libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fac334d6000)


$ vglrun glxinfo
name of display: :1.0
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x800002
  Serial number of failed request:  41
  Current serial number in output stream:  41


$ vglrun glxgears
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x800002
  Serial number of failed request:  41
  Current serial number in output stream:  41


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Hello pmoreau,

Have you run configure.sh, rebooted, executed start_vnc_server.sh and then executed vglrun glxgears/glxinfo/photoscan?
 
If so - please, reboot server again, then run:
Code: [Select]
./start_vnc_server.sh 2>&1 | tee start_vnc_server.log
start_vnc_server.sh will start X server and VNC server.
And then please post start_vnc_server.log here.
Best regards,
Alexey Pasumansky,
Agisoft LLC

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
Hello,
Thank you very much Alexey for your help. I plan to have several instances of this type to use photoscan, and it is important for me to have a good configuration.
So I re-run configure.sh with driver nvidia 384.111.
I execute start_vnc_server.sh and then try vglrun glxgears/glxinfo/photoscan.sh
The 3 log files are:

First start_vnc_server.sh.log:

************************************************************************************************
*                                                                                              *
* On g2 instance you can see this above:                                                       *
* XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server :0                  *
*       after 7 requests (7 known processed) with 0 events remaining.                          *
* This is OK.                                                                                  *
*                                                                                              *
************************************************************************************************

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu
Current Operating System: Linux TLS-AGIR-IMAGE 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.13.0-32-generic.efi.signed root=UUID=a4ac8b22-b642-4eb5-bff9-787e94fc5ca2 ro quiet splash vt.handoff=7
Build Date: 13 October 2017  01:57:05PM
xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Feb 13 10:04:00 2018
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

Desktop 'TurboVNC: TLS-AGIR-IMAGE:1 (pmoreau)' started on display TLS-AGIR-IMAGE:1

Starting applications specified in /home/pmoreau/.vnc/xstartup.turbovnc
Log file is /home/pmoreau/.vnc/TLS-AGIR-IMAGE:1.log


glxgears.log:
[VGL] ERROR: OpenGL error 0x0502
[VGL] ERROR: in readPixels--
[VGL]    480: Could not Read Pixels

glxinfo.log:
see attached file.

photoscan.log:
No license found.
Details: No license for product (-1)
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Unsupported framebuffer format.
QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
[VGL] ERROR: OpenGL error 0x0502
[VGL] ERROR: in readPixels--
[VGL]    480: Could not Read Pixels


And photoscan does not launch.

I also notice that the command 'vncserver -list' give me:
TurboVNC server sessions:

X DISPLAY #   PROCESS ID
:2      16429
:1      2727


But i don't see any process 16429.

It remains mysterious....

P.M.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Hello pmoreau,

Can you please try to walk though all of the following steps on clean Ubuntu 16.04:
https://github.com/agisoft-llc/cloud-scripts#how-to-use including "./configure.sh 2>&1 | tee configure.log" and "./start_vnc_server.sh 2>&1 | tee start_vnc_server.log", and then provide cloud-scripts/configure.log, cloud-scripts/start_vnc_server.log, /etc/X11/xorg.conf, /var/log/Xorg.0.log and output of nvidia-smi command?
 
If it is not possible please provide the following files from your current setup: /etc/X11/xorg.conf, /var/log/Xorg.0.log, output of nvidia-smi and output of lspci | egrep -h "VGA|3D controller"
Best regards,
Alexey Pasumansky,
Agisoft LLC

pmoreau

  • Newbie
  • *
  • Posts: 14
    • View Profile
Alexey,
Yes probably the solution is to start from a clean Ubuntu.
In the mean time i join this logs:

Xorg.0.log and xorg.conf attached,

$:nvidis-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.111                Driver Version: 384.111                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  NVS 310             Off  | 00000000:03:00.0 N/A |                  N/A |
| 30%   31C    P8    N/A /  N/A |      9MiB /   964MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+


lspci | egrep -h "VGA|3D controller"
03:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 310] (rev a1)
0b:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2 (rev 01)