Thread Subject: Locking assertion failure.

Subject: Locking assertion failure.

From: stephan

Date: 10 Apr, 2008 08:19:02

Message: 1 of 8

Hi group,

whenever I try to start MATLAB 2006a (7.2.0.294) under
Linux, I get the above error. This only happens when I try
to start it running in 24 bit resolution.

Here's the complete backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb5c60767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb5c608b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb5f2b1bd]
#3
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
[0xa1b2826a]
#4
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
[0xa1b0e352]
#5
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
[0xa1b0e599]
#6
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x24)
[0xa1b0e7a4]
#7 [0xae560b8b]
#8 [0xae55aa7b]
#9 [0xae55aa7b]
#10 [0xae558157]
#11
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
[0xb31ab8ec]
#12
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
[0xb329a378]
#13
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
[0xb31ab71f]
#14
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x2db)
[0xb3203ebb]
#15
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb379e2cd]
#16 [0xae56043b]
#17 [0xae55a9a4]
#18 [0xae558157]
#19
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
[0xb31ab8ec]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb5c60767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb5c6081e]
#2 /usr/lib/libX11.so.6 [0xb5f2a518]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb5f210a6]
#4
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
[0xa1b0d227]
#5
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
[0xa1b0d4b8]
#6
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
[0xa1b0e6e0]
#7
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x24)
[0xa1b0e7a4]
#8 [0xae560b8b]
#9 [0xae55aa7b]
#10 [0xae55aa7b]
#11 [0xae558157]
#12
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
[0xb31ab8ec]
#13
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
[0xb329a378]
#14
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
[0xb31ab71f]
#15
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x2db)
[0xb3203ebb]
#16
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb379e2cd]
#17 [0xae56043b]
#18 [0xae55a9a4]
#19 [0xae558157]

Do you have any idea what went wrong? It looks like the Java
JRE does not support 24 bit screen depth?

Thanks,
Stephan

Subject: Locking assertion failure.

From: Thomas Lee

Date: 21 Apr, 2008 07:28:01

Message: 2 of 8

"Stephan " <sfabel@gmx.net> wrote in message
<ftkihm$5p$1@fred.mathworks.com>...
> Hi group,
>
> whenever I try to start MATLAB 2006a (7.2.0.294) under
> Linux, I get the above error. This only happens when I try
> to start it running in 24 bit resolution.
>
> Here's the complete backtrace:
> #0 /usr/lib/libxcb-xlib.so.0 [0xb5c60767]
> #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31)
[0xb5c608b1]
> #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb5f2b1bd]
> #3
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
> [0xa1b2826a]
> #4
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
> [0xa1b0e352]
> #5
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
> [0xa1b0e599]
> #6
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x24)
> [0xa1b0e7a4]
> #7 [0xae560b8b]
> #8 [0xae55aa7b]
> #9 [0xae55aa7b]
> #10 [0xae558157]
> #11
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
> [0xb31ab8ec]
> #12
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
> [0xb329a378]
> #13
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
> [0xb31ab71f]
> #14
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x2db)
> [0xb3203ebb]
> #15
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
> [0xb379e2cd]
> #16 [0xae56043b]
> #17 [0xae55a9a4]
> #18 [0xae558157]
> #19
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
> [0xb31ab8ec]
> Locking assertion failure. Backtrace:
> #0 /usr/lib/libxcb-xlib.so.0 [0xb5c60767]
> #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb5c6081e]
> #2 /usr/lib/libX11.so.6 [0xb5f2a518]
> #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb5f210a6]
> #4
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
> [0xa1b0d227]
> #5
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
> [0xa1b0d4b8]
> #6
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so
> [0xa1b0e6e0]
> #7
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x24)
> [0xa1b0e7a4]
> #8 [0xae560b8b]
> #9 [0xae55aa7b]
> #10 [0xae55aa7b]
> #11 [0xae558157]
> #12
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
> [0xb31ab8ec]
> #13
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
> [0xb329a378]
> #14
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so
> [0xb31ab71f]
> #15
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x2db)
> [0xb3203ebb]
> #16
>
/home/stephan/matlab2006/sys/java/jre/glnx86/jre1.5.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
> [0xb379e2cd]
> #17 [0xae56043b]
> #18 [0xae55a9a4]
> #19 [0xae558157]
>
> Do you have any idea what went wrong? It looks like the Java
> JRE does not support 24 bit screen depth?
>
> Thanks,
> Stephan


I have a similar crash like you. Using Matlab 2008a, though.

#0 /usr/lib/libxcb-xlib.so.0 [0xb5499767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb54998b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb575e1bd]
#3
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so
[0xae93a2be]
#4
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so
[0xae918ed7]
#5
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so
[0xae919188]
#6
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
[0xae91948f]
#7 [0xafaf368e]
#8 [0xafaebe9d]
#9 [0xafaebe9d]
#10 [0xafae9207]
#11
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so
[0x6209a4d]
#12
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so
[0x6305bc8]
#13
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so
[0x62098e0]
#14
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
[0x625f77b]
#15
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb1b9196d]
#16 [0xafaf368e]
#17 [0xafaebd37]
#18 [0xafae9207]
#19
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so
[0x6209a4d]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb5499767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb549981e]
#2 /usr/lib/libX11.so.6 [0xb575d518]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb57540a6]
#4
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so
[0xae918189]
#5
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so
[0xae9183d5]
#6
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so
[0xae919239]
#7
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
[0xae91948f]
#8 [0xafaf368e]
#9 [0xafaebe9d]
#10 [0xafaebe9d]
#11 [0xafae9207]
#12
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so
[0x6209a4d]
#13
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so
[0x6305bc8]
#14
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so
[0x62098e0]
#15
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
[0x625f77b]
#16
/usr/local/matlab/sys/java/jre/glnx86/jre1.6.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb1b9196d]
#17 [0xafaf368e]
#18 [0xafaebd37]
#19 [0xafae9207]

Subject: Locking assertion failure.

From: Jeff

Date: 26 Apr, 2008 05:40:04

Message: 3 of 8

I have the same problem. Another forum:

https://bugs.launchpad.net/xorg-server/+bug/185311

gave several things to try, one of which partially fixed the
problem.

on Ubuntu 8.04, the following fixed the problem with v2007a,
but did not fix the problem with v2008a

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre

I am still trying to figure out why this isn't working with
v2008a

Hope this helps

Subject: Locking assertion failure.

From: Sebastian Jentschke

Date: 19 May, 2008 18:19:01

Message: 4 of 8

Thanks it worked excellent, in my case even for Matlab 2008a!

Subject: Locking assertion failure.

From: Matteo

Date: 18 Jun, 2008 17:35:03

Message: 5 of 8

"Jeff " <wweagleflyer@yahoo.com> wrote in message
<fuuf7k$t72$1@fred.mathworks.com>...
> I have the same problem. Another forum:
>
> https://bugs.launchpad.net/xorg-server/+bug/185311
>
> gave several things to try, one of which partially fixed the
> problem.
>
> on Ubuntu 8.04, the following fixed the problem with v2007a,
> but did not fix the problem with v2008a
>
> export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre
>
> I am still trying to figure out why this isn't working with
> v2008a
>
> Hope this helps

Hello people,

This did not help me. I have openSUSE 11 with MATLAB 2007a.
This fix prevents the error at MATLAB start, but then I
still don't see any title, legend or axis on MATLAB's plots,
furthermore I get this error when I try to ratate a figure:

java.lang.NullPointerException
at
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
at
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)

Any other suggestion? Thanks

maTTeo

Subject: Locking assertion failure.

From: Seamus

Date: 14 Aug, 2008 15:14:02

Message: 6 of 8

the solution:
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre/

worked for me in matlab r2007b on kubuntu 8.04,

thanks

Subject: Locking assertion failure.

From: Robert Comstock

Date: 18 Sep, 2008 15:08:03

Message: 7 of 8

"Matteo " <voto_100.delete.this@hotmail.com> wrote in message <g3bh07$m0j$1@fred.mathworks.com>...
> "Jeff " <wweagleflyer@yahoo.com> wrote in message
> <fuuf7k$t72$1@fred.mathworks.com>...
> > I have the same problem. Another forum:
> >
> > https://bugs.launchpad.net/xorg-server/+bug/185311
> >
> > gave several things to try, one of which partially fixed the
> > problem.
> >
> > on Ubuntu 8.04, the following fixed the problem with v2007a,
> > but did not fix the problem with v2008a
> >
> > export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre
> >
> > I am still trying to figure out why this isn't working with
> > v2008a
> >
> > Hope this helps
>
> Hello people,
>
> This did not help me. I have openSUSE 11 with MATLAB 2007a.
> This fix prevents the error at MATLAB start, but then I
> still don't see any title, legend or axis on MATLAB's plots,
> furthermore I get this error when I try to ratate a figure:
>
> java.lang.NullPointerException
> at
> com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
> at
> com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)
>
> Any other suggestion? Thanks
>
> maTTeo

To fix the non-display title for me I did
export AWT_TOOLKIT="MToolkit"

Rob

Subject: Locking assertion failure.

From: wang w

Date: 19 Aug, 2009 18:00:23

Message: 8 of 8

Actually, you just need to figure out the version of your jvm and make some modification of the version number in the command below:

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre

that's just OK!
At least it works on my R2008.

"Jeff " <wweagleflyer@yahoo.com> wrote in message <fuuf7k$t72$1@fred.mathworks.com>...
> I have the same problem. Another forum:
>
> https://bugs.launchpad.net/xorg-server/+bug/185311
>
> gave several things to try, one of which partially fixed the
> problem.
>
> on Ubuntu 8.04, the following fixed the problem with v2007a,
> but did not fix the problem with v2008a
>
> export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre
>
> I am still trying to figure out why this isn't working with
> v2008a
>
> Hope this helps

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
java Matteo 18 Jun, 2008 13:40:25
libxcb Matteo 18 Jun, 2008 13:40:25
lock Matteo 18 Jun, 2008 13:40:25
font Matteo 18 Jun, 2008 13:40:25
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com