Bug 75576

Summary: Very slow popup rendering to remote display when xinerame package is installed
Product: xorg Reporter: Martynas <mmartynas>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: bdrx312, mmartynas
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Dockerfile to reproduce the issue none

Description Martynas 2014-02-27 14:46:17 UTC
Created attachment 94827 [details]
Dockerfile to reproduce the issue

When forwarding Java Swing application to a remote display it takes a considerable amount of time (up to 5 seconds) for GUI popups to show up.

I have found that this issue only occurs when remote system has libxinerama1 package installed.

I created a dockerfile which setups environment for easy reproduction of this issue.

To reproduce:
1. tar xzf xinerama-slow-remote-popup.tar.gz
2. cd xinerama-slow-remote-popup
3. sudo docker build -t x11 .
4. sudo docker run -i -t -p 522:22 x11 /bin/bash
5. service ssh start

In the new terminal window:
1. cd xinerama-slow-remote-popup
2. ssh -X -p 522 -i files/home/martynas/.ssh/id_rsa martynas@localhost
3. /opt/jdk1.7.0_51/bin/javac SimpleExample.java
4. /opt/jdk1.7.0_51/bin/java SimpleExample

GUI window shows up quite fast. When clicked on the menu bar, popup shows instantly.

Now lets install Xinerama and start that program again. In the first terminal window:
1. apt-get install libxinerama1

In the second terminal window:
1. Ctrl + C
2. /opt/jdk1.7.0_51/bin/java SimpleExample

It takes much more longer to load. Also when clicked on a menu button not only application window becomes unresponsive, but other windows on the local machine become unresponsive as well.

When looking at the Java stack trace during the hiccup, it seems that most of the time is spent in the sun.awt.X11.XlibWrapper.XGetWindowAttributes native java call. However this is as deep as I am able to dig.

Any comments, or workaround suggestions?
Comment 1 GitLab Migration User 2018-12-13 22:29:57 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/455.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.