Description of problem:
Firefox and other applications fail due to a libxcb bug. Firefox will print to stdout or stderr the following message and immediately exit. Most users don't notice because stdout and stderr are discarded normally. The message looks like this:
The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadIDChoice (invalid resource ID chosen for this connection)'.
(Details: serial 293520194 error_code 14 request_code 148 minor_code 4)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Version-Release number of selected component (if applicable):
at least libxcb-1.1.91-5.fc10.x86_64
For me, it takes a few days of a single firefox instance with lots of windows and tabs.
Described and fixed upstream (not yet in a release). See
There are a couple of Fedora bz entries that seem to be instances of this bug (but perhaps other ones are mixed in):
Looks like this has been fixed upstream.
From http://bugs.freedesktop.org/show_bug.cgi?id=20254 :
Author: Bart Massey <email@example.com>
Date: Tue Mar 24 16:24:04 2009 -0700
kludgily hand-merged xid fixes
Signed-off-by: Bart Massey <firstname.lastname@example.org>
Signed-off-by: Julien Danjou <email@example.com>
Any chance you could apply this patch to libxcb in F10.. pretty please with sugar on top?
I'll gladly test this for you!
Created attachment 340056 [details]
The patch I'm testing
This is the patch I'm testing against. I rebuilt the libxcb RPM with this patch. So far it seems to be working but I'll know more in a few days, whether firefox dies or not.
FYI, I've been running with the patch all weekend and haven't seen a single X Protocol Error. So I think this patch definitely fixes this problem for me.
Ubuntu is adopting this fix:
libxcb-1.1.91-6.fc10 has been submitted as an update for Fedora 10.
libxcb-1.1.91-6.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update libxcb'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-3865
libxcb-1.1.91-6.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.