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 668792 - Handle errors better
Handle errors better
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: installer
unspecified
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-01-26 22:57 UTC by William Jon McCann
Modified: 2016-03-31 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
More generic notification bar (6.02 KB, patch)
2012-01-31 16:45 UTC, Zeeshan Ali
none Details | Review
wizard: Properly handle failure on OS detection (939 bytes, patch)
2012-01-31 16:45 UTC, Zeeshan Ali
none Details | Review
wizard: Properly handle errors during 'prepare' step (2.39 KB, patch)
2012-02-01 21:52 UTC, Zeeshan Ali
reviewed Details | Review
wizard: Properly handle errors on 'prepare' & 'create' (3.33 KB, patch)
2012-02-01 22:46 UTC, Zeeshan Ali
none Details | Review
More generic notification bar (6.24 KB, patch)
2012-02-01 22:54 UTC, Zeeshan Ali
none Details | Review
wizard: Properly handle errors on 'prepare' & 'create' (3.33 KB, patch)
2012-02-06 19:57 UTC, Zeeshan Ali
none Details | Review
wizard: Properly handle errors on 'prepare' & 'create' (2.94 KB, patch)
2012-02-07 22:23 UTC, Zeeshan Ali
accepted-commit_now Details | Review
More generic notification bar (6.24 KB, patch)
2012-02-07 22:24 UTC, Zeeshan Ali
accepted-commit_now Details | Review
More generic notification bar (6.24 KB, patch)
2012-02-15 14:16 UTC, Zeeshan Ali
committed Details | Review
wizard: Properly handle errors on 'prepare' & 'create' (2.96 KB, patch)
2012-02-15 14:16 UTC, Zeeshan Ali
committed Details | Review

Description William Jon McCann 2012-01-26 22:57:27 UTC
I was trying out Boxes on F16 today and tried installing a new box from a rawhide nightly. I selected the iso from disk and clicked continue and then the interface stopped responding at "Analyzing installer media".

Looking in .xsession-errors I see:
Boxes-WARNING **: wizard.vala:136: Failed to create domain: internal error Process exited while reading console log output: qemu-system-x86_64: -spice port=5900,addr=127.0.0.1,disable-ticketing: there is no option group "spice"
spice is not supported by this qemu build.

We should probably detect such errors earlier and do a better job of handling errors during the analysis step.
Comment 1 William Jon McCann 2012-01-26 22:59:46 UTC
If the system isn't capable of running Boxes you should use a sad computer or equivalent.
Comment 2 Zeeshan Ali 2012-01-27 01:14:52 UTC
(In reply to comment #1)
> If the system isn't capable of running Boxes you should use a sad computer or
> equivalent.

A bunch of sad boxes would be more appropriate, no? :)
Comment 3 Zeeshan Ali 2012-01-31 16:45:07 UTC
Created attachment 206530 [details] [review]
More generic notification bar

Now its also possible to display errors through notification bar and new
types of messages are now trivial to add. It is also now visible in all
UI states except for 'DISPLAY'. Do we want it there?

Not sure if this is an issue for us but the colors of Gtk.InfoBar remain
always the same regardless of type of message. While we do set the
appropriate message type on the Gtk.InfoBar, we set our own style on it
as well. So if we need this, we need to figure how to set different
styles for different message types.
Comment 4 Zeeshan Ali 2012-01-31 16:45:10 UTC
Created attachment 206531 [details] [review]
wizard: Properly handle failure on OS detection

Display an error in notification and go back to previous step.
Comment 5 Zeeshan Ali 2012-01-31 17:50:37 UTC
These patches address the 'better job of handling errors during the analysis step' part but not the actual issue. While I agree that we really should check caps of host/qemu/libvirt before creating a VM assuming those caps, we'll need to hack libvirt to fix this particular "issue". I wrote "issue" because I think this is more an integration issue and qemu really should be built with spice support in Fedora (and other distro) packages.
Comment 6 Zeeshan Ali 2012-02-01 21:52:54 UTC
Created attachment 206593 [details] [review]
wizard: Properly handle errors during 'prepare' step

Display an error in notification and go back to previous step.

Perhaps we should notify user of errors from 'create' as well but that
needs some thinking as in that step we get errors from libvirt/osinfo
with messages that will be totally cryptic to users.
Comment 7 Marc-Andre Lureau 2012-02-01 22:16:44 UTC
Review of attachment 206593 [details] [review]:

since those strings are shown to the user they should be translatable
Comment 8 Zeeshan Ali 2012-02-01 22:46:57 UTC
Created attachment 206599 [details] [review]
wizard: Properly handle errors on 'prepare' & 'create'

Display an error in notification and in case of 'prepare', we go back to
previous step since user is very likely to be able to fix the issue.

The error message displayed at failure from 'create' is not very useful
but we don't want to show cryptic error messages to user and we really
should aim to make it (almost) impossible to get errors from 'create'.
Comment 9 Zeeshan Ali 2012-02-01 22:54:09 UTC
Created attachment 206600 [details] [review]
More generic notification bar

Now its also possible to display errors through notification bar and new
types of messages are now trivial to add. It is also now visible in all
UI states except for 'DISPLAY'. Do we want it there?

Not sure if this is an issue for us but the colors of Gtk.InfoBar remain
always the same regardless of type of message. While we do set the
appropriate message type on the Gtk.InfoBar, we set our own style on it
as well. So if we need this, we need to figure how to set different
styles for different message types.
Comment 10 Thomas Andersen 2012-02-05 15:24:59 UTC
The updated patch missed to mark a single string as translatable:

-            throw new Boxes.Error.INVALID ("the URI is invalid");
+            throw new Boxes.Error.INVALID ("Invalid URI");
Comment 11 Zeeshan Ali 2012-02-06 19:57:15 UTC
Created attachment 206931 [details] [review]
wizard: Properly handle errors on 'prepare' & 'create'

Display an error in notification and in case of 'prepare', we go back to
previous step since user is very likely to be able to fix the issue.

The error message displayed at failure from 'create' is not very useful
but we don't want to show cryptic error messages to user and we really
should aim to make it (almost) impossible to get errors from 'create'.
Comment 12 Zeeshan Ali 2012-02-07 22:23:34 UTC
Created attachment 207035 [details] [review]
wizard: Properly handle errors on 'prepare' & 'create'

Display an error in notification and in case of 'prepare', we go back to
previous step since user is very likely to be able to fix the issue.

The error message displayed at failure from 'create' is not very useful
but we don't want to show cryptic error messages to user and we really
should aim to make it (almost) impossible to get errors from 'create'.
Comment 13 Zeeshan Ali 2012-02-07 22:24:14 UTC
Created attachment 207036 [details] [review]
More generic notification bar

Now its also possible to display errors through notification bar and new
types of messages are now trivial to add. It is also now visible in all
UI states except for 'DISPLAY'. Do we want it there?

Not sure if this is an issue for us but the colors of Gtk.InfoBar remain
always the same regardless of type of message. While we do set the
appropriate message type on the Gtk.InfoBar, we set our own style on it
as well. So if we need this, we need to figure how to set different
styles for different message types.
Comment 14 Zeeshan Ali 2012-02-13 22:41:05 UTC
So ACK or NACK? I think we better get this in before the freeze?
Comment 15 Marc-Andre Lureau 2012-02-13 23:25:38 UTC
Review of attachment 207036 [details] [review]:

ack
Comment 16 Marc-Andre Lureau 2012-02-15 00:45:19 UTC
ping
Comment 17 Zeeshan Ali 2012-02-15 00:53:36 UTC
(In reply to comment #16)
> ping

to who? You only ack'ed one of the patches :)
Comment 18 Marc-Andre Lureau 2012-02-15 09:35:09 UTC
Review of attachment 207035 [details] [review]:

ack (the patch didn't show up in the patch summary somehow..)
Comment 19 Zeeshan Ali 2012-02-15 14:16:01 UTC
Created attachment 207655 [details] [review]
More generic notification bar

Now its also possible to display errors through notification bar and new
types of messages are now trivial to add. It is also now visible in all
UI states except for 'DISPLAY'. Do we want it there?

Not sure if this is an issue for us but the colors of Gtk.InfoBar remain
always the same regardless of type of message. While we do set the
appropriate message type on the Gtk.InfoBar, we set our own style on it
as well. So if we need this, we need to figure how to set different
styles for different message types.
Comment 20 Zeeshan Ali 2012-02-15 14:16:12 UTC
Created attachment 207656 [details] [review]
wizard: Properly handle errors on 'prepare' & 'create'

Display an error in notification and in case of 'prepare', we go back to
previous step since user is very likely to be able to fix the issue.

The error message displayed at failure from 'create' is not very useful
but we don't want to show cryptic error messages to user and we really
should aim to make it (almost) impossible to get errors from 'create'.
Comment 21 Zeeshan Ali 2012-02-15 14:16:48 UTC
Attachment 207655 [details] pushed as c9505f2 - More generic notification bar
Attachment 207656 [details] pushed as 2502424 - wizard: Properly handle errors on 'prepare' & 'create'