-
Notifications
You must be signed in to change notification settings - Fork 75
Description
Hi all,
I am trying to get Cog to run on an Ubuntu 22.04 VM on arm64 (the goal is to eventually have this run on an actual Ubuntu 20.04 arm64 machine), and after overcoming some various hurdles I am running into an obscure EGL error.
Full logs trying to run cog github.com:
(cog:2363691): Cog-Core-DEBUG: 16:39:45.838: ensure_extension_points: Extension points registered.
(cog:2363691): Cog-Core-DEBUG: 16:39:45.839: cog_modules_add_directory: Scanning '/usr/lib/aarch64-linux-gnu/cog/modules'
Cog-INFO: 16:39:45.840: com.igalia.Cog.Platform:
Cog-INFO: 16:39:45.840: wl - 500/CogWlPlatform
Cog-INFO: 16:39:45.840: drm - 200/CogDrmPlatform
Cog-INFO: 16:39:45.840: headless - 100/CogHeadlessPlatform
(cog:2363691): GLib-GIO-DEBUG: 16:39:45.846: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
(cog:2363691): Cog-DEBUG: 16:39:45.847: platform_setup: Platform name: (null)
[2405638.637] -> wl_display@1.get_registry(new id wl_registry@2)
[2405638.684] -> wl_display@1.sync(new id wl_callback@3)
[2405638.800] wl_display@1.delete_id(3)
[2405638.811] wl_registry@2.global(1, "wl_compositor", 5)
[2405638.816] wl_registry@2.global(2, "wl_drm", 2)
[2405638.819] wl_registry@2.global(3, "wl_shm", 1)
[2405638.822] wl_registry@2.global(4, "wl_output", 3)
[2405638.833] wl_registry@2.global(5, "zxdg_output_manager_v1", 3)
[2405638.850] wl_registry@2.global(6, "wl_data_device_manager", 3)
[2405638.857] wl_registry@2.global(7, "zwp_primary_selection_device_manager_v1", 1)
[2405638.868] wl_registry@2.global(8, "gtk_primary_selection_device_manager", 1)
[2405638.871] wl_registry@2.global(9, "wl_subcompositor", 1)
[2405638.875] wl_registry@2.global(10, "xdg_wm_base", 4)
[2405638.878] wl_registry@2.global(11, "zxdg_shell_v6", 1)
[2405638.883] wl_registry@2.global(12, "gtk_shell1", 5)
[2405638.888] wl_registry@2.global(13, "wp_viewporter", 1)
[2405638.891] wl_registry@2.global(14, "zwp_pointer_gestures_v1", 3)
[2405638.894] wl_registry@2.global(15, "zwp_tablet_manager_v2", 1)
[2405638.903] wl_registry@2.global(16, "wl_seat", 5)
[2405638.918] wl_registry@2.global(17, "zwp_relative_pointer_manager_v1", 1)
[2405638.945] wl_registry@2.global(18, "zwp_pointer_constraints_v1", 1)
[2405638.960] wl_registry@2.global(19, "zxdg_exporter_v1", 1)
[2405638.995] wl_registry@2.global(20, "zxdg_importer_v1", 1)
[2405638.999] wl_registry@2.global(21, "zwp_linux_dmabuf_v1", 4)
[2405639.005] wl_registry@2.global(22, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[2405639.024] wl_registry@2.global(23, "zwp_text_input_manager_v3", 1)
[2405639.028] wl_registry@2.global(24, "wp_presentation", 1)
[2405639.049] wl_registry@2.global(25, "xdg_activation_v1", 1)
[2405639.062] wl_callback@3.done(18801)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Initializing Wayland...
[2405639.227] -> wl_display@1.get_registry(new id wl_registry@2)
[2405639.238] -> wl_display@1.sync(new id wl_callback@3)
[2405639.314] wl_display@1.delete_id(3)
[2405639.321] wl_registry@2.global(1, "wl_compositor", 5)
[2405639.325] -> wl_registry@2.bind(1, "wl_compositor", 5, new id [unknown]@4)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Using 'wl_compositor' interface obtained from the Wayland registry.
[2405639.378] wl_registry@2.global(2, "wl_drm", 2)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'wl_drm' interface obtained from the Wayland registry.
[2405639.400] wl_registry@2.global(3, "wl_shm", 1)
[2405639.406] -> wl_registry@2.bind(3, "wl_shm", 1, new id [unknown]@5)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Using 'wl_shm' interface obtained from the Wayland registry.
[2405639.434] wl_registry@2.global(4, "wl_output", 3)
[2405639.439] -> wl_registry@2.bind(4, "wl_output", 3, new id [unknown]@6)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Using 'wl_output' interface obtained from the Wayland registry.
[2405639.471] wl_registry@2.global(5, "zxdg_output_manager_v1", 3)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zxdg_output_manager_v1' interface obtained from the Wayland registry.
[2405639.488] wl_registry@2.global(6, "wl_data_device_manager", 3)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'wl_data_device_manager' interface obtained from the Wayland registry.
[2405639.509] wl_registry@2.global(7, "zwp_primary_selection_device_manager_v1", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zwp_primary_selection_device_manager_v1' interface obtained from the Wayland registry.
[2405639.518] wl_registry@2.global(8, "gtk_primary_selection_device_manager", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'gtk_primary_selection_device_manager' interface obtained from the Wayland registry.
[2405639.541] wl_registry@2.global(9, "wl_subcompositor", 1)
[2405639.551] -> wl_registry@2.bind(9, "wl_subcompositor", 1, new id [unknown]@7)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Using 'wl_subcompositor' interface obtained from the Wayland registry.
[2405639.586] wl_registry@2.global(10, "xdg_wm_base", 4)
[2405639.591] -> wl_registry@2.bind(10, "xdg_wm_base", 4, new id [unknown]@8)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Using 'xdg_wm_base' interface obtained from the Wayland registry.
[2405639.610] wl_registry@2.global(11, "zxdg_shell_v6", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zxdg_shell_v6' interface obtained from the Wayland registry.
[2405639.617] wl_registry@2.global(12, "gtk_shell1", 5)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'gtk_shell1' interface obtained from the Wayland registry.
[2405639.628] wl_registry@2.global(13, "wp_viewporter", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'wp_viewporter' interface obtained from the Wayland registry.
[2405639.641] wl_registry@2.global(14, "zwp_pointer_gestures_v1", 3)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zwp_pointer_gestures_v1' interface obtained from the Wayland registry.
[2405639.660] wl_registry@2.global(15, "zwp_tablet_manager_v2", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zwp_tablet_manager_v2' interface obtained from the Wayland registry.
[2405639.675] wl_registry@2.global(16, "wl_seat", 5)
[2405639.678] -> wl_registry@2.bind(16, "wl_seat", 7, new id [unknown]@9)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Using 'wl_seat' interface obtained from the Wayland registry.
[2405639.758] wl_registry@2.global(17, "zwp_relative_pointer_manager_v1", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zwp_relative_pointer_manager_v1' interface obtained from the Wayland registry.
[2405639.785] wl_registry@2.global(18, "zwp_pointer_constraints_v1", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zwp_pointer_constraints_v1' interface obtained from the Wayland registry.
[2405639.805] wl_registry@2.global(19, "zxdg_exporter_v1", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zxdg_exporter_v1' interface obtained from the Wayland registry.
[2405639.816] wl_registry@2.global(20, "zxdg_importer_v1", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zxdg_importer_v1' interface obtained from the Wayland registry.
[2405639.844] wl_registry@2.global(21, "zwp_linux_dmabuf_v1", 4)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.848: Ignoring 'zwp_linux_dmabuf_v1' interface obtained from the Wayland registry.
[2405639.851] wl_registry@2.global(22, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.849: Ignoring 'zwp_keyboard_shortcuts_inhibit_manager_v1' interface obtained from the Wayland registry.
[2405639.891] wl_registry@2.global(23, "zwp_text_input_manager_v3", 1)
[2405639.894] -> wl_registry@2.bind(23, "zwp_text_input_manager_v3", 1, new id [unknown]@10)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.849: Using 'zwp_text_input_manager_v3' interface obtained from the Wayland registry.
[2405639.912] wl_registry@2.global(24, "wp_presentation", 1)
[2405639.915] -> wl_registry@2.bind(24, "wp_presentation", 1, new id [unknown]@11)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.849: Using 'wp_presentation' interface obtained from the Wayland registry.
[2405639.926] wl_registry@2.global(25, "xdg_activation_v1", 1)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.849: Ignoring 'xdg_activation_v1' interface obtained from the Wayland registry.
[2405639.936] wl_callback@3.done(18801)
(cog:2363691): Cog-FDO-DEBUG: 16:39:45.849: Initializing EGL...
[2405640.548] -> wl_display@1.get_registry(new id wl_registry@3)
[2405640.565] -> wl_display@1.sync(new id wl_callback@12)
[2405640.683] wl_display@1.error(wl_registry@2, 0, "invalid version for global wl_seat (16): have 5, wanted 7")
wl_registry@2: error 0: invalid version for global wl_seat (16): have 5, wanted 7
(cog:2363691): Cog-WARNING **: 16:39:45.849: Platform setup failed: Could not initialize EGL (0x3001)
(cog:2363691): Cog-DEBUG: 16:39:45.849: Instantiating default WPE backend as fall-back.
** (cog:2363691): CRITICAL **: 16:39:45.849: WebKitWebViewBackend* webkit_web_view_backend_new(wpe_view_backend*, GDestroyNotify, gpointer): assertion 'backend' failed
(cog:2363691): Cog-ERROR **: 16:39:45.849: Could not instantiate any WPE backend.
(process:2363697): GLib-GIO-DEBUG: 16:39:45.863: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
(process:2363697): GLib-GIO-DEBUG: 16:39:45.865: _g_io_module_get_default: Found default implementation networkmanager (GNetworkMonitorNM) for ?gio-network-monitor?
Trace/breakpoint trap (core dumped)
The standout clue is wl_registry@2: error 0: invalid version for global wl_seat (16): have 5, wanted 7 but from what I've looked around online, there's not many details to work with. I suspect there's some sort of versioning mismatch but not sure how to debug this effort, as this is my first time wading into webkit browser waters.
This is from the cog package that can be run from apt install cog. Trying to build and run from source comes into other issues that I didn't consider worth the time to solve at the moment.
Any advice or pointers would be greatly appreciated.