After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781051 - Crash when trying to open boxes
Crash when trying to open boxes
Status: RESOLVED OBSOLETE
Product: gnome-boxes
Classification: Applications
Component: general
3.24.x
Other Linux
: Normal critical
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-04-08 12:15 UTC by Carlos Soriano
Modified: 2018-01-11 10:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
crash backtrace (3.42 KB, text/plain)
2017-04-08 12:15 UTC, Carlos Soriano
Details

Description Carlos Soriano 2017-04-08 12:15:58 UTC
Created attachment 349521 [details]
crash backtrace

(gnome-boxes:17251): Libvirt.GObject-CRITICAL **: gvir_storage_vol_get_info: assertion 'GVIR_IS_STORAGE_VOL(vol)' failed

Tried to clean ~/.cache and ~/.config with no success.
Comment 1 Enrico 2017-04-17 09:03:35 UTC
I have the same problem. 

Before of this error, I see .ISO-related problems but I don't know if this can be in some way related with this problem.

(gnome-boxes:2012): Boxes-WARNING **: media-manager.vala:152: Failed to use ISO '/home/enrico/Scrivania/debian-testing-amd64-netinst.iso': File /home/enrico/Scrivania/debian-testing-amd64-netinst.iso inesistente

which means that the "/home/enrico/Scrivania/debian-testing-amd64-netinst.iso" doesn't exists
Comment 2 Felipe Borges 2017-04-18 09:41:51 UTC
You should really not clean ~/.cache and ~/.config. Now libvirt is failing to find the volumes in these paths.

What you can do is to delete the storage pools. * YOUR VM CONTENT WILL BE LOST *

With the following command you will stop any other guests using the same pool.

sudo virsh pool-destroy <image_disk>

The following command will delete the directory of the storage pool.

sudo virsh pool-delete <image_disk>

Finally you can remove the storage pool's definition.

sudo virsh pool-undefine <image_disk>
Comment 3 Ryan Sipes 2017-04-24 01:36:14 UTC
I also get this bug, although following the instructions in comment 2 still results in the same error.

(gnome-boxes:17251): Libvirt.GObject-CRITICAL **: gvir_storage_vol_get_info: assertion 'GVIR_IS_STORAGE_VOL(vol)' failed

I've tried uninstalling gnome-boxes and removing all the associated gnome-boxes folders and files I can find but I still get the same error.

Any advice? Also, can we get this patched?
Comment 4 jari_45 2017-05-18 11:40:23 UTC
This happends also for me on Arch
Comment 5 Kostas Kardaras 2017-07-12 12:17:02 UTC
I can confirm also that this happens on Arch
Comment 6 DaDeacon 2017-07-24 23:27:04 UTC
I got this error after scrubing an win 7 install in boxes:

[cool@pc] $ /usr/bin/gnome-boxes

(gnome-boxes:5994): Libvirt.GObject-CRITICAL **: gvir_storage_vol_get_info: assertion 'GVIR_IS_STORAGE_VOL(vol)' failed
Segmentation fault (core dumped)

logged into terminal and ran :

[cool@pc] $ virsh list
 Id    Name                           State
----------------------------------------------------

-nothing there-

went looking for inactive VMs 

[cool@pc] $ virsh list --inactive
 Id    Name                           State
----------------------------------------------------
 -     boxes-unknown                  shut off


what the hell is this ?!? So I went in to delete all storage units in my VMs lucky I had only this win 7 box so :


[cool@pc] $ virsh undefine boxes-unknown--remove-all-storage
error: failed to get domain 'boxes-unknown--remove-all-storage'
error: Domain not found: no domain with matching name 'boxes-unknown--remove-all-storage'

[cool@pc] $ virsh undefine boxes-unknown --remove-all-storage
error: Storage volume 'hda'(/home/pc/.local/share/gnome-boxes/images/boxes-unknown) is not managed by libvirt. Remove it manually.

error: Storage volume 'hdc'(/home/pc/Documents/Windows 7 SP1 Ultimate (64 Bit).iso) is not managed by libvirt. Remove it manually.

Domain boxes-unknown has been undefined

once done boxes opened without issue as a blank slate, maybe this will help someone else.
Comment 7 harish.hyma 2017-09-06 11:39:29 UTC
I followed comment 6 and it seems to fix the issue. Huh. Weird bug man...
Comment 8 GNOME Infrastructure Team 2018-01-11 10:50:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-boxes/issues/130.