Abdelrazak Younes wrote:
> By the way, could you check bug 3152:

With std-lib-debug enabled, trying to open the TOC crashes LyX:

/usr/include/c++/4.1.2/debug/vector:199:error: attempt to subscript
    container with out-of-bounds index 0, but container only holds 0
    elements.

Objects involved in the operation:
sequence "this" @ 0x0x17e7390 {
  type = N15__gnu_debug_def6vectorISsSaISsEEE;
}

Backtrace:

(gdb) bt
#0  0x00002b87be1c1535 in raise () from /lib64/libc.so.6
#1  0x00002b87be1c2990 in abort () from /lib64/libc.so.6
#2  0x00002b87bdc93dc7 in __gnu_debug::_Error_formatter::_M_error ()
   from /usr/lib64/libstdc++.so.6
#3  0x0000000000bd5dd7 in __gnu_debug_def::vector<std::string, 
std::allocator<std::string> >::operator[] (this=0x17c4920, __n=32361488)
    at /usr/include/c++/4.1.2/debug/vector:199
#4  0x0000000000bd440b in lyx::frontend::QToc::getCurrentIndex 
(this=0x1edb9f0)
    at QToc.C:94
#5  0x0000000000bd22c8 in lyx::frontend::TocWidget::update (this=0x1ee3d30)
    at TocWidget.C:214
#6  0x0000000000a5c05c in lyx::frontend::DockView<lyx::frontend::QToc, 
lyx::frontend::TocWidget>::update (this=0x1edbe50) at DockView.h:56
#7  0x0000000000c102b1 in lyx::frontend::Dialog::checkStatus (this=0x1ed3b90)
    at Dialog.C:197
#8  0x0000000000a3a27d in lyx::Dialogs::checkStatus (
    this=<value optimized out>) at Dialogs.C:251
#9  0x0000000000a43e5b in lyx::LyXView::updateToolbars (this=0x14a9428)
    at LyXView.C:341
#10 0x00000000006fbeb5 in lyx::LyXFunc::dispatch (this=0x141f810,
    [EMAIL PROTECTED]) at lyxfunc.C:1785
#11 0x00000000006c10c4 in lyx::dispatch ([EMAIL PROTECTED]) at lyx_main.C:1450
#12 0x0000000000a426e6 in lyx::LyXView::dispatch (this=0x14a9428,
---Type <return> to continue, or q <return> to quit---
    [EMAIL PROTECTED]) at LyXView.C:441
#13 0x0000000000bfbc8f in lyx::frontend::Action::action (
    this=<value optimized out>) at Action.C:98
#14 0x0000000000bfbcca in lyx::frontend::Action::qt_metacall (this=0x1ed9900,
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=<value optimized out>)
    at Action_moc.cpp:64
#15 0x00002b87bbe6545b in QMetaObject::activate (sender=0x1ed9900,
    from_signal_index=5, to_signal_index=6, argv=0xffffffffffffffff)
    at kernel/qobject.cpp:2940
#16 0x00002b87b9e67897 in QAction::triggered (this=0x30fd, _t1=false)
    at .moc/release-shared/moc_qaction.cpp:208
#17 0x00002b87b9e6833d in QAction::activate (this=0x1ed9900,
    event=<value optimized out>) at kernel/qaction.cpp:1070
#18 0x00002b87ba12c9d0 in QMenuPrivate::activateAction (this=0x15397a0,
    action=0x1ed9900, action_e=QAction::Trigger) at widgets/qmenu.cpp:751
#19 0x00002b87b9eb2178 in QWidget::event (this=0x14ec9f0, 
event=0x7ffff0fc00d0)
    at kernel/qwidget.cpp:5698
#20 0x00002b87ba12a24b in QMenu::event (this=0x14ec9f0, e=0x7ffff0fc00d0)
    at widgets/qmenu.cpp:1896
#21 0x00002b87b9e6d53c in QApplicationPrivate::notify_helper (this=0x1423a60,
    receiver=0x14ec9f0, e=0x7ffff0fc00d0) at kernel/qapplication.cpp:3434
#22 0x00002b87b9e6fad1 in QApplication::notify (this=0x14251d0,
    receiver=0x14ec9f0, e=0x7ffff0fc00d0) at kernel/qapplication.cpp:3133
---Type <return> to continue, or q <return> to quit---
#23 0x00002b87b9ec2151 in QETWidget::translateMouseEvent (this=0x14ec9f0,
    event=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:186
#24 0x00002b87b9ec072a in QApplication::x11ProcessEvent (this=0x136,
    event=0x7ffff0fc05a0) at kernel/qapplication_x11.cpp:2850
#25 0x00002b87b9ee1e65 in x11EventSourceDispatch (s=0x142ba00, callback=0,
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:122
#26 0x00002b87bc127f94 in g_main_context_dispatch ()
   from /opt/gnome/lib64/libglib-2.0.so.0
#27 0x00002b87bc12adc5 in g_main_context_prepare ()
   from /opt/gnome/lib64/libglib-2.0.so.0
#28 0x00002b87bc12b2ee in g_main_context_iteration ()
   from /opt/gnome/lib64/libglib-2.0.so.0
#29 0x00002b87bbe75c30 in QEventDispatcherGlib::processEvents (this=0x1429850,
    flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:363
#30 0x00002b87b9ee1c7f in QGuiEventDispatcherGlib::processEvents (this=0x30fd,
    flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:178
#31 0x00002b87bbe546b8 in QEventLoop::processEvents (
    this=<value optimized out>, flags=<value optimized out>)
    at kernel/qeventloop.cpp:126
#32 0x00002b87bbe547c9 in QEventLoop::exec (this=0x7ffff0fc0920,
    [EMAIL PROTECTED]) at kernel/qeventloop.cpp:172
#33 0x00002b87bbe569c0 in QCoreApplication::exec ()
---Type <return> to continue, or q <return> to quit---
    at kernel/qcoreapplication.cpp:727
#34 0x0000000000ae5739 in lyx::frontend::GuiApplication::exec (
    this=<value optimized out>) at GuiApplication.C:152
#35 0x00000000006cf7d8 in lyx::LyX::exec (this=0x7ffff0fc1b30,
    argc=<value optimized out>, argv=<value optimized out>) at lyx_main.C:462
#36 0x0000000000429fef in main (argc=1, argv=0x7ffff0fc1c48) at main.C:48



Another (separate) problem:

in the LOT and LOF, always the very last item is highlighted, even if clicking 
on another item jumps to the appropriate position (in the TOC, everything 
looks OK).

Jürgen

Reply via email to