Open LyX. Open a new window. Open a new window. Close the first. Close the second.

#0 0x0000003c41430ec5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x0000003c41432970 in abort () at abort.c:88
#2 0x0000003c474becb4 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib64/libstdc++.so.6 #3 0x0000003c474bce76 in QAbstractItemModel::sort () from /usr/lib64/libstdc++.so.6
#4  0x0000003c474bcea3 in std::terminate () from /usr/lib64/libstdc++.so.6
#5 0x0000003c474bd35f in __cxa_pure_virtual () from /usr/lib64/libstdc++.so.6 #6 0x0000000000640a7a in lyx::LyXFunc::setLyXView (this=0x1580510, lv=0x1bb7c98) at LyXFunc.cpp:212

So we're here:
void LyXFunc::setLyXView(LyXView * lv)
{
   if (lyx_view_ && lyx_view_->view() && lyx_view_ != lv)
       // save current selection to the selection buffer to allow
       // middle-button paste in another window
       cap::saveSelection(lyx_view_->view()->cursor());
   lyx_view_ = lv;
}
on the first line. Could the virtual method in question be the view() method from LyXView.h? That'd mean lyx_view_ here was being treated as a LyXView rather than a GuiView.

rh

#7 0x0000000000ad7886 in lyx::frontend::GuiView::closeEvent (this=0x1bb7c70, close_event=0x7fffc29389b0) at GuiView.cpp:520
#8  0x0000003d91dcf271 in QWidget::event () from /usr/lib64/libQtGui.so.4
#9 0x0000003d9206662b in QMainWindow::event () from /usr/lib64/libQtGui.so.4 #10 0x0000000000ad2b2c in lyx::frontend::GuiView::event (this=0x1bb7c70, e=0x5b09) at GuiView.cpp:820 #11 0x0000003d91d927ac in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4 #12 0x0000003d91d98590 in QApplication::notify () from /usr/lib64/libQtGui.so.4 #13 0x0000000000aa6a64 in lyx::frontend::GuiApplication::notify (this=0x5b09, receiver=0x5b09, event=0x6) at GuiApplication.cpp:1202 #14 0x00000038e98e3700 in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4 #15 0x0000003d91dd06c1 in QWidgetPrivate::close_helper () from /usr/lib64/libQtGui.so.4 #16 0x0000003d91dd3c02 in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4 #17 0x0000003d91dd4a99 in QApplication::x11ClientMessage () from /usr/lib64/libQtGui.so.4 #18 0x0000003d91ddf0e2 in QApplication::x11ProcessEvent () from /usr/lib64/libQtGui.so.4 #19 0x0000003d91e007c8 in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4 #20 0x00000038e902ef53 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0 #21 0x00000038e903224d in QAbstractItemModel::sort () from /lib64/libglib-2.0.so.0 #22 0x00000038e903277e in g_main_context_iteration () from /lib64/libglib-2.0.so.0 #23 0x00000038e9901910 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4 #24 0x0000003d91e005cf in QAbstractItemModel::sort () from /usr/lib64/libQtGui.so.4 #25 0x00000038e98e2da8 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#26 0x00000038e98e2ebd in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#27 0x00000038e98e4e71 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4 #28 0x0000000000aa23e9 in lyx::frontend::GuiApplication::exec (this=<value optimized out>) at GuiApplication.cpp:1032 #29 0x0000000000629204 in lyx::LyX::exec (this=0x7fffc293ab20, [EMAIL PROTECTED], argv=<value optimized out>) at LyX.cpp:343
#30 0x00000000004352a8 in main (argc=1, argv=0x7fffc293ac28) at main.cpp:46
^done

Reply via email to