Slow performance with remote X applications (java, firefox/xul, etc.)

Bug #277069 reported by Juha Erkkilä
156
This bug affects 15 people
Affects Status Importance Assigned to Milestone
libxcb
Fix Released
High
Debian
Fix Released
Unknown
Suse
New
Undecided
Unassigned
ia32-libs (Ubuntu)
Fix Released
High
jgmargo
Hardy
Won't Fix
Undecided
Unassigned
Intrepid
Invalid
Undecided
Unassigned
Jaunty
Won't Fix
Undecided
Unassigned
Karmic
Fix Released
High
Colin Watson
libx11 (Fedora)
Fix Released
High
libx11 (Ubuntu)
Invalid
Undecided
Unassigned
Hardy
Invalid
Undecided
Unassigned
Intrepid
Invalid
Undecided
Unassigned
Jaunty
Invalid
Undecided
Unassigned
Karmic
Invalid
Undecided
Unassigned
libxcb (Ubuntu)
Fix Released
High
Bryce Harrington
Hardy
Won't Fix
Undecided
Unassigned
Intrepid
Invalid
Undecided
Unassigned
Jaunty
Won't Fix
Undecided
Unassigned
Karmic
Fix Released
High
Bryce Harrington

Bug Description

With xcb every write (in _XFlush) is followed by a read (_XEventsQueued) which
is the cause of the very poor performance. The read usually returns EAGAIN
because there is nothing to be read, but it is a severe performace hit anyhow.
And why _XEvenetsQueued/read is being called when select/poll has previously
returned indicating only a single file descriptor was ready is anybody's guess.

[Original Report]
I've submitted this bug as https://bugs.freedesktop.org/show_bug.cgi?id=17868 as well. Though the problem may not be in ia32-libs -package, it contains the /usr/lib32/libX11.so.6.2.0 library that appears to be somehow relevant to the problem at hand.

Some Java applications, such as the trial version in http://www.typingmaster.com/, run unusably slow when used over a remote X connection.

I'm using Ubuntu Hardy 8.04.1 with LTSP5, Linux kernel 2.6.24-19-server, with 32-bit firefox and 32-bit Java-plugin. The relevant package versions are here:

firefox32 2.0.0.17
sun-java32 1.6.0.5
sun-java6-jre 6-06-0ubuntu1
ia32-libs 2.2ubuntu11

The issue does not appear to be Java-version related (it exists in 1.5 and 1.6 versions). I have not tested the very latest Java-versions though. The reason I'm reporting this as a possible XCB-related issue is that one can workaround the problem by using an X11-library that does not link to XCB.

In current Ubuntu version (Hardy), /usr/lib32/libX11.so.6.2.0 library links to /usr/lib32/libxcb-xlib.so.0 and /usr/lib32/libxcb.so.1 libraries, XCB version is 1.1. In previous Ubuntu version (Gutsy) the X11-library does not do this. When the new library shared object replaced with the old one, the problem disappears, and Java applications that had problems run fine.

There may be some other differences between the X11-libraries, but using XCB as an underlying implementation seems to be a major change, or is it? All other applications do not appear to have these problems, Java applications appear to be the sole source of these problems.

I'm adding two attachments that show tshark-dump of network traffic in both cases, perhaps it helps to analyze the issue. What happens there is one keypress on typingmaster Java-version, on Hardy/XCB case it takes half a minute to process one keypress and switch a screen, on Gutsy/no-XCB case it takes maybe a second.

Juha

[lspci]
00:00.0 Host bridge [0600]: VIA Technologies, Inc. VT8623 [Apollo CLE266] [1106:3123]
     Subsystem: VIA Technologies, Inc. Unknown device [1106:0000]
01:00.0 VGA compatible controller [0300]: VIA Technologies, Inc. VT8623 [Apollo CLE266] integrated CastleRock graphics [1106:3122] (rev 03) (prog-if 00 [VGA controller])
     Subsystem: VIA Technologies, Inc. VT8623 [Apollo CLE266] integrated CastleRock graphics [1106:3122]

Revision history for this message
In , Juha Erkkilä (juha-erkkila) wrote :

Created an attachment (id=19337)
tshark-dump of one keypress without XCB

Revision history for this message
Juha Erkkilä (juha-erkkila) wrote : Java slow on remote X

I've submitted this bug as https://bugs.freedesktop.org/show_bug.cgi?id=17868 as well. Though the problem may not be in ia32-libs -package, it contains the /usr/lib32/libX11.so.6.2.0 library that appears to be somehow relevant to the problem at hand.

Some Java applications, such as the trial version in http://www.typingmaster.com/, run unusably slow when used over a remote X connection.

I'm using Ubuntu Hardy 8.04.1 with LTSP5, Linux kernel 2.6.24-19-server, with 32-bit firefox and 32-bit Java-plugin. The relevant package versions are here:

firefox32 2.0.0.17
sun-java32 1.6.0.5
sun-java6-jre 6-06-0ubuntu1
ia32-libs 2.2ubuntu11

The issue does not appear to be Java-version related (it exists in 1.5 and 1.6 versions). I have not tested the very latest Java-versions though. The reason I'm reporting this as a possible XCB-related issue is that one can workaround the problem by using an X11-library that does not link to XCB.

In current Ubuntu version (Hardy), /usr/lib32/libX11.so.6.2.0 library links to /usr/lib32/libxcb-xlib.so.0 and /usr/lib32/libxcb.so.1 libraries, XCB version is 1.1. In previous Ubuntu version (Gutsy) the X11-library does not do this. When the new library shared object replaced with the old one, the problem disappears, and Java applications that had problems run fine.

There may be some other differences between the X11-libraries, but using XCB as an underlying implementation seems to be a major change, or is it? All other applications do not appear to have these problems, Java applications appear to be the sole source of these problems.

I'm adding two attachments that show tshark-dump of network traffic in both cases, perhaps it helps to analyze the issue. What happens there is one keypress on typingmaster Java-version, on Hardy/XCB case it takes half a minute to process one keypress and switch a screen, on Gutsy/no-XCB case it takes maybe a second.

Juha

Revision history for this message
Juha Erkkilä (juha-erkkila) wrote :
Revision history for this message
Juha Erkkilä (juha-erkkila) wrote :
Daniel T Chen (crimsun)
Changed in ia32-libs:
importance: Undecided → Low
Revision history for this message
Scott Balneaves (sbalneav) wrote :

Juha, I think I'm seeing a similar problem here, but with slow typing within OpenOffice.org. I was wondering, do you replace the library in BOTH the thin client chroot, and on the server, or only on the server?

Revision history for this message
Kai Wollweber (wollw) wrote :

@Scott:
I asked Juha how to apply the workaround, here is his answer. #4 is the answer you are asking for:

> 1.) How can a single file be replaced between different Ubuntu versions?

Simply replacing the file (with cp) should be enough, but in
case updates should happen to ia32-libs package that contains the
/usr/lib32/libX11.so.6.2.0 file, those updates will overwrite the
changed file. dpkg-divert can be used to solve this problem, it can
be used to divert file updates to another place (in this case, because
the file is a shared library, it should not be in the same directory,
otherwise ldconfig will link to the wrong file).

You might want to test by simply installing the gutsy version of
ia32-libs package, it should work, but I don't recommend that as a
permanent solution (it will change many other libraries as well).

> 2.) Where can I get the file from Gutsy?

http://packages.ubuntu.com/gutsy-updates/amd64/ia32-libs/download

You can unpack deb-archives with (IIRC):

(mkdir tmp && cd tmp && ar x ../ia32-libs_2.1ubuntu4_amd64.deb && \
   tar -zxf data.tar.gz)

You'll find the file there.

   Comment: That is for arch amd64.
   For arch i386 you'll find the package here:
   http://packages.ubuntu.com/gutsy/libx11-6

> 3.) Are there side effects that probably can affect the system?

Perhaps, but I'm not aware of any.

> 4.) Am I right that the file needs to be replaced in the ltsp chroot?

No, X-clients use this library, so it needs to be replaced in the ltsp
server environment, NOT in the image that is served to terminals.

I hope this helps.

Juha

Revision history for this message
Jordan Erickson (lns) wrote :

I can confirm this bug on Ubuntu 8.04.1 LTS running with LTSP5.

I can also confirm the fix of replacing the Hardy version of:

/usr/lib/libxcb-xlib.so.0

With the Gutsy version, as described in above comment. I have performed this fix on 2 separate LTSP networks and it seems to work fine, with no ill effects. The problem definitely lies in the changes made in the Hardy version of said file (linking to XCB? Not sure.)

Revision history for this message
Jordan Erickson (lns) wrote :

Change package from ia32-libs to libxcb-xlib0 (as this is what is installed, by default on an i386 system).

Revision history for this message
Simon Schmidig (schmidig) wrote :

I had observed on our LTSP5 server whit ubuntu intrepid:
- a java-application start on a thin-client is very slow.
- the same java-application start with a nomachine-client nx works fast.
why?

Revision history for this message
Jordan Erickson (lns) wrote :

Yikes.. libxcb priority is "Low" ? That's surprising, given that (presumably) because of libxcb, Java applications are pretty much unusable in LTSP environments.

Revision history for this message
Frank Bergmann (frankbg) wrote :

This is a showstopper at our school, too. It's not possible to use geogebra.
Thank god, the above solution "works" for us!

Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automated message]

Hi juha-erkkila,

Please attach the output of `lspci -vvnn` too.

Changed in libxcb:
status: New → Incomplete
Revision history for this message
Juha Erkkilä (juha-erkkila) wrote :
Revision history for this message
Juha Erkkilä (juha-erkkila) wrote :
Revision history for this message
Jordan Erickson (lns) wrote :

It seems as though even using 'dpkg-divert' won't help in this case, as ldconfig seems to override the libX11.so.6 symlink whenever changes take place.

man dpkg-divert:
---
Care should be taken when diverting shared libraries, ldconfig(8) creates a symbolic link based on the DT_SONAME field embedded in the library. Because ldconfig doesn’t honour diverts (only dpkg does), the symlink may end up pointing at the diverted library, if a diverted library has the same SONAME as the undiverted one.
---

Anyway, I keep replacing the symlink, but it seems as though whenever I perform Ubuntu updates, the libX11.so.6 symlink reverts and points to the original file (which I renamed to libX11.so.6.2.0.orig). It's EXTREMELY frustrating, especially when administrating multiple servers that all experience this issue (7 in my case). It's not clean to replace this file all the time, either, as if people are logged onto thin clients when you replace it, they crash outright.

Could this bug report be more effective if it points to 'libx11-6' ? See below:

jerickson@Fibonacci:~$ apt-file search libX11.so.6
libx11-6: /usr/lib/libX11.so.6
libx11-6: /usr/lib/libX11.so.6.2.0

Sincerely,
Jordan/Lns

Revision history for this message
Jordan Erickson (lns) wrote :

Hope this is an accurate affecting package change:

$ apt-file search libX11.so.6
libx11-6: /usr/lib/libX11.so.6
libx11-6: /usr/lib/libX11.so.6.2.0

Revision history for this message
Kai Wollweber (wollw) wrote :

Jordan,
I checked our system about changing symbolic links to libX11.so.6.2.0. by the update process, but I can confirm your issue only partly. When I inspected our system I found libX11.so.6 pointing to the wrong (hardy) version. I am not sure, if this link was set by an update process of if I just forgot to set it to the gutsy version when i installed the gutsy file. Therefore I proved as follows:

I renamed the original hardy file to
libX11.so.6.2.0.hardy
and copied the gutsy libX11.so.6.2.0 to
libX11.so.6.2.0.gutsy

Additionally I changed the symbolic links:
libX11.so.6 -> libX11.so.6.2.0.gutsy
libX11.so.6.2 -> libX11.so.6.2.0.gutsy

After sudo apt-get update and sudo apt-get upgrade the links still remain as I set them:

wollw@harry:/usr/lib$ ls -l libX11.*
lrwxrwxrwx 1 root root 21 2009-01-15 10:54 libX11.so.6 -> libX11.so.6.2.0.gutsy
lrwxrwxrwx 1 root root 21 2009-01-15 10:53 libX11.so.6.2 -> libX11.so.6.2.0.gutsy
-rw-r--r-- 1 root root 986540 2008-11-01 14:34 libX11.so.6.2.0.gutsy
-rw-r--r-- 1 root root 944876 2008-03-11 21:33 libX11.so.6.2.0.hardy

Revision history for this message
Kai Wollweber (wollw) wrote :

By the next apt-get upgrade the link was unfortunately changed:

wollw@hermine:/usr/lib$ ls -l libX11.*
lrwxrwxrwx 1 root root 21 2009-01-15 12:22 libX11.so.6 -> libX11.so.6.2.0.hardy
lrwxrwxrwx 1 root root 21 2009-01-15 12:20 libX11.so.6.2 -> libX11.so.6.2.0.gutsy
-rw-r--r-- 1 root root 986540 2008-11-03 11:47 libX11.so.6.2.0.gutsy
-rw-r--r-- 1 root root 944876 2008-11-03 11:47 libX11.so.6.2.0.hardy

I guess it depends on the packages involved in the upgrade process whether the link is changed or not.
Is there no way to prevent this?

Revision history for this message
Jordan Erickson (lns) wrote :

Not that I know of - but that, IMHO, is moot - we need to get the core issue fixed and not waste time and resources trying to find the best, most stable workaround. If I have to put on an LTSP cheerleader uniform, I will! ;)

Revision history for this message
Vincent A (vja) wrote : Re: [Bug 277069] Re: Java slow on remote X

To use an older version of libX11, I would suggest to unpack it in
a different place, and use the LD_LIBRARY_PATH environment veriable
to point your executables to that place. That way, you don't have
to fight the package system.

For example:

dpkg-deb -x ~//libx11-6_1.1.1-1ubuntu4_amd64.deb /usr/local/foo/libx11-6-6_1.1.1-1ubuntu4_amd64
export LD_LIBRARY_PATH=/usr/local/foo/libx11-6-6_1.1.1-1ubuntu4_amd64/usr/lib:${LD_LIBRARY_PATH}

Vincent.

Bryce Harrington (bryce)
description: updated
Revision history for this message
In , Jordan Erickson (lns) wrote :

FYI, I have triaged this issue with Ubuntu Launchpad. Please see https://bugs.launchpad.net/libxcb/+bug/277069 for additional submitted comments and information.

Revision history for this message
In , Jordan Erickson (lns) wrote :
Changed in libxcb:
status: Unknown → Confirmed
Revision history for this message
Jordan Erickson (lns) wrote : Re: Java slow on remote X

Please see http://www.typingmaster.com/forum/messages.aspx?TopicID=11 for information regarding a specific case of this bug, in the TypingMaster java-based typing tutor for Linux. This is the app that I have the most issues with regarding this bug, and the people at TypingMaster have been very helpful so far. Hopefully they can be a good resource to help get this thing fixed once and for all.

Bryce Harrington (bryce)
Changed in libxcb:
importance: Low → High
description: updated
Revision history for this message
Stéphane Graber (stgraber) wrote :

Confirmed on Jaunty with the following test case:

 - Close all your firefox
 - ssh -Y localhost (requires a running ssh server)
 - firefox
 - right click, it'll take around 3s ...

Revision history for this message
Bryce Harrington (bryce) wrote :

Bug 305531 is another instance of this bug

Changed in libx11:
status: Unknown → In Progress
Revision history for this message
Freerk Kalsbeek (Mindswitch BV) (f-kalsbeek) wrote :

I agree on fixing the root cause, but for now, a workable workaround is the following:

- Download the gutsy version (libx11-6_1.1.1-1ubuntu4_i386.deb)
# dpkg -i libx11-6_1.1.1-1ubuntu4_i386.deb
# echo libx11-6 hold |dpkg --set-selections

Leave the libx11-6 on hold until there is a real fix for the problem.

Revision history for this message
Briano (bruiz-moverotech) wrote :

This work around is supposed to correct the issue with Context menus correct? I attempted to do this and it did not correct the problem. Any ideas?

Changed in libxcb (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
FlavioOliveira (flavioso) wrote :

Hi Guys,

 I think that my problem is related with this issue. I have a LTSP environment and when my clients access my web based application with Firefox, all comboboxes in any form take almost 2 sec to drop down the options.
In Opera browser the performance is ok.

To reproduce is simple:

1) Save the following html file in any accessible place:

<html>
<body>
<form method="post" action="test.php">
Languages:<p>
<select name="combolang"><option value="python">Python</option>
<option value="php">PHP</option>
<option value="cplus">C++</option>
<option value="pascal">Pascal</option>
<option value="asm">Assembly</option>
<option value="java">Java</option>
</select>
</form>
</body>
</html>

2)Open the html in Firefox over a XDMCP connection, click in the combo and you will see how slow this is.

My LTSP Server: Xubuntu 8.10
$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ apt-cache policy firefox
firefox:
  Instalado: 3.0.7+nobinonly-0ubuntu0.8.10.1
  Candidato: 3.0.8+nobinonly-0ubuntu0.8.10.2
  Tabela de versão:
     3.0.8+nobinonly-0ubuntu0.8.10.2 0
        500 http://archive.ubuntu.com intrepid-updates/main Packages
        500 http://archive.ubuntu.com intrepid-security/main Packages
 *** 3.0.7+nobinonly-0ubuntu0.8.10.1 0
        100 /var/lib/dpkg/status
     3.0.3+nobinonly-0ubuntu2 0
        500 http://archive.ubuntu.com intrepid/main Packages

We will have a fix for this?? This issue is very important...

Revision history for this message
Freerk Kalsbeek (Mindswitch BV) (f-kalsbeek) wrote :
Revision history for this message
Stephan (resol) wrote :

Since I applied the workaround, I am not able to activate the desktop effects any more.

for the command:

$compiz --replace

Checking for Xgl: not present.
Detected PCI ID for VGA:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1280x1024) to maximum 3D texture size (4096): Passed.
Checking for Software Rasterizer: Not present.
Checking for nVidia: present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Segmentation fault

Does anyone know why this is not working any more?

Thanks a lot, Stephan.

Changed in debian:
status: Unknown → New
Revision history for this message
In , Joakim Plate (elupus) wrote :

I think this could be related to what I was experiencing for GLX over network.

Running any GLX application over network was horribly slow. I then found out that running GLX application over network loopback on the same machine was event slow. Ie i tested the following.

DISPLAY=localhost:0.0 LIBGL_ALWAYS_INDIRECT=1 xbmc
vs
DISPLAY=:0.0 LIBGL_ALWAYS_INDIRECT=1 xbmc

where xbmc being XBMC Media Center is a opengl application. The first test gave a fps of 10, while the second a fps 40 on my hardware. After some pondering i thought about the nagle algorithm.

After modifying libxcb to disable the nagle algorthim, the above two commands rendered at about the same speed of 40fps.

I'll attach a diff.

Revision history for this message
In , Joakim Plate (elupus) wrote :

Created an attachment (id=26071)
Patch to disable nagle algorithm on XCB network sockets

Revision history for this message
Joakim Plate (elupus) wrote :

Thought i'd just comment that I posted a potential solution to the bug at the freedesktop bug report mentioned earlier. It's a small patch and if verified could be a point in debian picking up and backporting to affected systems.

Revision history for this message
Shriram Shri Shrikumar (shri-kraya) wrote :

@eluplus, THANK YOU

I have patched intrepid & jaunty, both i386 and amd64 and it works BEAUTIFULLY... This is one reason why I love open source.. Again, a big Thank You to elupus.

If there is anything I can do to help further, please let me know.

Shri
PS: intrepid required manual patching as the code is different in xcb_util.c I can provide a patch file if required...

Revision history for this message
Jordan Erickson (lns) wrote :

I don't suppose an 8.04 PPA/package would be in order? This would help me IMMENSELY. I've got multiple sites with the exact same issue and a pre-packaged Hardy fix would rock my socks off! I have 7 sites I can test the fix out on if that helps.

Revision history for this message
In , Joakim Plate (elupus) wrote :

My patch seems to have solved the issue for the people affected by this bug. There might be an alternate approach that would incure less overhead due to TCP_NODELAY.

One could instead of having TCP_NODELAY enabled all the time, only enable it on the socket on a call to _XFlush(), then disable. I'm not sure how the kernel would like this setting being enabled and disabled all the time thou.

Revision history for this message
Simon Schmidig (schmidig) wrote :

Do you provide a DEB-package for jaunty amd64? It could be useful for us.
Thank you

Revision history for this message
Stéphane Graber (stgraber) wrote : Re: [Bug 277069] Re: Slow performance with remote X applications (java, firefox/xul, etc.)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have built a fixed package for Jaunty in my PPA:
https://launchpad.net/~stgraber/+archive

Tested it with Jaunty i386 and amd64, both works fine.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoWuq0ACgkQjxyfqkjBhuxBIwCfUHLXYXHXzGcWWWSSCzlAV1EQ
s98AnjseVqD4H1r8RA74klGaJpAeoekK
=Ho65
-----END PGP SIGNATURE-----

Revision history for this message
Simon Schmidig (schmidig) wrote :

Thank you!!! It works great. :-)

Revision history for this message
Kai Wollweber (wollw) wrote :

As Jordan mentioned it is very needed to get this bug fixed in the last long term version 8.04. There are many schools and other LTSP users working with hardy who affected by this bug. We cannot upgrade as LTSP still is buggy in versions newer than hardy.

Revision history for this message
In , Julien Cristau (jcristau) wrote :

Disabling Nagle sounds pretty reasonable to me. It's also what Xtrans (and thus traditional Xlib) does.

Revision history for this message
In , Julien Danjou (jdanjou) wrote :

commit ee89850e68205a7f8961ace0839b5be86040dade
Author: elupus <email address hidden>
Date: Tue May 26 16:14:48 2009 +0200

    Disable Nagle on TCP socket

    Signed-off-by: Julien Danjou <email address hidden>

Revision history for this message
In , X-po8 (x-po8) wrote :

(In reply to comment #8)
> commit ee89850e68205a7f8961ace0839b5be86040dade
> Author: elupus <email address hidden>
> Date: Tue May 26 16:14:48 2009 +0200
>
> Disable Nagle on TCP socket
>
> Signed-off-by: Julien Danjou <email address hidden>
>

I can't believe we had Nagle on. :-) Oops.

Thanks much to all for the diagnosis and fix.

Revision history for this message
Daniel Abel (abeld) wrote :

I put up a patched package for hardy in my ppa: https://launchpad.net/~abeld/+archive/ppa (The libxcb packages). (I simply applied the same patch that Stéphane Graber did to the hardy version of libxcb.)

(The changelog entry is a bit wrong: it should read "Add 200_ubuntu_bug_no_277069_fix.diff, ...".)

Changed in libxcb:
status: Confirmed → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote :
Revision history for this message
Stéphane Graber (stgraber) wrote :
Revision history for this message
Stéphane Graber (stgraber) wrote :
Revision history for this message
Stéphane Graber (stgraber) wrote :
Revision history for this message
Stéphane Graber (stgraber) wrote :

The previous debdiffs were done based on the patch from freedesktop's bug tracker.
I test built the jaunty one (in my PPA) and uploaded the others too (still building) to make sure they build fine.

The patch for hardy and intrepid is slightly different from the one for jaunty and karmic. I also had to add a patching system for intrepid, jaunty and karmic, I used quilt as it was the one used for hardy (so reducing the changes between the debdiffs).

Revision history for this message
Bryce Harrington (bryce) wrote :

Stephane, the patches look good, but could you please include a more detailed description in the changelog? For technical folk like us, knowing it disables Nagle's algorithm is probably sufficient, but for end users the changelog should describe a) symptoms of the problems it solves, b) how it solves it, and c) any mention of potential regressions that could result. 2-3 sentences is probably sufficient.

Revision history for this message
Bryce Harrington (bryce) wrote :

Meanwhile, I've uploaded the karmic debdiff so we can get some preliminary testing done on the patch. If that goes well, and if you can update the changelogs for the older releases, then sruing them into the earlier patches can be tried.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libxcb - 1.2-1ubuntu2

---------------
libxcb (1.2-1ubuntu2) karmic; urgency=low

  * Disable Nagle on TCP socket (LP: #277069)

 -- Stephane Graber <email address hidden> Wed, 27 May 2009 01:31:03 +0200

Changed in libxcb (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

[The libxcb task is sufficient for purposes of this bug]

Changed in libxcb (Ubuntu):
assignee: nobody → Bryce Harrington (bryceharrington)
status: Fix Released → Triaged
Changed in libx11 (Ubuntu):
status: New → Invalid
Bryce Harrington (bryce)
Changed in libxcb (Ubuntu Karmic):
status: Triaged → Fix Committed
Bryce Harrington (bryce)
Changed in libx11 (Ubuntu Jaunty):
status: New → Invalid
Revision history for this message
Stéphane Graber (stgraber) wrote :
Revision history for this message
Stéphane Graber (stgraber) wrote :
Revision history for this message
Stéphane Graber (stgraber) wrote :
Bryce Harrington (bryce)
Changed in libx11 (Ubuntu Intrepid):
status: New → Invalid
Changed in libx11 (Ubuntu Hardy):
status: New → Invalid
Changed in libxcb (Ubuntu Hardy):
status: New → In Progress
Changed in libxcb (Ubuntu Intrepid):
status: New → In Progress
Changed in libxcb (Ubuntu Jaunty):
status: New → In Progress
Revision history for this message
Benoit St-André (benoit-st-andre) wrote :

Tested Stéphane's libxcb PPA's packages on Jaunty, on two different machines
- thinkpad X41 with Jaunty32bits , with 00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
- HP Pavilion a1610n AMD64x2 on Jaunty 64bits with 00:05.0 VGA compatible controller: nVidia Corporation C51 [GeForce 6150 LE] (rev a2)

No problem up to now, everything works well both locally and remotely.

Bryce Harrington (bryce)
Changed in libxcb (Ubuntu Karmic):
status: Fix Committed → Fix Released
Changed in debian:
status: New → Fix Released
Revision history for this message
Frank Bergmann (frankbg) wrote :

I confirm this working under Jaunty.
VERY WELL DONE!

Revision history for this message
Andrea P (anpasq) wrote :

Tested Stéphane's libxcb PPA's packages on Jaunty
connected to Jaunty from Windows clients Xming and Cygwin/X

problem still present..

Revision history for this message
Simon Schmidig (schmidig) wrote :

On AMD64
Openproj / java : OK
Acroread : slow
Google-earth : not usable

Colin Watson (cjwatson)
Changed in ia32-libs (Ubuntu Karmic):
importance: Undecided → High
Changed in libx11 (Fedora):
status: In Progress → Fix Released
Revision history for this message
Joakim Plate (elupus) wrote :

I really wonder how this managed to slip the jaunty update of libxcb today.... it's a simple bugfix that was accepted directly upstream. And it renders jaunty and intrepid unusable for remote X.

Colin Watson (cjwatson)
Changed in ia32-libs (Ubuntu Karmic):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Joakim Plate (elupus) wrote :

Simon, Andrea:

And you have verified that the performance was good on gutsy? Cause java have a tendency to require a huge amount of data transfers. Running java over ssh for example is often quite horrible.

Revision history for this message
Colin Watson (cjwatson) wrote :

Regarding the last pieces of getting this bug fixed in Karmic, I don't have a working amd64 system right now, but I've prepared https://launchpad.net/~cjwatson/+archive/ia32-libs-testing which should include the libxcb fix for this bug. I'd really appreciate it if any Karmic amd64 users could install ia32-libs from that test archive and confirm whether it fixes this bug.

(I can't speak for what's going on with Jaunty ...)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ia32-libs - 2.7ubuntu7

---------------
ia32-libs (2.7ubuntu7) karmic; urgency=low

  * Update sources.list.deb for karmic.
  * Revert gtk+2.0 change from 2.7ubuntu6, as the underlying bug was fixed
    in gtk+2.0 2.16.1-0ubuntu3.
  * fetch-and-build:
    - Add pulseaudio, since libpulsecore moved there.
    - Drop libcap1, which is now obsolete.
    - Replace libdirectfb-1.0-0 with libdirectfb-1.2-0.
    - Replace libkrb53 with libgssapi-krb5-2, libk5crypto3, libkrb5-3, and
      libkrb5support0.
    - Replace gcc-4.3-base with gcc-4.4-base.
    - Replace python2.5 with libpython2.6.
    - Replace libdb4.6 with libdb4.7.
    - Add libvorbisenc2 for libsndfile1/pulseaudio/pulseaudio-utils.
    - Add libv4l-0 for libsane (but just depend on lib32v4l-0 on amd64).
    - Add libudev0 for pulseaudio.
  * Depend on lib32asound2-plugins on amd64 instead of shipping it (LP:
    #305860).
  * Depend on lib32bz2-1.0 on amd64 instead of shipping it.
  * Freshen packages (LP: #277069, #389510, #393503).

 -- Colin Watson <email address hidden> Fri, 17 Jul 2009 15:20:02 +0000

Changed in ia32-libs (Ubuntu Karmic):
status: New → Fix Released
Revision history for this message
johannesk (johannes-kogler) wrote :

Hello!

In our company we use Ubuntu Hardy as development platform. We have chosen Ubuntu Hardy because of the long term support. Unfortunately we discovered the same problem in context with Eclipse, which is started remote. We would highly appreciate, if this bug could also be fixed in Hardy LTS with high importance.

Thanks in advance,
Johannes Kogler

Revision history for this message
Kai Wollweber (wollw) wrote :

Stéphane Graber

Status of our libxcb:
dpkg -l | grep libxcb
ii libxcb-xlib0 1.1-1ubuntu2~ppa1 X C Binding, Xlib/XCB interface library
ii libxcb1 1.1-1ubuntu2~ppa1 X C Binding

As we are still waiting for getting an update for hardy I tried to build libxcb (i386) from your last hardy.debdiff.
(I tried to apply the patch as described at https://wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff)

cd libxcb-1.1 && patch -p1 < ../hardy.debdiff
patching file debian/patches/series
patching file debian/changelog
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file debian/changelog.rej
patching file debian/patches/101_fix_lp277069.diff

Any hint how to get the rejected patch fixed? This error does not occur on another server with amd64 System.

TIA

Revision history for this message
Kai Wollweber (wollw) wrote :

if I got it right libxcb1 1.1-1ubuntu2~ppa1 does include the patch. But users are still complaining slow performance with Gimp, Netbeans, Eclipse on remote X

Changed in ia32-libs (Ubuntu Jaunty):
status: New → Fix Committed
Revision history for this message
Vato (v-launchpad-limpid-org-uk) wrote :

Any news on when Jaunty will get this fix?

jgmargo (greg-margo)
Changed in ia32-libs (Ubuntu):
assignee: Colin Watson (cjwatson) → jgmargo (greg-margo)
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Intrepid Ibex reached end-of-life on 30 April 2010 so I am closing the report. The bug has been fixed in newer releases of Ubuntu.

Changed in libxcb (Ubuntu Intrepid):
status: In Progress → Invalid
Changed in ia32-libs (Ubuntu Intrepid):
status: New → Invalid
Revision history for this message
Vato (v-launchpad-limpid-org-uk) wrote :

Nice work - ignore it until end-of-life.

Changed in libxcb:
importance: Unknown → High
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Jaunty reached end-of-life on 23 October 2010, so this bug will not be fixed in that version of Ubuntu. It has been fixed in newer versions.

Changed in libxcb (Ubuntu Jaunty):
status: In Progress → Won't Fix
Changed in ia32-libs (Ubuntu Jaunty):
status: Fix Committed → Won't Fix
Changed in libxcb:
importance: High → Unknown
Changed in libxcb:
importance: Unknown → High
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in ia32-libs (Ubuntu Hardy):
status: New → Won't Fix
Rolf Leggewie (r0lf)
Changed in libxcb (Ubuntu Hardy):
status: In Progress → Won't Fix
Changed in libx11 (Fedora):
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.