Hi, I get the crash in majority of cases when using the following recipy: 1. launch lyx & open introduction manual 2. open new window via file -> new window 3. view->hidden->introduction 4. kaboom
/usr/include/c++/10/debug/vector:434: In function: std::__debug::vector<_Tp, _Allocator>::const_reference std::__debug::vector<_Tp, _Allocator>::operator[](std::__debug::vector<_Tp, _Allocator>::size_type) const [with _Tp = lyx::TocItem; _Allocator = std::allocator<lyx::TocItem>; std::__debug::vector<_Tp, _Allocator>::const_reference = const lyx::TocItem&; std::__debug::vector<_Tp, _Allocator>::size_type = long unsigned int] Error: attempt to subscript container with out-of-bounds index 0, but container only holds 0 elements. Objects involved in the operation: sequence "this" @ 0x0x555557f3b0d0 { type = std::__debug::vector<lyx::TocItem, std::allocator<lyx::TocItem> >; } Thread 1 "lyx" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff6aa4537 in __GI_abort () at abort.c:79 #2 0x00007ffff694eeb1 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x0000555556100051 in lyx::frontend::TocModel::tocItem(QModelIndex const&) const () #4 0x0000555556102cbc in lyx::frontend::TocModels::currentItem(QString const&, QModelIndex const&) const () #5 0x00005555563080c4 in lyx::frontend::TocWidget::filterContents() () #6 0x000055555630856f in lyx::frontend::TocWidget::finishUpdateView() () #7 0x000055555630947b in lyx::frontend::TocWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () bisect leads to: commit 4d7f4762a1af2bbe4d2051bd86e45c35361f0cfc Author: Juergen Spitzmueller <sp...@lyx.org> Date: Sun Mar 15 10:46:35 2020 +0100 Outliner: Add filter combo for non-output items Addresses #11442, #10786 Looking at the backtrace and commit it seems that + TocItem const & item = + gui_view_.tocModels().currentItem(current_type_, index); triggers the crash. Juergen, can you reproduce? Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel