| View previous topic :: View next topic |
| Author |
Message |
Devport Guru

Joined: 15 Dec 2004 Posts: 361
|
Posted: Sun Apr 22, 2007 3:59 am Post subject: [SOLVED] xorg-server-1.3.0 + xcb breaks java ? |
|
|
Since I upgraded xorg-server to 1.3.0 I get this message when I try to run tvbrowser - the only java app I use :
| Quote: | | java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed. |
Rebuilding xcb libs and utils didnt help.
Edit : Solution : CFLAGS="-DNDEBUG" emerge -av1 libxcb
Last edited by Devport on Sun Apr 29, 2007 11:17 pm; edited 4 times in total |
|
| Back to top |
|
 |
Mindstab Apprentice


Joined: 02 Jan 2003 Posts: 271 Location: Vancouver, Canada
|
Posted: Sun Apr 22, 2007 5:21 am Post subject: |
|
|
Xorg 7.2 had optional xcb support, I guess it's mandatory in 7.3. Anyways, it's a whole new implementation of the X protocol, and XLib has been gutted and just wrapped around it. It's better, but it has exposed a few problems, like that bug in Java that the old XLib didn't catch but this xlib does. It's actually Java's fault, not Xorg's. They;re just finally handling it properly, instead of letting broken behavior continue. Of course it's a hassle, bu then any open source project would have been fixed by now as this has been a known issue for ages now. This is what we get for using closed source apps, we depend on one company for fixes and if they can't be bothered, well then we're out of luck.
Just be glad Java is being open sourced. When that finally fully happens, bugs like this won't kick around for half a year. In the mean time, I reiterate, closed source sucks. |
|
| Back to top |
|
 |
Devport Guru

Joined: 15 Dec 2004 Posts: 361
|
Posted: Sun Apr 22, 2007 1:02 pm Post subject: |
|
|
Thanks for the info.
I had the useflag xcb in all my packages already so I am a bit surprised that the new xorg-server triggers that bug. I will mask it. |
|
| Back to top |
|
 |
monolit n00b


Joined: 29 Jan 2004 Posts: 64 Location: Paris/Texas
|
Posted: Tue Apr 24, 2007 5:35 pm Post subject: More java programs failing |
|
|
Getting the same error for azureus-2.5.0.4-r1 and java version of the hjsplit program. Gonna mask and downgrade xorg-server-1.3.0.0. Any idea when this behaviour of the java programs can be fixed?  _________________ *SB* |
|
| Back to top |
|
 |
Mindstab Apprentice


Joined: 02 Jan 2003 Posts: 271 Location: Vancouver, Canada
|
Posted: Wed Apr 25, 2007 8:32 am Post subject: |
|
|
ha
when sun feels like it
again, this is why closed source sucks. otherwise it would have been fixed already |
|
| Back to top |
|
 |
cocaxx n00b

Joined: 29 Jun 2002 Posts: 43
|
Posted: Thu Apr 26, 2007 8:42 am Post subject: |
|
|
So this really means there's atm no possibility of using java apps on xorg-server 1.3?  |
|
| Back to top |
|
 |
irondog l33t


Joined: 07 Jul 2003 Posts: 715 Location: Voor mijn TV. Achter mijn pc.
|
Posted: Thu Apr 26, 2007 8:45 am Post subject: |
|
|
Emerge libX11 without XCB. _________________ Alle dingen moeten onzin zijn. |
|
| Back to top |
|
 |
shaumux l33t

Joined: 13 May 2005 Posts: 981 Location: Bangalore, India
|
Posted: Sat Apr 28, 2007 10:24 pm Post subject: |
|
|
| Is there any workaround for it without disabling the xcb USE flag? |
|
| Back to top |
|
 |
stoil Tux's lil' helper

Joined: 12 Apr 2006 Posts: 144 Location: Bulgaria
|
|
| Back to top |
|
 |
Devport Guru

Joined: 15 Dec 2004 Posts: 361
|
Posted: Sun Apr 29, 2007 5:28 pm Post subject: |
|
|
| stoil wrote: | http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
| Quote: | | One workaround is to compile xcb with -DNDEBUG in CFLAGS. |
|
Works fine. THX. |
|
| Back to top |
|
 |
BernieKe Tux's lil' helper


Joined: 02 Jul 2002 Posts: 130 Location: California/Bangalore/Belgium
|
Posted: Sat Aug 18, 2007 1:28 pm Post subject: |
|
|
As per http://bugs.gentoo.org/show_bug.cgi?id=156353#c18 :
For sun-java5-bin:
| Code: |
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/i386/xawt/libmawt.so
|
For sun-java6-bin:
| Code: |
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so
|
|
|
| Back to top |
|
 |
ferg Guru


Joined: 15 Nov 2002 Posts: 411 Location: Cambridge, UK
|
Posted: Mon Aug 20, 2007 8:10 am Post subject: Jbidwatcher |
|
|
Just as a placeholder for people searching. I get this with the latest version of Jbidwatcher. Using the suggested workaround of compiling libxcb withouth the DEBUG flag works perfectly!
Cheers
Ferg _________________ Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!" |
|
| Back to top |
|
 |
pholthau Guru


Joined: 27 Nov 2005 Posts: 358 Location: Bielefeld, Germany
|
Posted: Mon Aug 20, 2007 8:36 am Post subject: |
|
|
Here you can find a patch. It seems to work for me, although it's just a workaround. _________________ The message is Feierei, alder! The message is Gude Laune, alder! [Sven] |
|
| Back to top |
|
 |
vuakko Tux's lil' helper


Joined: 09 May 2007 Posts: 138 Location: Helsinki, Finland
|
Posted: Wed Sep 05, 2007 4:00 pm Post subject: |
|
|
Some programs (such as Mathematica and Matlab) use their own JVM, so actually one should rather run
| Code: |
locate /xawt/libmawt.so | xargs sed -i 's/XINERAMA/FAKEEXTN/g'
|
This fixed 5 different files in my system. So that's my 1.5 cents. |
|
| Back to top |
|
 |
SocialSecurity n00b

Joined: 10 Mar 2007 Posts: 19
|
Posted: Wed Sep 05, 2007 11:26 pm Post subject: |
|
|
| This also doesn't occur with Java if the XINERAMA extension doesn't exist. |
|
| Back to top |
|
 |
pavallokazzo n00b

Joined: 08 Jan 2007 Posts: 33
|
Posted: Thu Oct 11, 2007 8:43 pm Post subject: |
|
|
| I confirm the solution at the top... |
|
| Back to top |
|
 |
tarpman Veteran


Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Thu Oct 11, 2007 9:46 pm Post subject: |
|
|
According to Sun this bug has been fixed. Hopefully the next round of JVM updates will contain it. _________________ Saving the world, one kilobyte at a time. |
|
| Back to top |
|
 |
rtomek Apprentice


Joined: 05 Jan 2007 Posts: 209 Location: Chicago
|
Posted: Wed Dec 19, 2007 7:49 pm Post subject: |
|
|
| ntvuok wrote: | Some programs (such as Mathematica and Matlab) use their own JVM, so actually one should rather run
| Code: |
locate /xawt/libmawt.so | xargs sed -i 's/XINERAMA/FAKEEXTN/g'
|
This fixed 5 different files in my system. So that's my 1.5 cents. |
great! this solved everything, my problem was with matlab. |
|
| Back to top |
|
 |
|