Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] xorg-server-1.3.0 + xcb breaks java ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Sun Apr 22, 2007 3:59 am    Post subject: [SOLVED] xorg-server-1.3.0 + xcb breaks java ? Reply with quote

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
View user's profile Send private message
Mindstab
Apprentice
Apprentice


Joined: 02 Jan 2003
Posts: 271
Location: Vancouver, Canada

PostPosted: Sun Apr 22, 2007 5:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Sun Apr 22, 2007 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
monolit
n00b
n00b


Joined: 29 Jan 2004
Posts: 64
Location: Paris/Texas

PostPosted: Tue Apr 24, 2007 5:35 pm    Post subject: More java programs failing Reply with quote

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
View user's profile Send private message
Mindstab
Apprentice
Apprentice


Joined: 02 Jan 2003
Posts: 271
Location: Vancouver, Canada

PostPosted: Wed Apr 25, 2007 8:32 am    Post subject: Reply with quote

ha
when sun feels like it

again, this is why closed source sucks. otherwise it would have been fixed already
Back to top
View user's profile Send private message
cocaxx
n00b
n00b


Joined: 29 Jun 2002
Posts: 43

PostPosted: Thu Apr 26, 2007 8:42 am    Post subject: Reply with quote

So this really means there's atm no possibility of using java apps on xorg-server 1.3? 8O
Back to top
View user's profile Send private message
irondog
l33t
l33t


Joined: 07 Jul 2003
Posts: 715
Location: Voor mijn TV. Achter mijn pc.

PostPosted: Thu Apr 26, 2007 8:45 am    Post subject: Reply with quote

Emerge libX11 without XCB.
_________________
Alle dingen moeten onzin zijn.
Back to top
View user's profile Send private message
shaumux
l33t
l33t


Joined: 13 May 2005
Posts: 992
Location: Bangalore, India

PostPosted: Sat Apr 28, 2007 10:24 pm    Post subject: Reply with quote

Is there any workaround for it without disabling the xcb USE flag?
Back to top
View user's profile Send private message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 172
Location: Bulgaria

PostPosted: Sun Apr 29, 2007 5:18 am    Post subject: Reply with quote

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373

Quote:
One workaround is to compile xcb with -DNDEBUG in CFLAGS.
Back to top
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Sun Apr 29, 2007 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
BernieKe
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 130
Location: California/Bangalore/Belgium

PostPosted: Sat Aug 18, 2007 1:28 pm    Post subject: Reply with quote

As per https://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
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 449
Location: Cambridge, UK

PostPosted: Mon Aug 20, 2007 8:10 am    Post subject: Jbidwatcher Reply with quote

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
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Mon Aug 20, 2007 8:36 am    Post subject: Reply with quote

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
View user's profile Send private message
vuakko
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2007
Posts: 138
Location: Helsinki, Finland

PostPosted: Wed Sep 05, 2007 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
SocialSecurity
n00b
n00b


Joined: 10 Mar 2007
Posts: 19

PostPosted: Wed Sep 05, 2007 11:26 pm    Post subject: Reply with quote

This also doesn't occur with Java if the XINERAMA extension doesn't exist.
Back to top
View user's profile Send private message
pavallokazzo
n00b
n00b


Joined: 08 Jan 2007
Posts: 33

PostPosted: Thu Oct 11, 2007 8:43 pm    Post subject: Reply with quote

I confirm the solution at the top...
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Thu Oct 11, 2007 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
rtomek
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 210
Location: Chicago

PostPosted: Wed Dec 19, 2007 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum