Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 156367

Summary: app-i18n/fcitx crashes with libxcb
Product: Gentoo Linux Reporter: Yangtse Su <yangtsesu>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: major CC: cjk, gentoo
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174434    

Description Yangtse Su 2006-11-26 17:44:56 UTC
I global use "xcb",after emerge libxcb,libX11,xcb-proto,
in any apps ,I press <ctrl> + <space> to switch The Chinese input methord fcitx,
The app crash.

$ QT_IM_MODULE=xim kwrite
ScimInputContextPlugin()
QMultiInputContext::changeInputMethod(): index=0, slave=xim
kwrite: xcb_xlib.c&#65306;50&#65306;xcb_xlib_unlock: &#26029;&#35328;
Comment 1 Yangtse Su 2006-11-26 17:44:56 UTC
I global use "xcb",after emerge libxcb,libX11,xcb-proto,
in any apps ,I press <ctrl> + <space> to switch The Chinese input methord fcitx,
The app crash.

$ QT_IM_MODULE=xim kwrite
ScimInputContextPlugin()
QMultiInputContext::changeInputMethod(): index=0, slave=xim
kwrite: xcb_xlib.c&#65306;50&#65306;xcb_xlib_unlock: &#26029;&#35328;c->xlib.lock&#22833;&#36133;&#12290;
KCrash: Application 'kwrite' crashing...
KCrash cannot reach kdeinit, launching directly.

archers have the same problem,they use a "xcb_xlib-no-assert-on-lock.patch" to resolve it.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-27 01:59:44 UTC
Uhm, can you please try to get the error with LC_MESSAGE=C ?
Although this seems to be yet another of those cases for which we need newer versions of libraries.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-11-27 03:02:10 UTC
Please make sure that if these packages are installed, you have at least these versions:

libXcomposite-0.3.1
libXdamage-1.0.4
libXfixes-4.0.3
libXi-1.1.0
libXinerama-1.0.1
libXrandr-1.1.2
x11-libs/libX11-1.1
Comment 4 Yangtse Su 2006-12-06 18:01:06 UTC
$ LC_MESSAGES=C QT_IM_MODULE=xim kwrite
ScimInputContextPlugin()
QMultiInputContext::changeInputMethod(): index=0, slave=xim
kwrite: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
KCrash: Application 'kwrite' crashing...
KCrash cannot reach kdeinit, launching directly.

now,this bug is still unfixed.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-12-07 07:01:40 UTC
Please respond to comment #2 indicating that you are using at least those versions, and preferably with information specifying the versions you are using.
Comment 6 Yangtse Su 2006-12-07 20:50:30 UTC
(In reply to comment #2)
> Please make sure that if these packages are installed, you have at least these
> versions:
> 
> libXcomposite-0.3.1
> libXdamage-1.0.4
> libXfixes-4.0.3
> libXi-1.1.0
> libXinerama-1.0.1
> libXrandr-1.1.2
> x11-libs/libX11-1.1
> 

x11-libs/libX11-1.1.1
x11-libs/libxcb-1.0
x11-proto/xcb-proto-1.0
Comment 7 Yangtse Su 2006-12-11 05:47:29 UTC
(In reply to comment #2)
> Please make sure that if these packages are installed, you have at least these
> versions:
> 
> libXcomposite-0.3.1
> libXdamage-1.0.4
> libXfixes-4.0.3
> libXi-1.1.0
> libXinerama-1.0.1
> libXrandr-1.1.2
> x11-libs/libX11-1.1
> 

I use "~amd64",I have all you asked.
Comment 8 MATSUU Takuto (RETIRED) gentoo-dev 2007-04-27 17:09:14 UTC
cf. http://www.fcitx.org/main/?q=node/113
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2007-04-27 17:51:00 UTC
I wonder if it's a locking bug in qt. I didn't see any calls of LockDisplay or UnlockDisplay anywhere in fcitx or scim.
Comment 10 Peter Fern 2007-06-05 16:57:14 UTC
You're welcome to try the libxcb ebuild from:
http://bugs.gentoo.org/show_bug.cgi?id=176839#c1

Somewhat ugly, but best way I could see of solving the problem until clients are updated for the new xcb locking.
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2007-06-11 02:41:43 UTC
This turns out to be an upstream bug in libX11 that was just fixed. We'll try to get a revision bump in -- the commit is at http://gitweb.freedesktop.org/?p=xorg/lib/libX11.git;a=commit;h=c2f88cdf5cd9c94b77e5bfdac572b5ac06ab4aa8
Comment 12 MATSUU Takuto (RETIRED) gentoo-dev 2007-06-11 23:31:45 UTC
its libX11 issue.
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2007-06-15 21:50:28 UTC
Not to waste a libX11 rev bump since I'm already fixing bug #181707, I'll just lump this one in there since after reviewing the patch it seems proper. Upstream feels this is the fix for this issue as well.

Fixed in libX11-1.1.2-r1
Comment 14 Joshua Baergen (RETIRED) gentoo-dev 2007-06-18 00:28:25 UTC
(In reply to comment #13)
> Not to waste a libX11 rev bump since I'm already fixing bug #181707, I'll just
> lump this one in there since after reviewing the patch it seems proper.
> Upstream feels this is the fix for this issue as well.
> 
> Fixed in libX11-1.1.2-r1
> 

Thanks, Cardoe, I appreciate you taking care of this.