GNOME Bugzilla – Bug 678624
update_mouse_mode : code should not be reached
Last modified: 2017-04-06 09:30:31 UTC
When clicking on a box, after it zooms I get: "(gnome-boxes:7673): GSpice-WARNING **: (spice-widget.c:1548):update_mouse_mode : code should not be reached" This is reproducible at will by going back to the collection view and reclicking on a VM Looking at a backtrace, boxes is creating a SpiceDisplay object before the corresponding channel has been fully initialized by a server message.
Created attachment 217018 [details] [review] spice: do not get_display(0) before it is ready Only when Boxes.Display::show() has been emitted are we allowed to get_display(), which is also fine in DISPLAY and PROPERTIES ui_state.
This patch makes the warning go away for me.
Attachment 217018 [details] pushed as 3139eb5 - spice: do not get_display(0) before it is ready
I am experiencing the same issue lately. Boxes-Message: machine.vala:209: display RHEL-7 3 disconnected (gnome-boxes:16174): GSpice-WARNING **: (/home/fborges/jhbuild/checkout/spice-gtk-0.33/src/spice-widget.c:2360):update_mouse_mode: code should not be reached building Boxes from master.
I was pointed out that this is not the same issue. My issue causes the display to be disconnected. I filled another bug to track it down https://bugzilla.gnome.org/show_bug.cgi?id=780963