canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.79k stars 643 forks source link

Failed to start Flutter renderer: Unable to create a GL context #3743

Open xypron opened 2 hours ago

xypron commented 2 hours ago

Describe the bug multipass.gui shows an empty window

To Reproduce In the console I entered the multipass.gui command and see this console output:

$ multipass.gui
Gtk-Message: 10:23:43.088: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(multipass_gui:10637): Gdk-CRITICAL **: 10:23:43.127: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

** (multipass_gui:10637): WARNING **: 10:23:43.160: Failed to start Flutter renderer: Unable to create a GL context

** (multipass_gui:10637): WARNING **: 10:23:43.164: Unable to retrieve framework response: No engine to send to

** (multipass_gui:10637): WARNING **: 10:23:48.531: Unable to retrieve framework response: No engine to send to

** (multipass_gui:10637): WARNING **: 10:24:08.173: atk-bridge: get_device_events_reply: unknown signature

** (multipass_gui:10637): WARNING **: 10:24:13.004: Unable to retrieve framework response: No engine to send to

** (multipass_gui:10637): WARNING **: 10:26:24.216: Unable to retrieve framework response: No engine to send to

** (multipass_gui:10637): WARNING **: 10:26:39.617: Unable to retrieve framework response: No engine to send to

** (multipass_gui:10637): WARNING **: 10:27:45.523: Unable to retrieve framework response: No engine to send to

A new window with title 'Muiltipass' is opened. It only displays a white plane.

No message is written to ~/snap/multipass/current/data/multipass_gui/multipass_gui.log.

glxgears just runs fine. So OpenGL is available on the system.

Expected behavior

I expected a functional interface.

Logs

No message is written to ~/snap/multipass/current/data/multipass_gui/multipass_gui.log.

Additional info

$ loginctl show-session 4 -p Type      
Type=x11
$ multipass version
multipass   1.14.1
multipassd  1.14.1
$ multipass info
Name:           chic-hornet
State:          Deleted
Snapshots:      0
IPv4:           --
Release:        --
Image hash:     500a4be0e6dd (Ubuntu 20.04 LTS)
CPU(s):         --
Load:           --
Disk usage:     --
Memory usage:   --
Mounts:         --

Name:           delicious-mouflon
State:          Running
Snapshots:      0
IPv4:           10.174.94.120
Release:        Ubuntu 24.04.1 LTS
Image hash:     fad101d50b06 (Ubuntu 24.04 LTS)
CPU(s):         1
Load:           0.00 0.00 0.00
Disk usage:     2.0GiB out of 4.8GiB
Memory usage:   342.7MiB out of 956.1MiB
Mounts:         --
$ multipass get local.driver
qemu
xypron commented 2 hours ago

The problem is reproducible with

multipass   1.15.0-dev.411+gbf3719d1e
multipassd  1.15.0-dev.411+gbf3719d1e

Only difference: A text 'Unable to create a GL context' is written in the pop-up window.

andrei-toterman commented 48 minutes ago

Hey, @xypron! Are you perhaps on X11 and not on Wayland? It seems there are some issues with 24.10 not working properly on X11, for example https://forum.snapcraft.io/t/ubuntu-24-10-security-center-unable-to-create-gl-context/43431.

andrei-toterman commented 45 minutes ago

I am also on KDE with X11, but on 24.04, and I do not encounter this issue, but I will try to reproduce it on 24.10. If the issue is indeed caused by something being broken in 24.10, then unfortunately I think we can only wait for that to be fixed, but I'll keep an eye on it.