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 735686 - No 'reverting..' msg when reverting suspended VM to snapshot
No 'reverting..' msg when reverting suspended VM to snapshot
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: snapshots
3.13.x
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-08-29 19:02 UTC by Zeeshan Ali
Modified: 2016-09-20 08:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zeeshan Ali 2014-08-29 19:02:08 UTC
This is a weird one. When I try to revert a suspended (to disk) VM to a snapshot, I don't see 'reverting..' message.
Comment 1 Timm Bäder 2014-08-29 20:32:30 UTC
That's intentional. If the VM is not running, reverting (or creating) is so fast that the transition of the GtkStack we use to show the activity message (and the spinner) starts and then gets cancelled immediately which makes it looks like a weird graphical glitch.

I agree however that it's suboptimal to have activity indication in one case and not in another but fixing that probably requires another way of indicating the activity (spinner + message) and I'm not sure what the best method of doing so would be.
Comment 2 Lasse Schuirmann 2014-08-29 20:48:18 UTC
Given that we can make this consistent somehow for all cases: How about an animation to visualize that the current state now derives from another snapshot?
Comment 3 Zeeshan Ali 2014-08-29 23:25:29 UTC
(In reply to comment #1)
> That's intentional. If the VM is not running, reverting (or creating) is so
> fast that the transition of the GtkStack we use to show the activity message
> (and the spinner) starts and then gets cancelled immediately which makes it
> looks like a weird graphical glitch.
> 
> I agree however that it's suboptimal to have activity indication in one case
> and not in another but fixing that probably requires another way of indicating
> the activity (spinner + message) and I'm not sure what the best method of doing
> so would be.

I'm actually not at all sure its justified to use stack here. Why not just a message (with spinner next to it) either above/under the snapshots, or maybe between the snapshot's name and the settings menu button?

(In reply to comment #2)
> Given that we can make this consistent somehow for all cases: How about an
> animation to visualize that the current state now derives from another
> snapshot?

What?
Comment 4 Timm Bäder 2014-08-30 08:12:28 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > That's intentional. If the VM is not running, reverting (or creating) is so
> > fast that the transition of the GtkStack we use to show the activity message
> > (and the spinner) starts and then gets cancelled immediately which makes it
> > looks like a weird graphical glitch.
> > 
> > I agree however that it's suboptimal to have activity indication in one case
> > and not in another but fixing that probably requires another way of indicating
> > the activity (spinner + message) and I'm not sure what the best method of doing
> > so would be.
> 
> I'm actually not at all sure its justified to use stack here. Why not just a
> message (with spinner next to it) either above/under the snapshots, or maybe
> between the snapshot's name and the settings menu button?

Oh, I just like the current version more visually (in case it works...), hiding/showing something above/below the list would have the downside of changing the scrollbar length (or even worse: causing the scrollbar to show). Adding a third page to the GtkStack in a SnapshotListRow would probably also be good but the current solution is also used when creating new snapshots.
Comment 5 Zeeshan Ali 2014-09-01 14:45:40 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #1)
> > > That's intentional. If the VM is not running, reverting (or creating) is so
> > > fast that the transition of the GtkStack we use to show the activity message
> > > (and the spinner) starts and then gets cancelled immediately which makes it
> > > looks like a weird graphical glitch.
> > > 
> > > I agree however that it's suboptimal to have activity indication in one case
> > > and not in another but fixing that probably requires another way of indicating
> > > the activity (spinner + message) and I'm not sure what the best method of doing
> > > so would be.
> > 
> > I'm actually not at all sure its justified to use stack here. Why not just a
> > message (with spinner next to it) either above/under the snapshots, or maybe
> > between the snapshot's name and the settings menu button?
> 
> Oh, I just like the current version more visually (in case it works...),
> hiding/showing something above/below the list would have the downside of
> changing the scrollbar length (or even worse: causing the scrollbar to show).
> Adding a third page to the GtkStack in a SnapshotListRow would probably also be
> good but the current solution is also used when creating new snapshots.

Hm.. how about a tiny artificial delay when reverting is too fast?
Comment 6 Zeeshan Ali 2014-10-24 14:46:46 UTC
commit: ced5374 ced5374be02d169a6867952d4e332a2b61073924

    snapshots-list-row: Always display msg when reverting
    
    We were not displaying "Reverting to SNAPSHOT_NAME" message and spinner
    if machine was not in running state. The rationale was that in
    non-running state, reverting is a very quick operation and therefore the
    stack page switch animation looked weird.
    
    However reverting is not always very fast in this case and the missing
    indication is a bit of a UX failure when that happens. Moreover, the
    quick page switch doesn't look that weird after all. If we decide to
    still address the latter, we can always introduce a very short artificial
    delay.