Bug 705643

Summary: Vino with two X-servers may cause X to crash while competing for the mouse.
Product: [Fedora] Fedora Reporter: Ganapathi Kamath <hgkamath>
Component: vinoAssignee: Søren Sandmann Pedersen <sandmann>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: kem, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 18:33:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ganapathi Kamath 2011-05-18 00:09:14 UTC
Description of problem:
Fight over mouse, between X-servers and VNC, might lead to instability.
Sometimes an X crashes.

Version-Release number of selected component (if applicable):


How reproducible:
easy, everytime

Steps to Reproduce:
1. On Host1, login in to main x-server, open a application or something like a gnome-terminal for easy identification, make sure vino is enabled
2. On Host1, Ctrl-Alt-2 to a conosle, login
3. On Host1, startx -- :1 
A second X server starts on '7', start some application, play around
4. from a remote computer VNC to :1
5. move mouse on remote cursor, everything works fine
play around with mouse, observe that things in sync between VNC client and X-server-2
6. On Host1, With VNC active, Ctrl-Alt-1 to the other first X-server
note that 
7. On Host1, the cursor on the first X server will be stuck

Things may fall apart in various ways here.

Actual results:
instability

Expected results:
stability

Speculations:
There is a local mouse on Host1. There are two X-servers and 1 VNC client

When the remote VNC client connects X-server-2, and the active console on Host-1 is X-server-2, the remote mouse and the local mouse control the mouse pointer. 
When Ctrl-Alt-1 is pressed on Host 1, local mouse must be detached from X-server-2 and attached to X-server-1

Either the vino backend is grabbing the mouse pointers of both X-servers
or the local mouse is not properly attached detached from the X servers.

Additional info:

An additional test case would be two remote VNC clients connecting to both X-servers, and locally switching between the two consoles on Host-1.

Comment 1 Ganapathi Kamath 2011-08-06 01:17:41 UTC
Related Upstream bug
Vino doesn't handle multiple xservers properly.
https://bugzilla.gnome.org/show_bug.cgi?id=598796

Comment 2 Fedora End Of Life 2012-08-07 18:33:04 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping