Bug 1352226 - virt-viewer doesn't send window resize events
Summary: virt-viewer doesn't send window resize events
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-viewer
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-02 17:29 UTC by David Craven
Modified: 2018-04-04 15:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-12 06:21:30 UTC
Embargoed:


Attachments (Terms of Use)

Description David Craven 2016-07-02 17:29:11 UTC
Description of problem:
When connecting to a qemu vm through spice the screen resolution isn't sent to the spice-vdagent deamon when the window is resized. Clipboard works as expected.

Version-Release number of selected component (if applicable):
Qemu 2.6
Virt-viewer 4.0
spice-vdagent 0.17.0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
spice-vdagent[575]: 0x1e07dc0 connected to /var/run/spice-vdagentd/spice-vdagent-sock
spice-vdagent[575]: Selection window: 33554433
spice-vdagent[575]: Screen 0 1024x768+0+0
spice-vdagent[575]: 0x1e07dc0 sent guest xorg resolution, arg1: 1024, arg2: 768, size 16
spice-vdagent[575]: net_wm_name: "Xfwm4", has icons: 1
spice-vdagent[575]: 0x1e07dc0 received version, arg1: 0, arg2: 0, size 7
spice-vdagent[575]: 0x1e07dc0 received client disconnected, arg1: 0, arg2: 0, size 0

Expected results:
I expect spice-vdagent to produce a log entry when window is resized.

Additional info:
qemu-flags:
export QEMU_FLAGS="-vga qxl \
-spice port=5930,disable-ticketing \
-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5 \
-chardev spicevmc,name=vdagent,id=vdagent \
-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0"

Comment 1 David Craven 2016-07-02 18:36:43 UTC
Maybe this is related:

** (remote-viewer:20893): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mv7zMXN5YD: Connection refused

(remote-viewer:20893): Spice-WARNING **: channel-display-gst.c:303:create_pipeline: GStreamer error: no element "appsrc"

(remote-viewer:20893): Spice-WARNING **: channel-display-gst.c:303:create_pipeline: GStreamer error: no element "appsrc"

(remote-viewer:20893): Spice-WARNING **: channel-display-gst.c:303:create_pipeline: GStreamer error: no element "appsrc"

(remote-viewer:20893): Gtk-WARNING **: Allocating size to SpiceDisplay 0xfa4470 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

Comment 2 Pavel Grunt 2016-07-12 06:21:30 UTC
Hi, It is not a bug, in the past agent handled resizing. But now it is handled by qxl (drm kernel driver), however it needs some support in window manager - currently implemented in GNOME (mutter). I don't know about support in other desktop environments.

Comment 3 David Craven 2016-07-13 10:03:42 UTC
Thank you for the information.

Comment 4 Peter Lemenkov 2018-04-04 15:44:58 UTC
(In reply to David Craven from comment #1)
> Maybe this is related:
...
> (remote-viewer:20893): Gtk-WARNING **: Allocating size to SpiceDisplay
> 0xfa4470 without calling gtk_widget_get_preferred_width/height(). How does
> the code know the size to allocate?

This one is a well-known old GTK bug. See bug 1488249.


Note You need to log in before you can comment on or make changes to this bug.