Bug 1034344

Summary: Attempt to close window with Ctrt+Shift+Q combo ends with error
Product: Red Hat Enterprise Virtualization Manager Reporter: Vaclav Ehrlich <vehrlich>
Component: mingw-virt-viewerAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED NOTABUG QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: cfergeau, dblechte, fidencio, pvine, rbalakri, srevivo, tpelka
Target Milestone: ovirt-4.0.0-alphaKeywords: Reopened
Target Release: 4.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-04 16:06:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Spice RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vaclav Ehrlich 2013-11-25 16:20:05 UTC
Description of problem:
User has two displays in window mode. One window is active. 
If active window is focused with mouse and Ctrl+Alt+Q combo is pressed to close remote-viewer windows, nothing happens.
If inactive window is focused with mouse and Ctrl+Alt+Q is pressed, remote-viewer windows are closed, but in the event log is possible to see error: "GSpice: send_key: assertion `scancode !=0' failed

RHEVM Agent is running.

There is also 'sometime' error when user opens remote-viewer again after this close combo - display which was active (not focused) is disconnected. But this needs deeper investigation why it happens only 'sometime'

Version-Release number of selected component (if applicable):
mingw32-virt-viewer-0.5.3-29.el6v.noarch

How reproducible:
Always

Steps to Reproduce:
1.Set up qemu for two displays [1]
2.Connect to guest [2]
3.Set up two displays in guest and have them windowed
4.Focus active window and press Ctrl+Alt+Q
5.Focus inactive window and press Ctrl+Alt+Q

Actual results:
With focused active window there is no action. With focused inactive window remote-viewer ends with error.

Expected results:
Windows are closed with focused active or inactive window. 


Additional info:
Client Win7/32
Guest Win7/64

[1] qemu command line:
sudo /usr/bin/qemu-kvm -m 1024 -name win7 -drive file=PATH_TO_IMG,media=disk  -vga qxl -device qxl -global qxl-vga.vram_size=67108864 -spice port=PORT,addr=IP,disable-ticketing -device virtio-serial  -chardev spicevmc,id=vdagent,name=vdagent -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -soundhw ac97 -monitor stdio

[2] remote-viewer command-line:
remote-viewer spice://IP?port=PORT

Comment 1 Vaclav Ehrlich 2013-11-25 16:25:26 UTC
Sorry combo is Ctrl+Shift+Q

Comment 2 Christophe Fergeau 2015-06-09 12:03:43 UTC
(In reply to Vaclav Ehrlich from comment #0)
> Expected results:
> Windows are closed with focused active or inactive window. 

When the windows is focused, the ctrl+alt+q combo is expected to go to the guest, so it cannot be caught by the client. This only leaves the warning in the event log to be addressed in this bug.

Comment 3 Fabiano FidĂȘncio 2016-05-04 16:06:40 UTC
By comment 2, let's close it as NOTABUG.