Skip to content

x11: cog on VirtualBox Ubuntu 20.04 seg fault core dumped #621

@laurence-ejraee

Description

@laurence-ejraee

Hi, I'm trying to get cog to run on a Ubuntu VM running 20.04.4 which has graphics llvmpipe and Windowing System X11.

I am seeing this issue with the simple steps: install cog / wpewebkit etc. from Ubuntu with sudo apt install. Run cog with $ cog https://google.com error:

** (cog:1723): WARNING **: 12:02:21.844: Platform setup failed: Could not open Wayland display
** (cog:1723): CRITICAL : 12:02:21.844: WebKitWebViewBackend webkit_web_view_backend_new(wpe_view_backend, GDestroyNotify, gpointer): assertion 'backend' failed
** (cog:1723): ERROR **: 12:02:21.844: Could not instantiate any WPE backend.
Trace/breakpoint trap (core dumped)

So, I run weston to create the display first, and then run cog to get:

$ cog https://google.com
Cog-Message: 12:04:37.124: https://google.com/ Load started.
Cog-Message: 12:04:37.129: https://www.google.com/ Redirected.
Cog-Message: 12:04:37.382: https://www.google.com/ Loading...
Segmentation fault (core dumped)

I have tried building cog with x11 platform with $ COG_MODULEDIR=$PWD/platform ./launcher/cog --platform=x11 https://www.igalia.com and this does launch a window for a moment, but then crashes.
Please, is it possible to run cog on VM running this version of Ubuntu with X11? If so please advise of any settings or setup I need to use etc.
Any info on this is greatly appreciated!

$ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Mesa/X.org (0xffffffff)
Device: llvmpipe (LLVM 12.0.0, 256 bits) (0xffffffff)
Version: 21.2.6
Accelerated: no
Video memory: 3912MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.5
Max compat profile version: 3.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 12.0.0, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.1 Mesa 21.2.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Weston log:

$ weston
Date: 2023-10-23 BST
[12:03:42.156] weston 8.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 8.0.0
[12:03:42.157] Command line: weston
[12:03:42.157] OS: Linux, 5.15.0-87-generic, #97~20.04.1-Ubuntu SMP Thu Oct 5 08:25:28 UTC 2023, x86_64
[12:03:42.157] Starting with no config file.
[12:03:42.157] Output repaint window is 7 ms maximum.
[12:03:42.158] Loading module '/usr/lib/x86_64-linux-gnu/libweston-8/x11-backend.so'
[12:03:42.163] Loading module '/usr/lib/x86_64-linux-gnu/libweston-8/gl-renderer.so'
[12:03:42.165] EGL client extensions: EGL_EXT_device_base
EGL_EXT_device_enumeration EGL_EXT_device_query
EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device
EGL_EXT_platform_wayland EGL_KHR_platform_wayland
EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_MESA_platform_xcb
EGL_MESA_platform_gbm EGL_KHR_platform_gbm
EGL_MESA_platform_surfaceless
libEGL warning: DRI2: failed to authenticate
[12:03:42.179] EGL version: 1.5
[12:03:42.179] EGL vendor: Mesa Project
[12:03:42.179] EGL client APIs: OpenGL OpenGL_ES
[12:03:42.179] EGL extensions: EGL_EXT_create_context_robustness
EGL_KHR_cl_event2 EGL_KHR_config_attribs
EGL_KHR_context_flush_control 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_base 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_query_driver
[12:03:42.180] warning: Disabling render GPU timeline and explicit synchronization due to missing EGL_ANDROID_native_fence_sync extension
[12:03:42.180] EGL_KHR_surfaceless_context available
[12:03:42.190] GL version: OpenGL ES 3.2 Mesa 21.2.6
[12:03:42.191] GLSL version: OpenGL ES GLSL ES 3.20
[12:03:42.191] GL vendor: Mesa/X.org
[12:03:42.191] GL renderer: llvmpipe (LLVM 12.0.0, 256 bits)
[12:03:42.191] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
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_draw_instanced
GL_EXT_texture_sRGB_decode GL_OES_EGL_image
GL_OES_depth_texture 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_pack_reverse_row_order
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_NV_pixel_buffer_object
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_group_vote GL_EXT_shader_implicit_conversions
GL_EXT_shader_integer_mix GL_EXT_tessellation_point_size
GL_EXT_tessellation_shader 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_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_texture_filter_minmax
GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8 GL_KHR_no_error
GL_KHR_texture_compression_astc_sliced_3d
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_color_buffer_half_float 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_shadow_lod GL_MESA_framebuffer_flip_y
GL_EXT_depth_clamp GL_EXT_texture_query_lod GL_MESA_bgra
[12:03:42.192] GL ES 2 renderer features:
read-back format: BGRA
wl_shm sub-image to texture: yes
EGL Wayland extension: no
[12:03:42.192] Using gl renderer
[12:03:42.208] Registered plugin API 'weston_windowed_output_api_v1' of size 16
[12:03:42.209] Chosen EGL config details: id: 11 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win|pix|pbf|swap_preserved vis_id: 0x21
[12:03:42.210] x11 output 1024x600, window id 44040197
[12:03:42.210] Output 'screen0' enabled with head(s) screen0
[12:03:42.210] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC_RAW, id 4
presentation clock resolution: 0.000000001 s
[12:03:42.211] Loading module '/usr/lib/x86_64-linux-gnu/weston/desktop-shell.so'
[12:03:42.218] launching '/usr/lib/x86_64-linux-gnu/weston-keyboard'
[12:03:42.219] launching '/usr/lib/x86_64-linux-gnu/weston-desktop-shell'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions