Mir-kiosk - call for testing

Mir-kiosk and core20

I am hoping to update the mir-kiosk snap to work with a core20 base. That brings us a newer set of graphics libraries than with the core18 base we have been using. In theory, newer should be better, but I know that mir-kiosk is used on a much wider range of hardware than I have access to for testing.

So I’d like the help of the community to help with final testing of this change. I’ve pushed the updated version of mir-kiosk to the beta channel. If you are using mir-kiosk, could you try the effect of switching to the beta channel and let me know if there are any problems.

Get it from the Snap Store

2 Likes

Update

The change to base: core20 has now been rolled up with the Mir 2.2 release which is currently on the candidate channel.

To test, just switch to the candidate channel:

 snap refresh --candidate mir-kiosk

And use as normal. Please let us know any results here.

while working on https://snapcraft.io/picviewer-kiosk (a wayland image viewer (imv)) i found that the stable mir-kiosk did not work on either pi3 or pi4 (the picviewer daemon did not properly start) … the candidate version fixes it and everything works just fine … :+1:

PS: this was tested/running on an UbuntuCore18 image

1 Like

@alan_g

This latest version does seem to not work for at least the test Intel NUC I’m working on, running UC20.

The service is listed as running, but the wayland socket does not exist in /run/user/0/wayland-0

The daemon log:

2020-12-23T17:33:23Z systemd[1]: Started Service for snap application mir-kiosk.daemon.
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.445554] <information> mirserver: Starting
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.445881] < - debug - > mirserver: Using Linux VT subsystem for session management
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.445992] <information> mircommon: Loading modules from: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.446062] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.19
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.446074] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-wayland.so.19
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.446082] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.19
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.446089] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.7
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.447690] <information> gbm-kms: EGL platform does not support EGL_KHR_platform_gbm extension
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: Failed to create /root/.cache for shader cache (Permission denied)---disabling.
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.498619] <information> mirserver: Found graphics driver: mir:gbm-kms (version 2.2.0) Support priority: 256
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.498665] <information> mirserver: Found graphics driver: mir:wayland (version 2.2.0) Support priority: 0
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.498702] <information> mirserver: Found graphics driver: mir:x11 (version 2.2.0) Support priority: 0
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.498969] <information> mirserver: Selected driver: mir:gbm-kms (version 2.2.0)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.499453] <information> gbm-kms: Using DRM device /dev/dri/card0
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: Failed to create /root/.cache for shader cache (Permission denied)---disabling.
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.609518] < -warning- > gbm-kms: Unable to determine the current display mode.
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.609611] < -warning- > gbm-kms: Unable to determine the current display mode.
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.613004] <information> gbm-kms: DRM device details:
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.613039] <information> gbm-kms: /dev/dri/card0: using driver i915 [Intel Graphics] (version: 1.6.0 driver date: 20190822)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.620241] <information> gbm-kms: 	Output: DisplayPort-1 (disconnected)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664398] <information> gbm-kms: 	Output: DisplayPort-2 (connected)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664417] <information> gbm-kms: 		Mode: 1920×1080@60.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664427] <information> gbm-kms: 		Mode: 1920×1080@59.94
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664434] <information> gbm-kms: 		Mode: 1920×1080@50.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664442] <information> gbm-kms: 		Mode: 1600×900@60.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664449] <information> gbm-kms: 		Mode: 1280×1024@60.01
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664457] <information> gbm-kms: 		Mode: 1440×900@59.90
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664465] <information> gbm-kms: 		Mode: 1366×768@59.94
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664472] <information> gbm-kms: 		Mode: 1280×800@59.90
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664478] <information> gbm-kms: 		Mode: 1280×720@60.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664485] <information> gbm-kms: 		Mode: 1280×720@59.94
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664491] <information> gbm-kms: 		Mode: 1280×720@50.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664501] <information> gbm-kms: 		Mode: 1024×768@60.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664510] <information> gbm-kms: 		Mode: 800×600@60.31
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664524] <information> gbm-kms: 		Mode: 720×576@50.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664531] <information> gbm-kms: 		Mode: 720×480@60.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664539] <information> gbm-kms: 		Mode: 720×480@59.94
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664545] <information> gbm-kms: 		Mode: 640×480@60.00
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664552] <information> gbm-kms: 		Mode: 640×480@59.94
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664565] < - debug - > miral: Display config using layout: 'default'
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.664651] <information> miral: Display config:
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: 8>< ---------------------------------------------------
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: layouts:
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: # keys here are layout labels (used for atomically switching between them)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: # when enabling displays, surfaces should be matched in reverse recency order
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:   default:                         # the default layout
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:     cards:
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:     # a list of cards (currently matched by card-id)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:     - card-id: 0
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:       DisplayPort-1:
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # (disconnected)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:       DisplayPort-2:
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # This output supports the following modes: 1920x1080@60.0, 1920x1080@59.9,
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # 1920x1080@50.0, 1600x900@60.0, 1280x1024@60.0, 1440x900@59.9, 1366x768@59.9,
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # 1280x800@59.9, 1280x720@60.0, 1280x720@59.9, 1280x720@50.0, 1024x768@60.0,
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # 800x600@60.3, 720x576@50.0, 720x480@60.0, 720x480@59.9, 640x480@60.0,
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # 640x480@59.9
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         #
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # Uncomment the following to enforce the selected configuration.
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # Or amend as desired.
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         #
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # state: enabled	# {enabled, disabled}, defaults to enabled
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # mode: 1920x1080@60.0	# Defaults to preferred mode
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # position: [0, 0]	# Defaults to [0, 0]
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # orientation: normal	# {normal, left, right, inverted}, defaults to normal
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # scale: 1
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]:         # group: 0	# Outputs with the same non-zero value are treated as a single display
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: 8>< ---------------------------------------------------
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.716068] < -warning- > gbm-kms: drmModeCrtcSetGamma failed: Invalid argument
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: WARNING: Kernel has no file descriptor comparison support: Operation not permitted
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.719642] <information> gbm-kms: Detected single-GPU DisplayBuffer. Rendering will be sent directly to output
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.756683] <information> mirserver: Cursor disabled
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.760462] <information> gbm-kms-buffer-allocator: Enabled linux-dmabuf import support
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: bind() failed with error: Address already in use
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.761865] <information> mircommon: Loading modules from: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.762067] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.19
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.762240] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-wayland.so.19
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.762313] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.19
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.762373] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.7
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.792546] <information> mirserver: Selected input driver: mir:evdev-input (version: 2.2.0)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.792884] <information> mirserver: Mir version 2.2.0
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817670] <information> GLRenderer: EGL vendor: Mesa Project
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817749] <information> GLRenderer: EGL version: 1.5
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817767] <information> GLRenderer: EGL client APIs: OpenGL OpenGL_ES
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817782] <information> GLRenderer: EGL extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817813] <information> GLRenderer: GL vendor: Intel
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817829] <information> GLRenderer: GL renderer: Mesa Intel(R) HD Graphics 620 (KBL GT2)
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817841] <information> GLRenderer: GL version: OpenGL ES 3.2 Mesa 20.0.8
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.817853] <information> GLRenderer: GLSL version: OpenGL ES GLSL ES 3.20
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.818064] <information> GLRenderer: GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_OES_viewport_array GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_robustness GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_INTEL_conservative_rasterization GL_INTEL_performance_query GL_ANDROID_extension_pack_es31a GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_gpu_shader5 GL_EXT_polygon_offset_clamp GL_EXT_primitive_bounding_box GL_EXT_render_snorm GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_texture_norm16 GL_EXT_texture_view GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_image_formats GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5 GL_OES_primitive_bounding_box GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_io_blocks GL_OES_shader_multisample_interpolation GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_shader_samples_identical GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_NV_fragment_shader_interlock GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_texture_compression_bptc GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_sRGB_R8 GL_EXT_texture_shadow_lod GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_demote_to_helper_invocation GL_EXT_depth_clamp GL_EXT_texture_query_lod
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.818088] <information> GLRenderer: GL max texture size = 16384
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.818109] <information> GLRenderer: GL framebuffer bits: RGBA=8880, depth=0, stencil=0
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897192] <information> mirserver: Initial display configuration:
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897318] <information> mirserver: * Output 1: DisplayPort disconnected
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897350] <information> mirserver: * Output 2: DisplayPort connected, used
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897383] <information> mirserver: . |_ EDID monitor name: HDMI
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897409] <information> mirserver: . |_ EDID manufacturer: WCS
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897435] <information> mirserver: . |_ EDID product code: 9558
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897468] <information> mirserver: . |_ Physical size 15.7" 350x190mm
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897490] <information> mirserver: . |_ Power is on
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897514] <information> mirserver: . |_ Current mode 1920x1080 60.00Hz
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897537] <information> mirserver: . |_ Preferred mode 1920x1080 60.00Hz
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897558] <information> mirserver: . |_ Orientation normal
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897588] <information> mirserver: . |_ Logical size 1920x1080
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897610] <information> mirserver: . |_ Logical position +0+0
2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:23.897631] <information> mirserver: . |_ Scaling factor: 1.00
2020-12-23T17:33:26Z mir-kiosk.daemon[219197]: [2020-12-23 17:33:26.078183] < - debug - > wayland-gfx-helpers: Wayland buffer destroyed before use; rendering will be incomplete

…and in the nohup file, I get this:

[2020-12-23 12:05:25.382860] <information> mirserver: Starting
[2020-12-23 12:05:25.383312] < - debug - > mirserver: Using Linux VT subsystem for session management
[2020-12-23 12:05:25.383437] <information> mircommon: Loading modules from: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform
[2020-12-23 12:05:25.383481] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.19
[2020-12-23 12:05:25.383500] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-wayland.so.19
[2020-12-23 12:05:25.383513] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.19
[2020-12-23 12:05:25.383526] <information> mircommon: Loading module: /snap/mir-kiosk/5487/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.7
[2020-12-23 12:05:25.386182] <information> gbm-kms: EGL platform does not support EGL_KHR_platform_gbm extension
[2020-12-23 12:05:25.386470] <information> gbm-kms: Failed to claim DRM master: Invalid argument
[2020-12-23 12:05:25.386632] <information> mirserver: Found graphics driver: mir:gbm-kms (version 2.2.0) Support priority: 0
[2020-12-23 12:05:25.386649] <information> mirserver: Found graphics driver: mir:wayland (version 2.2.0) Support priority: 0
[2020-12-23 12:05:25.386671] <information> mirserver: Found graphics driver: mir:x11 (version 2.2.0) Support priority: 0
ERROR: /build/mir-K7y0Z4/mir-2.2.0/src/server/graphics/default_configuration.cpp(136): Throw in function mir::DefaultServerConfiguration::the_graphics_platform()::<lambda()>
Dynamic exception type: boost::wrapexcept<std::runtime_error>
std::exception::what: Exception while creating graphics platform
ERROR: /build/mir-K7y0Z4/mir-2.2.0/src/server/graphics/platform_probe.cpp(78): Throw in function std::shared_ptr<mir::SharedLibrary> mir::graphics::module_for_device(const std::vector<std::shared_ptr<mir::SharedLibrary> >&, const mir::options::ProgramOption&, const std::shared_ptr<mir::ConsoleServices>&)
Dynamic exception type: boost::wrapexcept<std::runtime_error>
std::exception::what: Failed to find platform for current system

Cheers,
Just

To confirm I’ve understood correctly: you’re using a pre-release version of Ubuntu Core 20?

Basically yes. We are developing our image based on UC20 in anticipation of it being GA early next year. It’s not the beta1 reference image, but out own in-house image. We have a Brand Store etc.

Cheers,
Just

FYI It was working without issue with the pre 2.2 version of the snap.

@alan_g I have traced the cause of the issue, and actually it’s not quite what I thought it was.

It’s not the version 2.2 based version that was the problem.

It seemed to be this:

2020-12-23T17:33:23Z mir-kiosk.daemon[219197]: bind() failed with error: Address already in use

Somehow, and I must admit I have no idea how, /run/user/0/wayland-0 was a directory. I noriced it yesterday, but for some reason I didn’t put 2+2 together. Today, after a restart I noticed that it was a socket again, and it’s working.

If I stop mir-kiosk and create a directory as /run/user/0/wayland-0, it reproduces the issue.

So the question is how did that happen ?

I can’t see anything in the snap that would result in that, the code in glue/bin/run-miral has a mkdir but I can’t see how it would create the socket path as a directory.

Perhaps there is some race condition in the mir code itself ? I haven’t looked there.

Any thoughts ?

Cheers,
Just