Failed to find the IVSHMEM device

Thank you in advance to anyone who can help. I redid my OS install and tried to get looking glass back up and running.

In the looking-glass-host log, I get the error message “Failed to find the IVSHMEM device”. The service then stops. Since the device is installed I am wondering what else causes it to throw that error? I found another post that it was an issue with the memory setting not being enough so I set it large but did not help.

output below from LG host (Windows Guest) side service log and linux VM host (LG Client):

[I]    178297243              time.c:85   | windowsSetTimerResolution      | System timer resolution: 488.2 μs
[W]    178297947          platform.c:475  | boostPriority                  | Failed to set realtime GPU priority.
[I]    178298558          platform.c:476  | boostPriority                  | This is not a failure, please do not report this as an issue.
[I]    178299270          platform.c:477  | boostPriority                  | To fix this, install and run the Looking Glass host as a service.
[I]    178299947          platform.c:478  | boostPriority                  | looking-glass-host.exe InstallService
[I]    178300504               app.c:544  | app_main                       | Looking Glass Host (B5.0.1)
[I]    178300722           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(TM) i9-12900KS
[I]    178300939           cpuinfo.c:37   | lgDebugCPU                     | CPU: 4 cores, 4 threads
[E]    178301424            vector.c:120  | vector_ptrTo                   | Assertion failed: index < vector->size && "Out of bounds access"
   178301735 [E]            ivshmem.c:141  | ivshmemInit                    | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E]    178302005               app.c:550  | app_main                       | Failed to find the IVSHMEM device
[I]    227076865              time.c:85   | windowsSetTimerResolution      | System timer resolution: 488.2 μs
[W]    227077361          platform.c:475  | boostPriority                  | Failed to set realtime GPU priority.
[I]    227077554          platform.c:476  | boostPriority                  | This is not a failure, please do not report this as an issue.
[I]    227077831          platform.c:477  | boostPriority                  | To fix this, install and run the Looking Glass host as a service.
[I]    227078075          platform.c:478  | boostPriority                  | looking-glass-host.exe InstallService
[I]    227078322               app.c:544  | app_main                       | Looking Glass Host (B5.0.1)
[I]    227078532           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(TM) i9-12900KS
[I]    227078748           cpuinfo.c:37   | lgDebugCPU                     | CPU: 4 cores, 4 threads
[E]    227079672            vector.c:120  | vector_ptrTo                   | Assertion failed: index < vector->size && "Out of bounds access"
   227080215 [E]            ivshmem.c:141  | ivshmemInit                    | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E]    227080488               app.c:550  | app_main                       | Failed to find the IVSHMEM device
[I]    278513260              time.c:85   | windowsSetTimerResolution      | System timer resolution: 488.2 μs
[W]    278513799          platform.c:475  | boostPriority                  | Failed to set realtime GPU priority.
[I]    278514031          platform.c:476  | boostPriority                  | This is not a failure, please do not report this as an issue.
[I]    278514270          platform.c:477  | boostPriority                  | To fix this, install and run the Looking Glass host as a service.
[I]    278514550          platform.c:478  | boostPriority                  | looking-glass-host.exe InstallService
[I]    278514748               app.c:544  | app_main                       | Looking Glass Host (B5.0.1)
[I]    278514953           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(TM) i9-12900KS
[I]    278515203           cpuinfo.c:37   | lgDebugCPU                     | CPU: 4 cores, 4 threads
[E]    278515683            vector.c:120  | vector_ptrTo                   | Assertion failed: index < vector->size && "Out of bounds access"
   278515987 [E]            ivshmem.c:141  | ivshmemInit                    | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E]    278516288               app.c:550  | app_main                       | Failed to find the IVSHMEM device
[I]    164218095              time.c:85   | windowsSetTimerResolution      | System timer resolution: 488.2 μs
[W]    164218372          platform.c:475  | boostPriority                  | Failed to set realtime GPU priority.
[I]    164218618          platform.c:476  | boostPriority                  | This is not a failure, please do not report this as an issue.
[I]    164218862          platform.c:477  | boostPriority                  | To fix this, install and run the Looking Glass host as a service.
[I]    164219174          platform.c:478  | boostPriority                  | looking-glass-host.exe InstallService
[I]    164219378               app.c:544  | app_main                       | Looking Glass Host (B5.0.1)
[I]    164219594           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(TM) i9-12900KS
[I]    164219866           cpuinfo.c:37   | lgDebugCPU                     | CPU: 4 cores, 4 threads
[E]    164220425            vector.c:120  | vector_ptrTo                   | Assertion failed: index < vector->size && "Out of bounds access"
   164220793 [E]            ivshmem.c:141  | ivshmemInit                    | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E]    164221069               app.c:550  | app_main                       | Failed to find the IVSHMEM device
[I]    453076916              time.c:85   | windowsSetTimerResolution      | System timer resolution: 488.2 μs
[W]    453077169          platform.c:475  | boostPriority                  | Failed to set realtime GPU priority.
[I]    453077398          platform.c:476  | boostPriority                  | This is not a failure, please do not report this as an issue.
[I]    453077660          platform.c:477  | boostPriority                  | To fix this, install and run the Looking Glass host as a service.
[I]    453078029          platform.c:478  | boostPriority                  | looking-glass-host.exe InstallService
[I]    453078275               app.c:544  | app_main                       | Looking Glass Host (B5.0.1)
[I]    453078481           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(TM) i9-12900KS
[I]    453078697           cpuinfo.c:37   | lgDebugCPU                     | CPU: 4 cores, 4 threads
[E]    453079211            vector.c:120  | vector_ptrTo                   | Assertion failed: index < vector->size && "Out of bounds access"
   453079560 [E]            ivshmem.c:141  | ivshmemInit                    | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E]    453079859               app.c:550  | app_main                       | Failed to find the IVSHMEM device
[I]    507196035              time.c:85   | windowsSetTimerResolution      | System timer resolution: 488.2 μs
[W]    507196273          platform.c:475  | boostPriority                  | Failed to set realtime GPU priority.
[I]    507196470          platform.c:476  | boostPriority                  | This is not a failure, please do not report this as an issue.
[I]    507196740          platform.c:477  | boostPriority                  | To fix this, install and run the Looking Glass host as a service.
[I]    507196984          platform.c:478  | boostPriority                  | looking-glass-host.exe InstallService
[I]    507197213               app.c:544  | app_main                       | Looking Glass Host (B5.0.1)
[I]    507197409           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(TM) i9-12900KS
[I]    507197656           cpuinfo.c:37   | lgDebugCPU                     | CPU: 4 cores, 4 threads
[E]    507198043            vector.c:120  | vector_ptrTo                   | Assertion failed: index < vector->size && "Out of bounds access"
   507198378 [E]            ivshmem.c:141  | ivshmemInit                    | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E]    507198681               app.c:550  | app_main                       | Failed to find the IVSHMEM device
[I]    531626469              time.c:85   | windowsSetTimerResolution      | System timer resolution: 488.2 μs
[W]    531626704          platform.c:475  | boostPriority                  | Failed to set realtime GPU priority.
[I]    531626936          platform.c:476  | boostPriority                  | This is not a failure, please do not report this as an issue.
[I]    531627181          platform.c:477  | boostPriority                  | To fix this, install and run the Looking Glass host as a service.
[I]    531627464          platform.c:478  | boostPriority                  | looking-glass-host.exe InstallService
[I]    531627663               app.c:544  | app_main                       | Looking Glass Host (B5.0.1)
[I]    531627863           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(TM) i9-12900KS
[I]    531628114           cpuinfo.c:37   | lgDebugCPU                     | CPU: 4 cores, 4 threads
[E]    531628588            vector.c:120  | vector_ptrTo                   | Assertion failed: index < vector->size && "Out of bounds access"
   531628892 [E]            ivshmem.c:141  | ivshmemInit                    | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E]    531629194               app.c:550  | app_main                       | Failed to find the IVSHMEM device


On the linux host side:
[I]    862900119              main.c:1304 | main                           | Looking Glass (B5.0.1)
[I]    862900131              main.c:1305 | main                           | Locking Method: Atomic
[I]    862900283           cpuinfo.c:36   | lgDebugCPU                     | CPU Model: 12th Gen Intel(R) Core(T
M) i9-12900KS
[I]    862900285           cpuinfo.c:37   | lgDebugCPU                     | CPU: 16 cores, 24 threads
[I]    862923738              main.c:866  | lg_run                         | Using font: /usr/share/fonts/truety
pe/DejaVuSansMono.ttf
[I]    862923754           ivshmem.c:128  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking
-glass
[I]    862934392               egl.c:261  | egl_initialize                 | Double buffering is off
[I]    862934396              main.c:833  | tryRenderer                    | Using Renderer: EGL
[I]    862947169               x11.c:227  | x11CheckEWMHSupport            | EWMH-complient window manager detec
ted: KWin
[I]    862947230               x11.c:454  | x11Init                        | X11 XInput 2.0 in use
[I]    862959172               x11.c:1374 | x11GetEGLDisplay               | Using eglGetPlatformDisplayEXT
[I]    862971446               egl.c:696  | egl_renderStartup              | Multisampling enabled, max samples:
4
[I]    863004540               egl.c:773  | egl_renderStartup              | Single buffer mode
[I]    863026796               egl.c:789  | egl_renderStartup              | EGL     : 1.5
[I]    863026801               egl.c:790  | egl_renderStartup              | Vendor  : NVIDIA Corporation
[I]    863026802               egl.c:791  | egl_renderStartup              | Renderer: Quadro P4000/PCIe/SSE2
[I]    863026803               egl.c:792  | egl_renderStartup              | Version : OpenGL ES 3.2 NVIDIA 515.
76
[I]    863026807               egl.c:793  | egl_renderStartup              | EGL APIs: OpenGL_ES OpenGL
[I]    863026809               egl.c:794  | egl_renderStartup              | EGL Exts: EGL_EXT_buffer_age EGL_EX
T_client_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifi
ers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_con
text_priority EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_creat
e_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_partial_update EGL_KHR_swap_buffers_with_dam
age EGL_KHR_no_config_context EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EG
L_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
EGL_KHR_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream_consumer_gltexture EGL_KHR_stream_cro
ss_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfaceless_context EGL_KHR_wait_sy
nc EGL_NV_nvrm_fence_sync EGL_NV_post_sub_buffer EGL_NV_quadruple_buffer EGL_NV_stream_consumer_eglimage EGL_NV_
stream_cross_display EGL_NV_stream_cross_object EGL_NV_stream_cross_process EGL_NV_stream_cross_system EGL_NV_st
ream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socke
t EGL_NV_stream_socket_inet EGL_NV_stream_socket_unix EGL_NV_stream_sync EGL_NV_stream_fifo_next EGL_NV_stream_f
ifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_origin EGL_NV_system_tim
e EGL_NV_output_drm_flip_event EGL_NV_triple_buffer EGL_NV_robustness_video_memory_purge EGL_WL_bind_wayland_dis
play EGL_WL_wayland_eglstream
[I]    863026812               egl.c:795  | egl_renderStartup              | GL Exts : GL_EXT_base_instance GL_E
XT_blend_func_extended GL_EXT_blend_minmax GL_EXT_buffer_storage GL_EXT_clear_texture GL_EXT_clip_control GL_EXT
_clip_cull_distance GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_conservative_depth GL_EXT_co
py_image GL_EXT_depth_clamp GL_EXT_debug_label GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_dra
w_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_EGL_image_array GL_EXT_EGL_image_storage GL_EXT_EGL_im
age_external_wrap_modes GL_EXT_float_blend GL_EXT_frag_depth GL_EXT_geometry_point_size GL_EXT_geometry_shader G
L_EXT_gpu_shader5 GL_EXT_map_buffer_range GL_EXT_multi_draw_indirect GL_EXT_multisample_compatibility GL_EXT_mul
tisampled_render_to_texture GL_EXT_multisampled_render_to_texture2 GL_EXT_multiview_texture_multisample GL_EXT_m
ultiview_timer_query GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp GL_EXT_post_depth_coverage GL_EX
T_primitive_bounding_box GL_EXT_raster_multisample GL_EXT_render_snorm GL_EXT_robustness GL_EXT_separate_shader_
objects GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_shader_io_b
locks GL_EXT_shader_non_constant_global_initializers GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_spa
rse_texture GL_EXT_sparse_texture2 GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_tessellation_point_size GL_EXT_t
essellation_shader GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_compression_bptc GL_EXT_text
ure_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map_arr
ay GL_EXT_texture_filter_anisotropic GL_EXT_texture_filter_minmax GL_EXT_texture_format_BGRA8888 GL_EXT_texture_
mirror_clamp_to_edge GL_EXT_texture_norm16 GL_EXT_texture_query_lod GL_EXT_texture_rg GL_EXT_texture_shadow_lod
GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_storage GL_EXT_texture_view GL_EXT_draw_transfo
rm_feedback GL_EXT_unpack_subimage GL_EXT_window_rectangles GL_KHR_context_flush_control GL_KHR_debug GL_EXT_mem
ory_object GL_EXT_memory_object_fd GL_NV_memory_object_sparse GL_KHR_parallel_shader_compile GL_KHR_no_error GL_
KHR_robust_buffer_access_behavior GL_KHR_robustness GL_EXT_semaphore GL_EXT_semaphore_fd GL_NV_timeline_semaphor
e GL_KHR_shader_subgroup GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_KHR_te
xture_compression_astc_hdr GL_NV_bgr GL_NV_bindless_texture GL_NV_blend_equation_advanced GL_NV_blend_equation_a
dvanced_coherent GL_NVX_blend_equation_advanced_multi_draw_buffers GL_NV_blend_minmax_factor GL_NV_clip_space_w_
scaling GL_NV_conditional_render GL_NV_conservative_raster GL_NV_conservative_raster_pre_snap_triangles GL_NV_co
py_buffer GL_NV_copy_image GL_NV_draw_buffers GL_NV_draw_instanced GL_NV_draw_texture GL_NV_draw_vulkan_image GL
_NV_EGL_stream_consumer_external GL_NV_explicit_attrib_location GL_NV_fbo_color_attachments GL_NV_fill_rectangle
GL_NV_fragment_coverage_to_color GL_NV_fragment_shader_interlock GL_NV_framebuffer_blit GL_NV_framebuffer_mixed
_samples GL_NV_framebuffer_multisample GL_NV_generate_mipmap_sRGB GL_NV_geometry_shader_passthrough GL_NV_instan
ced_arrays GL_NV_internalformat_sample_query GL_NV_gpu_shader5 GL_NV_image_formats GL_NV_memory_attachment GL_NV
_occlusion_query_samples GL_NV_non_square_matrices GL_NV_pack_subimage GL_NV_packed_float GL_NV_packed_float_lin
ear GL_NV_path_rendering GL_NV_path_rendering_shared_edge GL_NV_pixel_buffer_object GL_NV_polygon_mode GL_NV_rea
d_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_NV_sample_locations GL_NV_sample_mask_o
verride_coverage GL_NV_shader_atomic_fp16_vector GL_NV_shader_noperspective_interpolation GL_NV_shader_subgroup_
partitioned GL_NV_shadow_samplers_array GL_NV_shadow_samplers_cube GL_NV_sRGB_formats GL_NV_stereo_view_renderin
g GL_NV_texture_array GL_NV_texture_barrier GL_NV_texture_border_clamp GL_NV_texture_compression_latc GL_NV_text
ure_compression_s3tc GL_NV_texture_compression_s3tc_update GL_NV_timer_query GL_NV_viewport_array GL_NV_viewport
_array2 GL_NV_viewport_swizzle GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_OES_com
pressed_ETC1_RGB8_texture GL_EXT_compressed_ETC1_RGB8_sub_texture GL_OES_depth24 GL_OES_depth32 GL_OES_depth_tex
ture GL_OES_depth_texture_cube_map GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_verte
x GL_OES_texture_border_clamp GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture_buffer GL
_OES_geometry_point_size GL_OES_geometry_shader GL_OES_gpu_shader5 GL_OES_shader_io_blocks GL_OES_texture_view G
L_OES_primitive_bounding_box GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_E
GL_sync GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_pac
ked_depth_stencil GL_OES_rgb8_rgba8 GL_EXT_read_format_bgra GL_OES_sample_shading GL_OES_sample_variables GL_OES
_shader_image_atomic GL_OES_shader_multisample_interpolation GL_OES_standard_derivatives GL_OES_surfaceless_cont
ext GL_OES_texture_cube_map_array GL_OES_texture_npot GL_OES_texture_float GL_OES_texture_float_linear GL_OES_te
xture_half_float GL_OES_texture_half_float_linear GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_
array GL_OES_vertex_array_object GL_OES_vertex_half_float GL_OES_viewport_array GL_OVR_multiview GL_OVR_multivie
w2 GL_OVR_multiview_multisampled_render_to_texture GL_ANDROID_extension_pack_es31a
[I]    863026832               egl.c:858  | egl_renderStartup              | Debug messages disabled, enable wit
h egl:debug=true
[I]    863032492           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_dam
age
[I]    863229799              main.c:1123 | lg_run                         | ===================================
=============================================
[I]    863229826              main.c:1124 | lg_run                         | The host application seems to not b
e running
[I]    863229831              main.c:1125 | lg_run                         | Waiting for the host application to
start...
[I]    892231815              main.c:1130 | lg_run                         | ===================================
=============================================
[I]    892231841              main.c:1131 | lg_run                         | Please check the host application i
s running and is the correct version
[I]    892231849              main.c:1132 | lg_run                         | Check the host log in your guest at
%ProgramData%\Looking Glass (host)\looking-glass-host.txt
[I]    892231854              main.c:1133 | lg_run                         | Continuing to wait...

I attached a screenshot I believe this is the driver related to the error
Screenshot_20221025_200700
?

That’s not the IVSHMEM driver. The actual one is:

You should remove the B5.0.1 you have now and install B6-rc1 which will automatically install and set the Windows IVSHMEM driver for you. Also, make sure to just execute the looking-glass-host-setup.exe file and not run the host application manually. The looking-glass-host-setup.exe will setup a service with the proper priorities and permissions for LG to run optimally.

See: Installing the IVSHMEM driver

PS
If you decide to upgrade to B6-rc1 host, make sure to also build a new B6-rc1 client application in Linux (they must be the exact same version).

1 Like

The B6 installer worked. That was it, thank you I’m guessing the instructions got updated with the IVSHMEM installer not being a separate install? I was able to get B5 working by running the B6 install and then uninstalling it. Will work next on compiling B6, have a couple more dependencies to track down on Tumbleweed.

Nope, we build the documentation for each release and keep it along side it so you can use the relevant documentation for your version.

https://looking-glass.io/docs/B5.0.1/install/#installing-the-ivshmem-driver

1 Like

Not to tell you guys how to run your project; just want to help. I think this is a fantastic project, and I wish I had known about it sooner.

I hope very much this isn’t taken the wrong way or anything less than constructive. I have been through the instructions and struggled not to miss things. I am not saying in this post you guys missed something in the instructions, just that I failed to realize I had missed a step and want to help others avoid the mistake of missing steps. If you think any of these are of interest, feel free to drop me a message and I’d do anything I could to help contribute to this project as I have surely benefitted from it.

When I did the installation I went at it reading the section by section, doing the tasks outlined following along step by step. There are parts you have to skip inside them depending on your config, OS, etc. Once you start skipping it’s easy to skip something you shouldn’t have. I tried to write our own internal doc, and I used a table with checkboxes for the steps depending on the config that links to the steps in the instructions. It might be just a bit less time than reading the whole document to determine which ones apply to you.

When I had trouble I went to the troubleshooting section first. The location of the log files is clear enough, but it is in the FAQ section and not in troubleshooting. That information could be shown again at the top of troubleshooting (or a link to the FAQ). A short list of the top common problems just in case any step failed (or was skipped) would be a way to check what is missing or match up log errors to which steps.

Lastly, I did work out the list of dependencies to compile on Tumbleweed if that is of interest. Thank you.

LG is in Beta still though and as such documentation is not a priority for several reasons.

  1. Things keep changing invalidating the documentation
  2. We are all unpaid, this is done in our spare time, and when it comes to it we would rather be working on the core of LG rather then documenting what might change tomorrow.

That said, The B5 documentation does leave a lot to be desired and we have been working to improve this already, please see the documentation for B6-rc1 for example:

https://looking-glass.io/docs/B6-rc1/

Feel free to create an account on the LG wiki and contribute this there:

https://looking-glass.io/wiki/Installation_on_other_distributions

1 Like