Hi,
ATM I get often crashes.

Lyx editing in two windows (but different files).

I try to position the cursor to the start of document.
The first element there is floating image.

The gdb-backtrace gives:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000972a2a in std::vector<lyx::CursorSlice, 
std::allocator<lyx::CursorSlice> >::operator[] (
    this=0x690000001e, __n=0) at /usr/include/c++/4.6/bits/stl_vector.h:711
711           { return *(this->_M_impl._M_start + __n); }
(gdb) bt
#0  0x0000000000972a2a in std::vector<lyx::CursorSlice, 
std::allocator<lyx::CursorSlice> >::operator[] (
    this=0x690000001e, __n=0) at /usr/include/c++/4.6/bits/stl_vector.h:711
#1  0x000000000096db0b in lyx::DocIterator::operator[] (this=0x6900000016, i=0)
    at /usr/src/lyx/lyx-git/src/DocIterator.h:60
#2  0x0000000000a4909d in lyx::Toc::item (this=0x43936f8, dit=...) at 
/usr/src/lyx/lyx-git/src/TocBackend.cpp:211
#3  0x0000000000ee4d6a in lyx::frontend::TocModel::modelIndex (this=0x3ff2d10, 
dit=...)
    at /usr/src/lyx/lyx-git/src/frontends/qt4/TocModel.cpp:134
#4  0x0000000000ee61ca in lyx::frontend::TocModels::currentIndex 
(this=0x1d982f0, type=...)
    at /usr/src/lyx/lyx-git/src/frontends/qt4/TocModel.cpp:304
#5  0x0000000000f43f26 in lyx::frontend::TocWidget::updateViewForce 
(this=0x2131650)
    at /usr/src/lyx/lyx-git/src/frontends/qt4/TocWidget.cpp:441
#6  0x0000000000f43b02 in lyx::frontend::TocWidget::updateView (this=0x2131650)
    at /usr/src/lyx/lyx-git/src/frontends/qt4/TocWidget.cpp:393
#7  0x0000000000f10f06 in lyx::frontend::GuiToc::updateView (this=0x212f980)
    at /usr/src/lyx/lyx-git/src/frontends/qt4/GuiToc.cpp:52
...

(gdb) up
#1  0x000000000096db0b in lyx::DocIterator::operator[] (this=0x6900000016, i=0)
    at /usr/src/lyx/lyx-git/src/DocIterator.h:60
60              CursorSlice const & operator[](size_t i) const { return 
slices_[i]; }
(gdb) up
#2  0x0000000000a4909d in lyx::Toc::item (this=0x43936f8, dit=...) at 
/usr/src/lyx/lyx-git/src/TocBackend.cpp:211
211                     if (&it->dit_[0].inset() != &dit_text[0].inset())

Interesting may be also this:

(gdb) p dit_text[0]
$1 = (const lyx::CursorSlice &) @0x4395580: {
  inset_ = 0x2646fb0, 
  idx_ = 0, 
  pit_ = 9, 
  pos_ = 0
}
(gdb) p it->dit_[0]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000972a2a in std::vector<lyx::CursorSlice, 
std::allocator<lyx::CursorSlice> >::operator[] (
    this=0x690000001e, __n=0) at /usr/include/c++/4.6/bits/stl_vector.h:711
711           { return *(this->_M_impl._M_start + __n); }
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(lyx::DocIterator::operator[](unsigned long) const) will be abandoned.
When the function is done executing, GDB will silently stop.
...


        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to