Navigating away from and back to VM with 3D acceleration hangs Boxes
Follow-up of #732 and #1016. Starting a VM with 3D acceleration works with !588 (merged) applied, however, navigating away from the VM, visiting another VM, and opening the original VM again results in an infinite spinner. It does not matter if the intermediate VM has 3D acceleration enabled or not, I can reproduce this either way. Sometimes navigating away from the original VM again (that's now just giving the spinner) and visiting another VM works, but eventually all VMs will just result in a spinner (regardless of acceleration setting), and I can't access anything anymore. Other things I've tried:
- Forcing a shutdown doesn't work, the infinite spinner remains. Killing Boxes (and all VMs) seems to be the only way to resolve it.
- Sometimes I can also trigger the issue by repeatedly accessing the same VM. Is there a race condition somewhere?
Log Output
When navigating, there is a lot of spam of the following:
** (gnome-boxes:2): CRITICAL **: 02:08:13.828: cannot finish stream: this function is not supported by the connection driver: virStreamFinish
Occasionally I also get these kinds of messages:
(gnome-boxes:2): Boxes-WARNING **: 02:06:40.602: machine.vala:651: Failed to save 'VM 1': Unable to save domain: Requested operation is not valid: cannot migrate domain: virgl is not yet migratable
(gnome-boxes:2): GdkPixbuf-CRITICAL **: 02:08:13.754: gdk_pixbuf_scale_simple: assertion 'GDK_IS_PIXBUF (src)' failed
(gnome-boxes:2): GLib-GObject-CRITICAL **: 02:09:47.999: ../gobject/gsignal.c:2728: handler '3782' of instance '0x564f7abe7b30' is not blocked
Reproduction
- Start VM 1 with 3D acceleration, works
- Navigate away, open VM 2 (with or without acceleration), works
- Navigate back to VM 1, infinite spinner
- (Navigate to any other VM, eventually also infinite spinner)
Expected Behavior
No infinite spinner, VM 1 view opens.
Installation Info
$ flatpak info org.gnome.Boxes
Boxes - Virtualization made simple
ID: org.gnome.Boxes
Ref: app/org.gnome.Boxes/x86_64/stable
Arch: x86_64
Branch: stable
Version: 44.2
License: LGPL-2.1+
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 347,5 MB
Runtime: org.gnome.Platform/x86_64/44
Sdk: org.gnome.Sdk/x86_64/44
Commit: 4fced5db3ad49d01963f56e54876f91f1c6a7c3a0931bd1a92b4e6d8626df161
Parent: f6874cf27bf9ffff484aea5b91d2ee08151520d3166eb14114c94295545d5f74
Subject: Update to 44.2 (5b7aa216)
Date: 2023-05-30 10:30:30 +0000
Edited by Dennis Marttinen