Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: [SOLVED] Should this crash concern me?

  1. #1
    Join Date
    May 2006
    Location
    Cookeville, TN
    Beans
    2,751

    [SOLVED] Should this crash concern me?

    Hello, I am writing a java game and I get this when I start it. It appears to be java itself crashing. Oddly, though, my program loads up and works as expected. Should this "crash" concern me or should I just ignore it?

    Code:
    [jordan@ttyfscker src]$ java Screen
    Locking assertion failure.  Backtrace:
    #0 /usr/lib/libxcb-xlib.so.0 [0xb7cca767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7cca8b1]
    #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xab708a8d]
    #3 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab81864e]
    #4 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7f6f97]
    #5 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7f7248]
    #6 /opt/java/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab7f754f]
    #7 [0xb5c9366e]
    #8 [0xb5c8bedd]
    #9 [0xb5c8bedd]
    #10 [0xb5c89243]
    #11 /opt/java/jre/lib/i386/client/libjvm.so [0x620bc6d]
    #12 /opt/java/jre/lib/i386/client/libjvm.so [0x630a828]
    #13 /opt/java/jre/lib/i386/client/libjvm.so [0x620bb00]
    #14 /opt/java/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
    #15 /opt/java/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7ca496d]
    #16 [0xb5c9366e]
    #17 [0xb5c8bd77]
    #18 [0xb5c89243]
    #19 /opt/java/jre/lib/i386/client/libjvm.so [0x620bc6d]
    Locking assertion failure.  Backtrace:
    #0 /usr/lib/libxcb-xlib.so.0 [0xb7cca767]
    #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb7cca81e]
    #2 /usr/lib/libX11.so.6 [0xab707e08]
    #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xab6feb76]
    #4 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7f6249]
    #5 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7f6495]
    #6 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7f72f9]
    #7 /opt/java/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab7f754f]
    #8 [0xb5c9366e]
    #9 [0xb5c8bedd]
    #10 [0xb5c8bedd]
    #11 [0xb5c89243]
    #12 /opt/java/jre/lib/i386/client/libjvm.so [0x620bc6d]
    #13 /opt/java/jre/lib/i386/client/libjvm.so [0x630a828]
    #14 /opt/java/jre/lib/i386/client/libjvm.so [0x620bb00]
    #15 /opt/java/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
    #16 /opt/java/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7ca496d]
    #17 [0xb5c9366e]
    #18 [0xb5c8bd77]
    #19 [0xb5c89243]

  2. #2
    Join Date
    May 2006
    Location
    Cookeville, TN
    Beans
    2,751

    Re: Should this crash concern me?

    bump (sorry)
    (well, kind of sorry...not sorry enough to not do it)

  3. #3
    Join Date
    May 2006
    Location
    Cookeville, TN
    Beans
    2,751

    Re: Should this crash concern me?

    Well, can someone tell me if you think this is a problem with xcb-xlib or a problem with java at least?
    This statement is false

  4. #4

    Re: Should this crash concern me?

    Moved to Programming Talk.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  5. #5
    Join Date
    May 2006
    Location
    Cookeville, TN
    Beans
    2,751

    Re: Should this crash concern me?

    Thank you, I suppose this is a better place for it.
    This statement is false

  6. #6
    Join Date
    Nov 2006
    Location
    Israel
    Beans
    765
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Should this crash concern me?

    I don't know much about/of Java, but if your program is relatively simple, you may want to back it up and then start cutting off parts and running it, until you see that the error disappears. When it does, the last part you cut off probably was the problem.

    You may want to try a simple hello world program first, just to see if it happens in all programs. If it still "Locking assertion failure. Backtrace: ..."['s], the problem probably isn't in your code.
    Intel E6300 / MSI P4M890M / 2GB DDR2 677 / 80GB + 1TB SATA2 / GeForce 6200TC / DL DVD+-RW / Dell 24" U2410

  7. #7
    Join Date
    May 2006
    Location
    Cookeville, TN
    Beans
    2,751

    Re: Should this crash concern me?

    Hmm, I will try that. It's not really a very simple program, but I think I can cut parts out pretty easily. Also, I didn't mention this, but I don't get any kind of crash if I run the program in Windows or in OSX.

    Good idea, though, and I will give it a try in the morning. When we demonstrate the program we'll be using an OSX box so it's not mission-critical or anything, just something that is bothering me.
    This statement is false

  8. #8
    Join Date
    May 2006
    Location
    Cookeville, TN
    Beans
    2,751

    Re: Should this crash concern me?

    This turned out to not be a problem with my code, but with libmawt.so and being statically linked to Xinerama.
    http://bugs.sun.com/bugdatabase/view...bug_id=6532373

    I fixed it with a (probably not such a good idea) sed hack to remove the check (posting it here so if I need to undo it I'll be able to find what I did ).
    Code:
    sed -i 's/XINERAMA/FAKEEXTN/g'  usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so
    Last edited by jordanmthomas; November 26th, 2007 at 08:23 AM.
    This statement is false

  9. #9
    Join Date
    Nov 2007
    Beans
    6

    Re: [SOLVED] Should this crash concern me?

    Thanks mate, your a lifesaver.
    I had the same problem when running Netbeans after upgrading to hardy. The only difference was the location of my jre (as I have the sdk), but other than that it worked perfectly.

  10. #10
    Join Date
    May 2006
    Location
    Cookeville, TN
    Beans
    2,751

    Re: [SOLVED] Should this crash concern me?

    Woops, I actually posted the wrong thing. I've got the sdk too, and the bug report had two things. I just copied the wrong one I think (and I had to change some other things because the location was different for me too, I really just wanted to post what I did with sed so I'd remember).

    Anyway, glad it helped. This was really annoying.
    This statement is false

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •