canonical / mir

The Mir compositor
GNU General Public License v2.0
624 stars 99 forks source link

Mir crashing on `Failed to submit frame from EGLStream for display: Unknown error (0x3353)` #2873

Open Saviq opened 1 year ago

Saviq commented 1 year ago

Xwayland aside, we should be handling that exception better in Mir: at worst disconnecting the client. Not terminating.

Originally posted by @AlanGriffiths in https://github.com/MirServer/mir/issues/2871#issuecomment-1476084126

Saviq commented 1 year ago

So it's enough to run confined-shell a few times, if connected to nvidia-core22:

$ confined-shell ``` [2023-04-04 20:43:44.860660] mirserver: Starting [2023-04-04 20:43:44.863887] < - debug - > mirserver: Using logind for session management [2023-04-04 20:43:44.863975] mircommon: Loading modules from: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform [2023-04-04 20:43:44.864056] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-eglstream-kms.so.20 [2023-04-04 20:43:44.864067] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.20 [2023-04-04 20:43:44.864074] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-wayland.so.20 [2023-04-04 20:43:44.864079] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.20 [2023-04-04 20:43:44.864100] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.8 [2023-04-04 20:43:44.864645] mirserver: Found display driver: mir:eglstream-kms (version 2.13.0) [2023-04-04 20:43:44.867955] < - debug - > eglstream: Found EGLDeviceEXT with device extensions: EGL_NV_device_cuda EGL_EXT_device_drm EGL_EXT_device_drm_render_node EGL_EXT_device_query_name EGL_EXT_devi ce_persistent_id [2023-04-04 20:43:44.894959] < - debug - > eglstream: Found EGLDeviceEXT with device extensions: EGL_EXT_device_drm EGL_EXT_device_drm_render_node libEGL warning: egl: failed to create dri2 screen libEGL warning: egl: failed to create dri2 screen [2023-04-04 20:43:44.908590] < - debug - > eglstream: Failed to initialise EGL: EGL_NOT_INITIALIZED (0x3001) [2023-04-04 20:43:44.909188] < - debug - > eglstream: Found EGLDeviceEXT with device extensions: EGL_MESA_device_software EGL_EXT_device_drm_render_node [2023-04-04 20:43:44.909216] eglstream: Failed to query DRM node for EGLDevice: Failed to determine DRM device node path from EGLDevice: EGL_BAD_PARAMETER (0x300c) [2023-04-04 20:43:44.909224] mirserver: Driver supports: [2023-04-04 20:43:44.909229] mirserver: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 (priority 256) [2023-04-04 20:43:44.909233] mirserver: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 (priority 0) [2023-04-04 20:43:44.909242] mirserver: Found display driver: mir:gbm-kms (version 2.13.0) [2023-04-04 20:43:44.909773] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver nvidia [2023-04-04 20:43:44.909780] gbm-kms: Quirks: skipping device /dev/dri/card0 (matches driver quirk nvidia) [2023-04-04 20:43:44.909784] gbm-kms: Not probing device /dev/dri/card0 due to specified quirk [2023-04-04 20:43:44.909834] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver [2023-04-04 20:43:44.909885] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver [2023-04-04 20:43:44.909935] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver [2023-04-04 20:43:44.909958] mirserver: (Unsupported by system environment) [2023-04-04 20:43:44.909964] mirserver: Found display driver: mir:wayland (version 2.13.0) [2023-04-04 20:43:44.909968] mirserver: (Unsupported by system environment) [2023-04-04 20:43:44.909972] mirserver: Found display driver: mir:x11 (version 2.13.0) [2023-04-04 20:43:44.909984] mirserver: (Unsupported by system environment) [2023-04-04 20:43:44.910011] mirserver: Selected display driver: mir:eglstream-kms (version 2.13.0) [2023-04-04 20:43:44.910942] mircommon: Loading modules from: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform [2023-04-04 20:43:44.910970] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-eglstream-kms.so.20 [2023-04-04 20:43:44.910979] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.20 [2023-04-04 20:43:44.910986] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-wayland.so.20 [2023-04-04 20:43:44.910991] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.20 [2023-04-04 20:43:44.910997] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.8 [2023-04-04 20:43:44.911497] mirserver: Found rendering driver: mir:eglstream-kms (version 2.13.0) libEGL warning: egl: failed to create dri2 screen libEGL warning: egl: failed to create dri2 screen [2023-04-04 20:43:44.914406] < - debug - > eglstream: Failed to initialise EGL: EGL_NOT_INITIALIZED (0x3001) [2023-04-04 20:43:44.914423] < - debug - > eglstream: Failed to find kernel device for EGLDevice: Failed to determine DRM device node path from EGLDevice: EGL_BAD_PARAMETER (0x300c) [2023-04-04 20:43:44.914429] mirserver: Driver supports: [2023-04-04 20:43:44.914432] mirserver: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 (priority 256) [2023-04-04 20:43:44.914435] mirserver: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 (priority 0) [2023-04-04 20:43:44.914441] mirserver: Found rendering driver: mir:gbm-kms (version 2.13.0) [2023-04-04 20:43:44.914983] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver nvidia [2023-04-04 20:43:44.914990] gbm-kms: Quirks: skipping device /dev/dri/card0 (matches driver quirk nvidia) [2023-04-04 20:43:44.914994] gbm-kms: Not probing device /dev/dri/card0 due to specified quirk [2023-04-04 20:43:44.915043] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver [2023-04-04 20:43:44.915093] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver [2023-04-04 20:43:44.915143] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver [2023-04-04 20:43:44.915204] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/renderD128, driver nvidia [2023-04-04 20:43:44.915209] gbm-kms: Quirks: skipping device /dev/dri/renderD128 (matches driver quirk nvidia) [2023-04-04 20:43:44.915213] gbm-kms: Not probing device /dev/dri/renderD128 due to specified quirk [2023-04-04 20:43:44.915238] mirserver: (Unsupported by system environment) [2023-04-04 20:43:44.915244] mirserver: Found rendering driver: mir:wayland (version 2.13.0) [2023-04-04 20:43:44.915248] mirserver: (Unsupported by system environment) [2023-04-04 20:43:44.915252] mirserver: Found rendering driver: mir:x11 (version 2.13.0) [2023-04-04 20:43:44.915256] mirserver: (Unsupported by system environment) [2023-04-04 20:43:44.915271] mirserver: Selected rendering driver: mir:eglstream-kms (version 2.13.0) xkbcommon: ERROR: couldn't find a Compose file for locale "C.UTF-8" (mapped to "C.UTF-8") [2023-04-04 20:43:45.934432] mirserver: Using software cursor [2023-04-04 20:43:45.946158] GLRenderer: EGL vendor: NVIDIA [2023-04-04 20:43:45.946167] GLRenderer: EGL version: 1.5 [2023-04-04 20:43:45.946171] GLRenderer: EGL client APIs: OpenGL_ES OpenGL [2023-04-04 20:43:45.946175] GLRenderer: EGL extensions: EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_mo difiers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_output_drm EGL_EXT_protected_content EGL_EXT_stream_consumer_egloutput EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_context_prio rity EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_partial_update EGL_KHR_swap_buffe rs_with_damage EGL_KHR_no_config_context 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_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream_consumer_gltexture EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfa celess_context EGL_KHR_wait_sync EGL_NV_nvrm_fence_sync 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_st ream_cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socket EGL_NV_stream_socket_inet EGL_NV_stream_socket_unix EGL_NV_stre am_sync EGL_NV_stream_fifo_next EGL_NV_stream_fifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_origin EGL_NV_system_time EGL_NV_output_drm_flip_event EGL_NV_triple_ buffer EGL_NV_robustness_video_memory_purge EGL_EXT_present_opaque EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream [2023-04-04 20:43:45.946183] GLRenderer: GL vendor: NVIDIA Corporation [2023-04-04 20:43:45.946186] GLRenderer: GL renderer: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2 [2023-04-04 20:43:45.946189] GLRenderer: GL version: OpenGL ES 3.2 NVIDIA 515.86.01 [2023-04-04 20:43:45.946191] GLRenderer: GLSL version: OpenGL ES GLSL ES 3.20 [2023-04-04 20:43:45.946194] GLRenderer: GL extensions: GL_EXT_base_instance GL_EXT_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_copy_image GL_EXT_depth_clamp GL_EXT_debug_label GL_EXT_discard_framebuffer GL_EXT_disjoint _timer_query GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_EGL_image_array GL_EXT_EGL_image_storage GL_EXT_EGL_image_external_wrap_modes GL_EXT_float_blend GL_EXT_frag_depth GL_EXT_g eometry_point_size GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_map_buffer_range GL_EXT_multi_draw_indirect GL_EXT_multisample_compatibility GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_r ender_to_texture2 GL_EXT_multiview_texture_multisample GL_EXT_multiview_timer_query GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp GL_EXT_post_depth_coverage GL_EXT_primitive_bounding_box GL_E XT_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_blocks GL_ EXT_shader_non_constant_global_initializers GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sparse_texture GL_EXT_sparse_texture2 GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_tessellation_point_si ze GL_EXT_tessellation_shader GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_compression_bptc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s 3tc GL_EXT_texture_cube_map_array 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_que ry_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_transform_feedback GL_EXT_unpack_subimage GL_EXT _window_rectangles GL_KHR_context_flush_control GL_KHR_debug GL_EXT_memory_object GL_EXT_memory_object_fd GL_NV_memory_object_sparse GL_KHR_parallel_shader_compile GL_KHR_no_error GL_KHR_robust_buffer_acc ess_behavior GL_KHR_robustness GL_EXT_semaphore GL_EXT_semaphore_fd GL_NV_timeline_semaphore GL_KHR_shader_subgroup GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_KHR_tex ture_compression_astc_hdr GL_NV_bgr GL_NV_bindless_texture GL_NV_blend_equation_advanced GL_NV_blend_equation_advanced_coherent GL_NVX_blend_equation_advanced_multi_draw_buffers GL_NV_blend_minmax_factor GL_NV_clip_space_w_scaling GL_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_conservative_raster GL_NV_conservative_raster_pre_snap_triangles GL_NV_copy_buffer GL_NV_copy_image GL_NV_draw_bu ffers 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_cove rage_to_color GL_NV_fragment_shader_barycentric 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_geomet ry_shader_passthrough GL_NV_instanced_arrays GL_NV_internalformat_sample_query GL_NV_gpu_shader5 GL_NV_image_formats GL_NV_memory_attachment GL_NV_mesh_shader GL_NV_occlusion_query_samples GL_NV_non_squar e_matrices GL_NV_pack_subimage GL_NV_packed_float GL_NV_packed_float_linear GL_NV_path_rendering GL_NV_path_rendering_shared_edge GL_NV_pixel_buffer_object GL_NV_polygon_mode GL_NV_read_buffer GL_NV_read_ depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_NV_representative_fragment_test GL_NV_sample_locations GL_NV_sample_mask_override_coverage GL_NV_scissor_exclusive GL_NV_shader_atomic_fp16_vector GL_N V_shader_noperspective_interpolation GL_NV_shader_subgroup_partitioned GL_NV_shader_texture_footprint GL_NV_shading_rate_image GL_NV_shadow_samplers_array GL_NV_shadow_samplers_cube GL_NV_sRGB_formats GL_ NV_stereo_view_rendering GL_NV_texture_array GL_NV_texture_barrier GL_NV_texture_border_clamp GL_NV_texture_compression_latc GL_NV_texture_compression_s3tc GL_NV_texture_compression_s3tc_update GL_NV_time r_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_compressed_ETC1_RGB8_texture GL_EXT_compressed_ETC1_ RGB8_sub_texture GL_OES_depth24 GL_OES_depth32 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex 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 GL_OES_pri mitive_bounding_box GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_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_deri vatives GL_OES_surfaceless_context GL_OES_texture_cube_map_array GL_OES_texture_npot GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_text ure_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_multiview2 GL_OVR_multiview_multisampled_render_t o_texture GL_ANDROID_extension_pack_es31a [2023-04-04 20:43:45.946216] GLRenderer: GL max texture size = 32768 [2023-04-04 20:43:45.946221] GLRenderer: GL framebuffer bits: RGBA=8880, depth=0, stencil=0 [2023-04-04 20:43:45.946662] platform-eglstream-kms: Bound EGLStreams-backed Wayland display [2023-04-04 20:43:45.946797] mircommon: Loading modules from: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform [2023-04-04 20:43:45.946825] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-eglstream-kms.so.20 [2023-04-04 20:43:45.946839] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.20 [2023-04-04 20:43:45.946850] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-wayland.so.20 [2023-04-04 20:43:45.946857] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.20 [2023-04-04 20:43:45.946863] mircommon: Loading module: /snap/confined-shell/223/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.8 [2023-04-04 20:43:45.989635] mirserver: Selected input driver: mir:evdev-input (version: 2.13.0) [2023-04-04 20:43:45.990100] mirserver: Mir version 2.13.0 [2023-04-04 20:43:46.000349] GLRenderer: EGL vendor: NVIDIA [2023-04-04 20:43:46.000358] GLRenderer: EGL version: 1.5 [2023-04-04 20:43:46.000363] GLRenderer: EGL client APIs: OpenGL_ES OpenGL [2023-04-04 20:43:46.000366] GLRenderer: EGL extensions: EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_mo difiers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_output_drm EGL_EXT_protected_content EGL_EXT_stream_consumer_egloutput EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_context_prio rity EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_partial_update EGL_KHR_swap_buffe rs_with_damage EGL_KHR_no_config_context 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_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream_consumer_gltexture EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfa celess_context EGL_KHR_wait_sync EGL_NV_nvrm_fence_sync 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_st ream_cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socket EGL_NV_stream_socket_inet EGL_NV_stream_socket_unix EGL_NV_stre am_sync EGL_NV_stream_fifo_next EGL_NV_stream_fifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_origin EGL_NV_system_time EGL_NV_output_drm_flip_event EGL_NV_triple_ buffer EGL_NV_robustness_video_memory_purge EGL_EXT_present_opaque EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream [2023-04-04 20:43:46.000390] GLRenderer: GL vendor: NVIDIA Corporation [2023-04-04 20:43:46.000392] GLRenderer: GL renderer: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2 [2023-04-04 20:43:46.000395] GLRenderer: GL version: OpenGL ES 3.2 NVIDIA 515.86.01 [2023-04-04 20:43:46.000399] GLRenderer: GLSL version: OpenGL ES GLSL ES 3.20 [2023-04-04 20:43:46.000406] GLRenderer: GL extensions: GL_EXT_base_instance GL_EXT_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_copy_image GL_EXT_depth_clamp GL_EXT_debug_label GL_EXT_discard_framebuffer GL_EXT_disjoint _timer_query GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_EGL_image_array GL_EXT_EGL_image_storage GL_EXT_EGL_image_external_wrap_modes GL_EXT_float_blend GL_EXT_frag_depth GL_EXT_g eometry_point_size GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_map_buffer_range GL_EXT_multi_draw_indirect GL_EXT_multisample_compatibility GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_r ender_to_texture2 GL_EXT_multiview_texture_multisample GL_EXT_multiview_timer_query GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp GL_EXT_post_depth_coverage GL_EXT_primitive_bounding_box GL_E XT_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_blocks GL_ EXT_shader_non_constant_global_initializers GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sparse_texture GL_EXT_sparse_texture2 GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_tessellation_point_si ze GL_EXT_tessellation_shader GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_compression_bptc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s 3tc GL_EXT_texture_cube_map_array 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_que ry_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_transform_feedback GL_EXT_unpack_subimage GL_EXT _window_rectangles GL_KHR_context_flush_control GL_KHR_debug GL_EXT_memory_object GL_EXT_memory_object_fd GL_NV_memory_object_sparse GL_KHR_parallel_shader_compile GL_KHR_no_error GL_KHR_robust_buffer_acc ess_behavior GL_KHR_robustness GL_EXT_semaphore GL_EXT_semaphore_fd GL_NV_timeline_semaphore GL_KHR_shader_subgroup GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_KHR_tex ture_compression_astc_hdr GL_NV_bgr GL_NV_bindless_texture GL_NV_blend_equation_advanced GL_NV_blend_equation_advanced_coherent GL_NVX_blend_equation_advanced_multi_draw_buffers GL_NV_blend_minmax_factor GL_NV_clip_space_w_scaling GL_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_conservative_raster GL_NV_conservative_raster_pre_snap_triangles GL_NV_copy_buffer GL_NV_copy_image GL_NV_draw_bu ffers 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_cove rage_to_color GL_NV_fragment_shader_barycentric 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_geomet ry_shader_passthrough GL_NV_instanced_arrays GL_NV_internalformat_sample_query GL_NV_gpu_shader5 GL_NV_image_formats GL_NV_memory_attachment GL_NV_mesh_shader GL_NV_occlusion_query_samples GL_NV_non_squar e_matrices GL_NV_pack_subimage GL_NV_packed_float GL_NV_packed_float_linear GL_NV_path_rendering GL_NV_path_rendering_shared_edge GL_NV_pixel_buffer_object GL_NV_polygon_mode GL_NV_read_buffer GL_NV_read_ depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_NV_representative_fragment_test GL_NV_sample_locations GL_NV_sample_mask_override_coverage GL_NV_scissor_exclusive GL_NV_shader_atomic_fp16_vector GL_N V_shader_noperspective_interpolation GL_NV_shader_subgroup_partitioned GL_NV_shader_texture_footprint GL_NV_shading_rate_image GL_NV_shadow_samplers_array GL_NV_shadow_samplers_cube GL_NV_sRGB_formats GL_ NV_stereo_view_rendering GL_NV_texture_array GL_NV_texture_barrier GL_NV_texture_border_clamp GL_NV_texture_compression_latc GL_NV_texture_compression_s3tc GL_NV_texture_compression_s3tc_update GL_NV_time r_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_compressed_ETC1_RGB8_texture GL_EXT_compressed_ETC1_ RGB8_sub_texture GL_OES_depth24 GL_OES_depth32 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex 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 GL_OES_pri mitive_bounding_box GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_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_deri vatives GL_OES_surfaceless_context GL_OES_texture_cube_map_array GL_OES_texture_npot GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_text ure_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_multiview2 GL_OVR_multiview_multisampled_render_t o_texture GL_ANDROID_extension_pack_es31a [2023-04-04 20:43:46.000427] GLRenderer: GL max texture size = 32768 [2023-04-04 20:43:46.000432] GLRenderer: GL framebuffer bits: RGBA=8880, depth=0, stencil=0 [2023-04-04 20:43:46.013356] < - debug - > mirserver: Ignoring logind PauseDevice("gone") event for DRM device 226:0 [2023-04-04 20:43:46.013377] < - debug - > mirserver: Ignoring logind PauseDevice("gone") event for DRM device 226:0 [2023-04-04 20:43:46.013466] mirserver: Initial display configuration: [2023-04-04 20:43:46.013493] mirserver: * Output 86: DisplayPort disconnected [2023-04-04 20:43:46.013497] mirserver: * Output 89: DisplayPort disconnected [2023-04-04 20:43:46.013500] mirserver: * Output 92: eDP connected, used [2023-04-04 20:43:46.013505] mirserver: . |_ Physical size 24.0" 530x300mm [2023-04-04 20:43:46.013509] mirserver: . |_ Power is on [2023-04-04 20:43:46.013532] mirserver: . |_ Current mode 1920x1080 60.00Hz [2023-04-04 20:43:46.013536] mirserver: . |_ Preferred mode 1920x1080 60.00Hz [2023-04-04 20:43:46.013540] mirserver: . |_ Orientation normal [2023-04-04 20:43:46.013545] mirserver: . |_ Logical size 1920x1080 [2023-04-04 20:43:46.013549] mirserver: . |_ Logical position +0+0 [2023-04-04 20:43:46.013553] mirserver: . |_ Scaling factor: 1.00 [2023-04-04 20:43:46.014913] < - debug - > miral: Restoring sigmask [2023-04-04 20:43:46.015180] < -warning- > miral: Failed to execute client ("dbus-update-activation-environment") error: Permission denied [2023-04-04 20:43:46.015798] < - debug - > miral: Restoring sigmask [2023-04-04 20:43:46.016484] < - debug - > miral: Restoring sigmask [2023-04-04 20:43:46.017235] < -warning- > evdev-input: Attempted to remove unmanaged fd 64 [2023-04-04 20:43:46.019523] < -warning- > evdev-input: Attempted to remove unmanaged fd 68 [2023-04-04 20:43:46.020321] < -warning- > evdev-input: Attempted to remove unmanaged fd 69 [2023-04-04 20:43:46.020964] < -warning- > evdev-input: Attempted to remove unmanaged fd 70 [2023-04-04 20:43:46.021794] < -warning- > evdev-input: Attempted to remove unmanaged fd 71 [2023-04-04 20:43:46.022661] < -warning- > evdev-input: Attempted to remove unmanaged fd 72 [2023-04-04 20:43:46.025537] < -warning- > evdev-input: Attempted to remove unmanaged fd 76 [2023-04-04 20:43:46.026433] < -warning- > evdev-input: Attempted to remove unmanaged fd 77 info: fcft.c:314: fcft: 3.0.1 +graphemes -runs -assertions info: fcft.c:324: fontconfig: 2.13.1 info: fcft.c:330: freetype: 2.11.1 info: fcft.c:794: /usr/share/fonts/Plymouth.ttf: size=12.00pt/13px, dpi=75.00 info: fcft.c:794: /usr/share/fonts/Plymouth.ttf: size=13.44pt/14px, dpi=75.00 info: fcft.c:794: /usr/share/fonts/Plymouth.ttf: size=13.44pt/14px, dpi=75.00 info: bar/wayland.c:558: monitor: OUT-0: 1920x1080+0+0 (530x300mm) info: fcft.c:794: /usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf: size=13.44pt/14px, dpi=75.00 info: fcft.c:794: /usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf: size=13.44pt/14px, dpi=75.00 err: modules/network.c:193: failed to create netlink socket err: modules/battery.c:199: /sys/class/power_supply/BAT*: Operation not permitted (1) : No such file or directory (2) ```
2023-04-04 20:43:46 - [main.c:299] Found config * for output OUT-0 ((null))
[2023-04-04 20:43:46.999744] < CRITICAL! > mirserver: terminate_with_current_exception(): ./src/platforms/eglstream-kms/server/display.cpp(274): Throw in function virtual void {anonymous}::DisplayBuffer::
post()
Dynamic exception type: boost::wrapexcept<std::system_error>
std::exception::what: Failed to submit frame from EGLStream for display: Unknown error (0x3353)

[2023-04-04 20:43:46.999862] < - debug - > mirserver: Handling Terminated from pid=34506
ERROR: ./src/platforms/eglstream-kms/server/display.cpp(274): Throw in function virtual void {anonymous}::DisplayBuffer::post()
Dynamic exception type: boost::wrapexcept<std::system_error>
std::exception::what: Failed to submit frame from EGLStream for display: Unknown error (0x3353)

warn: bar/wayland.c:757: 2023-04-04 20:43:47 - unknown global removed: 0x00000003
[main.c:351] Destroying output OUT-0 ((null))
warn: bar/wayland.c:757: unknown global removed: 0x00000002
warn: bar/wayland.c:757: unknown global removed: 0x00000017
warn: bar/wayland.c:757: unknown global removed: 0x00000016
warn: bar/wayland.c:757: unknown global removed: 0x00000015
warn: bar/wayland.c:757: unknown global removed: 0x00000008
warn: bar/wayland.c:757: unknown global removed: 0x00000009
warn: bar/wayland.c:757: unknown global removed: 0x0000000a
warn: bar/wayland.c:757: unknown global removed: 0x0000000b
warn: bar/wayland.c:757: unknown global removed: 0x0000000c
warn: bar/wayland.c:757: unknown global removed: 0x0000000d
warn: bar/wayland.c:757: unknown global removed: 0x0000000e
warn: bar/wayland.c:757: unknown global removed: 0x00000012
warn: bar/wayland.c:757: unknown global removed: 0x00000010
warn: bar/wayland.c:757: unknown global removed: 0x00000014
warn: bar/wayland.c:757: unknown global removed: 0x0000000f
warn: bar/wayland.c:757: unknown global removed: 0x00000013
warn: bar/wayland.c:757: unknown global removed: 0x00000011
warn: bar/wayland.c:757: unknown global removed: 0x00000018
warn: bar/wayland.c:757: unknown global removed: 0x00000007
info: bar/wayland.c:744: OUT-0 disconnected/disabled
warn: bar/wayland.c:757: unknown global removed: 0x00000005
warn: bar/wayland.c:757: unknown global removed: 0x00000004

I was unable to reproduce outside of snap confinement (whether installed or --devmode) - but snappy-debug doesn't seem to highlight anything interesting (and this doesn't happen every time):

$ sudo journalctl --output=short --follow --all | sudo snappy-debug ``` kernel.printk_ratelimit = 0 = Seccomp = Time: Apr 04 20:51:19 Log: auid=1000 uid=1000 gid=1000 ses=6 subj=snap.confined-shell.confined-shell pid=36364 comm="miriway-shell" exe="/snap/confined-shell/223/usr/local/bin/miriway-shell" sig=0 arch=c000003e 314(sched_setattr) compat=0 ip=0x7ff29225ba3d code=0x50000 Syscall: sched_setattr Suggestion: * add 'process-control' to 'plugs' = AppArmor = Time: Apr 04 20:51:19 Log: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=36364 label="snap.confined-shell.confined-shell" peer_label="unconfined" DBus access = AppArmor = Time: Apr 04 20:51:19 Log: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=36364 label="snap.confined-shell.confined-shell" peer_label="unconfined" DBus access = AppArmor = Time: Apr 04 20:51:19 Log: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=36364 label="snap.confined-shell.confined-shell" peer_label="unconfined" DBus access = AppArmor = Time: Apr 04 20:51:19 Log: apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=36364 label="snap.confined-shell.confined-shell" peer_label="unconfined" DBus access = AppArmor = Time: Apr 04 20:51:21 Log: apparmor="DENIED" operation="exec" class="file" profile="snap.confined-shell.confined-shell" name="/usr/bin/dbus-update-activation-environment" pid=36454 comm="miriway-shell" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0 = AppArmor = Time: Apr 04 20:51:21 Log: apparmor="DENIED" operation="mknod" class="file" profile="snap.confined-shell.confined-shell" name="/usr/share/fonts/truetype/.uuid.TMP-A8GUjI" pid=36456 comm="yambar" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000 = Seccomp = Time: Apr 04 20:51:21 Log: auid=1000 uid=1000 gid=1000 ses=6 subj=snap.confined-shell.confined-shell pid=36456 comm="net(wlp0s20f3)" exe="/snap/confined-shell/223/usr/local/bin/yambar" sig=0 arch=c000003e 41(socket) compat=0 ip=0x7f5325baeceb code=0x50000 Syscall: socket Suggestions: * add account-control (if using NETLINK_AUDIT) * add audio-playback (if using NETLINK_KOBJECT_UEVENT) * add bluetooth-control (if using AF_{ALG,BLUETOOTH}) * add firewall-control (if using NETLINK_{FIREWALL,IP6_FW,NETFILTER,NF_LOG,ROUTE}) * add hardware-observe (if using NETLINK_{GENERIC,KOBJECT_UEVENT}) * add netlink-audit (if using NETLINK_AUDIT) * add netlink-connector (if using NETLINK_CONNECTOR) * add network (if using AF_INET{,6}, AF_CONN, NETLINK_ROUTE) * add network-bind (if using AF_INET{,6}, NETLINK_ROUTE) * add network-control (if using AF_{APPLETALK,BRIDGE,INET,INET6,IPX,PACKET,PPPOX,SNA}, NETLINK_{DNRTMSG,FIB_LOOKUP,GENERIC,INET_DIAG,ISCSI,KOBJECT_UEVENT,RDMA,ROUTE,XFRM}) * add network-observe (if using SOCK_RAW, AF_INET{,6}), NETLINK_{GENERIC,INET_DIAG,KOBJECT_UEVENT,ROUTE}) * add raw-usb (if using NETLINK_KOBJECT_UEVENT) * add time-control (if using NETLINK_AUDIT) * add unity7 (if using NETLINK_KOBJECT_UEVENT) * add x11 (if using NETLINK_KOBJECT_UEVENT) ```