Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
java crash xcb_lib
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
DaNe
Apprentice
Apprentice


Joined: 29 Apr 2006
Posts: 192

PostPosted: Sun Aug 26, 2007 1:03 am    Post subject: java crash xcb_lib Reply with quote

in azureus when im adding a torrent and in the final i get a crash
the error is this..
Code:
$UI not set defaulting to swt
changeLocale: no message properties for Locale 'Portuguese' (pt), using 'English (default)'
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted

i already re-emerge xcb and nothing changed

edit: in another apps that use java i get this error too liker mercury(msn client)


Last edited by DaNe on Tue Aug 28, 2007 12:47 am; edited 2 times in total
Back to top
View user's profile Send private message
Nsane457
n00b
n00b


Joined: 25 Nov 2004
Posts: 45

PostPosted: Sun Aug 26, 2007 1:18 am    Post subject: Reply with quote

The bug is discussed here and here. Using "-xinerama" use flag and recompiling all relevent packages that use the flag might be a temporary fix since this bug relates to the linking of libxinerama.
Back to top
View user's profile Send private message
DaNe
Apprentice
Apprentice


Joined: 29 Apr 2006
Posts: 192

PostPosted: Sun Aug 26, 2007 1:43 am    Post subject: Reply with quote

tks a lot
edit:
cool now i know where the problem came,
i already set the flag -xinerama
and after that a nice emerge -uDN world

but it didnt resolved the problem?
what would be your next step?
equery depends libXinerama and emerge all that?
removing libXinerama and running revdep-rebuild?
Back to top
View user's profile Send private message
DaNe
Apprentice
Apprentice


Joined: 29 Apr 2006
Posts: 192

PostPosted: Tue Aug 28, 2007 10:50 am    Post subject: Reply with quote

i really dont get i should emerge....
if anyone would have solutions be very grateful.
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Tue Aug 28, 2007 11:50 pm    Post subject: Reply with quote

Seems like this is the remedy for which you seek :)


Code:
CFLAGS="-DNDEBUG" emerge -av1 libxcb


Run that and restart your X server.




cheers,
jcat
Back to top
View user's profile Send private message
Cheba
n00b
n00b


Joined: 10 Jun 2006
Posts: 20

PostPosted: Wed Aug 29, 2007 10:34 pm    Post subject: Reply with quote

I didn't restart X after reemerging libxcb and it worked fine.
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Thu Aug 30, 2007 10:41 am    Post subject: Reply with quote

Cheba wrote:
I didn't restart X after reemerging libxcb and it worked fine.


Yeah, you shouldn't have to restart X, just playing it safe...



Cheers,
jcat
Back to top
View user's profile Send private message
shaumux
Veteran
Veteran


Joined: 13 May 2005
Posts: 1009
Location: Hong Kong

PostPosted: Thu Aug 30, 2007 6:45 pm    Post subject: Reply with quote

See this bug
Theres a slopy lock patch and and an ebuild.
Its nice and works great and lets java run.
Back to top
View user's profile Send private message
Mr. Ulmo
n00b
n00b


Joined: 06 Aug 2007
Posts: 9

PostPosted: Sun Sep 16, 2007 6:18 pm    Post subject: a quick fix for this ... Reply with quote

I saw a fix for this problem, but I could'nt find the path, so I tweaked it for gentoo ...

this worked for me ....

Code:
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/sun-jre-bin-1.6/lib/i386/xawt/libmawt.so
Back to top
View user's profile Send private message
coolone
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 278

PostPosted: Sun Sep 30, 2007 3:48 am    Post subject: Reply with quote

I got a same prob here,

freecol
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted



[ebuild R ] games-strategy/freecol-0.7.2 USE="-test" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
_________________
No Rolex on my wrist Or platinum on my chest 'Cause I don't need that shit to impress
Back to top
View user's profile Send private message
Satan Klaus
n00b
n00b


Joined: 11 May 2005
Posts: 19

PostPosted: Sun Oct 07, 2007 12:15 pm    Post subject: Reply with quote

The same java libmawt.so bug is responsible for the fact that Openoffice.org is unable to detect JREs and for MATLAB crash. Looks like all currently "stable" JRE's are broken. I've reproduced this with sun-jre-bin-1.6.0.02, ibm-jre-bin-1.5.0.5a, sun-jdk-1.5.0.12 and blackdown-jdk-1.4.2.03-r15.

PS: sed trick works with at least 1st three JREs.
Back to top
View user's profile Send private message
malevolent
n00b
n00b


Joined: 25 Jul 2005
Posts: 12
Location: Barcelona

PostPosted: Fri Feb 29, 2008 4:35 pm    Post subject: Reply with quote

worked great for me also

Now i can use mercury msn :wink:

Thanks a lot!!!
Back to top
View user's profile Send private message
bytenirvana
Apprentice
Apprentice


Joined: 10 Jun 2006
Posts: 218
Location: Volksstaat Hessen

PostPosted: Sat Mar 01, 2008 5:53 pm    Post subject: Reply with quote

Mmh... I reemerged libxcb and tried
Code:

sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/sun-jre-bin-1.6/lib/i386/xawt/libmawt.so
too, but I get still the error when I try to run azureus.

Is there another way to fix this?
_________________
Linux User #422770
Back to top
View user's profile Send private message
zaai
Apprentice
Apprentice


Joined: 24 Jul 2004
Posts: 175

PostPosted: Mon Apr 14, 2008 4:25 am    Post subject: Reply with quote

Thanks for this workaround :D
It also works on amd64 when run as follows:
Code:
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/sun-jdk-1.6/jre/lib/amd64/xawt/libmawt.so

_________________
* most bugs can be reduced to either dependency or state *

Athlon64 X2 4800+ on Asus M2N SLI deluxe with 4GB Dual channel
video nVidia GForce 7300 GS 512MB (snail); xorg-7.2
kernel 2.6.24-gentoo-r3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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