John Levon <[EMAIL PROTECTED]> writes:

| On Fri, Sep 06, 2002 at 01:12:59AM +0200, Lars Gullik Bjønnes wrote:
| 
| > John Levon <[EMAIL PROTECTED]> writes:
| > 
| > | I was talking crap, the code for handling menu activations is in
| > | QtView.C#65
| > | 
| > | So Lars, you need to see if this slot (activated(int)) is getting
| > | invoked. If it's not - no idea ...
| > 
| > Ok, where do I check that?
| 
| didn't I just tell you :)
| 
| Add a printk or set your debugger to QtView.C:126
| 
| (check you don't get console msgs from Qt too)

Exactly _no_ output from anyting..., so activated is never invoked.

But I managed to get a crash from:
        a) open the File menu
        b) move the mouse over the other menues so that they pop up
        c) just when I move to Navigate lyx crashes with this
        backtrace:

 #0  BufferParams::getLyXTextClass (this=0x10) at ../../src/bufferparams.C:239
#1  0x0809f854 in {anonymous}::expandToc (tomenu=@0xbfffe750, buf=0x0)
    at ../../src/MenuBackend.C:483
#2  0x080a0006 in MenuBackend::expand (this=0x8404a40, frommenu=@0xbfffe730,
    tomenu=@0xbfffe750, buf=0x0) at ../../src/MenuBackend.C:550
#3  0x082bee6a in QLPopupMenu::showing (this=0x84a05e8)
    at ../../../../src/frontends/qt2/Menubar_pimpl.h:45
#4  0x082daa1e in QLPopupMenu::qt_invoke (this=0x84a05e8, _id=52,
    _o=0xbfffe7f0) at QLPopupMenu_moc.C:81
#5  0x4024bec7 in QObject::activate_signal ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#6  0x4024be28 in QObject::activate_signal ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#7  0x4055bf28 in QPopupMenu::aboutToShow ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#8  0x4033eb08 in QPopupMenu::popup () from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#9  0x4033943c in QMenuBar::openActPopup ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#10 0x4033b3c8 in QMenuBar::setActiveItem ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#11 0x4033ab1e in QMenuBar::mouseMoveEvent ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#12 0x4027bfc2 in QWidget::event () from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#13 0x40339072 in QMenuBar::tryMouseEvent ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3
#14 0x4033f56a in QPopupMenu::tryMenuBar ()
   from /usr/lib/qt-3.0.3/lib/libqt-mt.so.3

Seems that QLPopupMenu (#3) is calling something it shouldn't without
a valid buffer.

-- 
        Lgb


Reply via email to