Re: LyX doesn't start: Assertion `c->xlib.lock' failed

2008-06-26 Thread John Coppens
On Thu, 26 Jun 2008 23:38:56 +
"Nigel Pegram" <[EMAIL PROTECTED]> wrote:

> The debug output doesn't mean much to me, but I've often found it
> informative to start programs from a terminal and look at the output
> there when having problems with X programs.
> 
> HTH
> Nigel
> 
> On 25/06/2008, John Coppens <[EMAIL PROTECTED]> wrote:
> > Hi guys,
> >
> > After updating quite a lot of libraries, I can't start LyX anymore. I
> > didn't update Qt - still 4.3.3, and lyx --version still works:

Hi Nigel.

This is the output of starting LyX from a terminal - it does look
somewhat different:

Locking assertion failure.  Backtrace:
#0 /usr/X11/lib/libxcb-xlib.so.0 [0xb6d8c740]
#1 /usr/X11/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x2d) [0xb6d8c86d]
#2 /usr/X11/lib/libX11.so.6 [0xb6f63cc2]
#3 /usr/X11/lib/libXfixes.so.3(XFixesQueryVersion+0x86) [0xb75b25a6]
#4 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_Z7qt_initP19QApplicationPrivateiP9_XDisplaymm+0x1dda) [0xb780b77a]
#5 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_ZN19QApplicationPrivate9constructEP9_XDisplaymm+0x4f) [0xb77afe2f]
#6 /usr/lib/qt-4.3.3/lib/libQtGui.so.4(_ZN12QApplicationC2ERiPPci+0x64)
#[0xb77b0be4] 7 lyx [0x8420982] 8 lyx [0x84216f5] 9 lyx [0x818964c]
#10 lyx(_ZNK17QAbstractItemView14sizeHintForRowEi+0x411) [0x8067919]
#11 /lib/libc.so.6(__libc_start_main+0xe0) [0xb6dc8390]
#12 lyx(_ZN18QStandardItemModel13insertColumnsEiiRK11QModelIndex+0x99)
#[0x8067801]
lyx: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted


John


Re: LyX doesn't start: Assertion `c->xlib.lock' failed

2008-06-26 Thread Nigel Pegram
The debug output doesn't mean much to me, but I've often found it
informative to start programs from a terminal and look at the output
there when having problems with X programs.

HTH
Nigel

On 25/06/2008, John Coppens <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> After updating quite a lot of libraries, I can't start LyX anymore. I
> didn't update Qt - still 4.3.3, and lyx --version still works:
>
> LyX 1.5.3 (Mon, Dec 17, 2007)
> Built on Dec 31 2007, 14:30:47
> Configuration
>   Host type:i686-pc-linux-gnu
>   Special build flags:  pch  use-aspell use-ispell
>   C   Compiler: gcc
>   C   Compiler LyX flags:
>   C   Compiler flags: -I/usr/X11R6/include -O2
>   C++ Compiler: g++ (3.4.6)
>   C++ Compiler LyX flags:
>   C++ Compiler flags: -I/usr/X11R6/include -O2
>   Linker flags:
>   Linker user flags:
>   Qt 4 Frontend:
>   Qt 4 version:   4.3.3
>   Packaging:posix
>   LyX binary dir:   /usr/local/bin
>   LyX files dir:/usr/local/share/lyx
>
> I did find a similar bug:
>
> http://osdir.com/ml/freedesktop.xcb/2006-10/msg9.html
>
> But I'm not enough of a programmer to judge if this is the problem - I
> don't expect LyX to be needing Mesa, but maybe Qt does?
>
> Running LyX in gdb: first it encounters some problem and gdb is stopped.
> continuing with fg, advanced till the problem:
>
> Program received signal SIGTTOU, Stopped (tty output).
> [Switching to Thread 0xb6e3d8e0 (LWP 4479)]
> 0xb6f417de in __write_nocancel () from /lib/libc.so.6
> (gdb) bt
> #0  0xb6f417de in __write_nocancel () from /lib/libc.so.6
> #1  0xb6ee03b4 in _IO_new_file_write () from /lib/libc.so.6
> #2  0xb6ee0055 in new_do_write () from /lib/libc.so.6
> #3  0xb6ee0319 in _IO_new_file_xsputn () from /lib/libc.so.6
> #4  0xb6ed667f in fwrite () from /lib/libc.so.6
> #5  0xb6e55767 in xcb_xlib_printbt () at xcb_xlib.c:48
> #6  0xb6e5586d in xcb_xlib_unlock (c=0x8804f10) at xcb_xlib.c:82
> #7  0xb702ccc2 in _XCBUnlockDisplay (dpy=0x8807778) at xcb_lock.c:41
> #8  0xb767b5a6 in XFixesQueryVersion () from /usr/X11/lib/libXfixes.so.3
> #9  0xb78d477a in qt_init (priv=0x87f75c0, display=0x8807778,
> visual=4294966784, colormap=4294966784) at
> kernel/qapplication_x11.cpp:1627
> #10 0xb7878e2f in QApplicationPrivate::construct (this=0x87f75c0,
> #dpy=0x0,
> visual=0, cmap=0) at kernel/qapplication.cpp:705
> #11 0xb7879be4 in QApplication (this=0x87faad8, [EMAIL PROTECTED],
> argv=0xbfa94a24, _internal=-512) at kernel/qapplication.cpp:619
> #12 0x08420982 in lyx::frontend::GuiApplication::GuiApplication ()
> #13 0x084216f5 in lyx::createApplication ()
> #14 0x0818964c in lyx::LyX::exec ()
> #15 0x08067919 in main ()
>
> Can anyone suggest how to proceed?
>
> John
>
> System is mainly Slackware Linux 12.1...
>


LyX doesn't start: Assertion `c->xlib.lock' failed

2008-06-25 Thread John Coppens
Hi guys,

After updating quite a lot of libraries, I can't start LyX anymore. I
didn't update Qt - still 4.3.3, and lyx --version still works:

LyX 1.5.3 (Mon, Dec 17, 2007)
Built on Dec 31 2007, 14:30:47
Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:  pch  use-aspell use-ispell
  C   Compiler: gcc 
  C   Compiler LyX flags:
  C   Compiler flags: -I/usr/X11R6/include -O2
  C++ Compiler: g++ (3.4.6)
  C++ Compiler LyX flags:
  C++ Compiler flags: -I/usr/X11R6/include -O2
  Linker flags: 
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.3.3
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx

I did find a similar bug:

http://osdir.com/ml/freedesktop.xcb/2006-10/msg9.html

But I'm not enough of a programmer to judge if this is the problem - I
don't expect LyX to be needing Mesa, but maybe Qt does?

Running LyX in gdb: first it encounters some problem and gdb is stopped.
continuing with fg, advanced till the problem:

Program received signal SIGTTOU, Stopped (tty output).
[Switching to Thread 0xb6e3d8e0 (LWP 4479)]
0xb6f417de in __write_nocancel () from /lib/libc.so.6
(gdb) bt
#0  0xb6f417de in __write_nocancel () from /lib/libc.so.6
#1  0xb6ee03b4 in _IO_new_file_write () from /lib/libc.so.6
#2  0xb6ee0055 in new_do_write () from /lib/libc.so.6
#3  0xb6ee0319 in _IO_new_file_xsputn () from /lib/libc.so.6
#4  0xb6ed667f in fwrite () from /lib/libc.so.6
#5  0xb6e55767 in xcb_xlib_printbt () at xcb_xlib.c:48
#6  0xb6e5586d in xcb_xlib_unlock (c=0x8804f10) at xcb_xlib.c:82
#7  0xb702ccc2 in _XCBUnlockDisplay (dpy=0x8807778) at xcb_lock.c:41
#8  0xb767b5a6 in XFixesQueryVersion () from /usr/X11/lib/libXfixes.so.3
#9  0xb78d477a in qt_init (priv=0x87f75c0, display=0x8807778, 
visual=4294966784, colormap=4294966784) at
kernel/qapplication_x11.cpp:1627
#10 0xb7878e2f in QApplicationPrivate::construct (this=0x87f75c0,
#dpy=0x0, 
visual=0, cmap=0) at kernel/qapplication.cpp:705
#11 0xb7879be4 in QApplication (this=0x87faad8, [EMAIL PROTECTED], 
argv=0xbfa94a24, _internal=-512) at kernel/qapplication.cpp:619
#12 0x08420982 in lyx::frontend::GuiApplication::GuiApplication ()
#13 0x084216f5 in lyx::createApplication ()
#14 0x0818964c in lyx::LyX::exec ()
#15 0x08067919 in main ()

Can anyone suggest how to proceed?

John

System is mainly Slackware Linux 12.1...