Jürgen Spitzmüller wrote:
> Peter Kümmel wrote
>> At which line does it crash now?
> 
> 116:
> 
>       QModelIndexList indices = 
>               form_->tocModel()->match(form_->tocModel()->index(0,0),
>                                       Qt::DisplayRole, "*", -1, 
>                                       Qt::MatchWildcard|Qt::MatchRecursive); 
> // <- here
> 

Ah, not while looping over the index'.

Seems one of the pointers is not valid. If this is the case
the bug is at a other place.

> Backtrace:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 47392994619488 (LWP 8671)]
> 0x0000000000baccb6 in lyx::frontend::QTocDialog::setTreeDepth (this=0x182e3e0,
>     depth=<value optimized out>) at QTocDialog.C:116
> 116                                             Qt::MatchWildcard|
> Qt::MatchRecursive);
> (gdb) bt
> #0  0x0000000000baccb6 in lyx::frontend::QTocDialog::setTreeDepth (
>     this=0x182e3e0, depth=<value optimized out>) at QTocDialog.C:116
> #1  0x0000000000bacf35 in lyx::frontend::QTocDialog::on_depthSL_valueChanged (
>     this=0x12286b8, depth=10) at QTocDialog.C:101
> #2  0x0000000000badf20 in lyx::frontend::QTocDialog::qt_metacall (
>     this=0x182e3e0, _c=QMetaObject::InvokeMetaMethod,
>     _id=<value optimized out>, _a=0x7fff24ca8000) at QTocDialog_moc.cpp:86
> #3  0x00002b1a86e127c5 in QMetaObject::activate (sender=0x18297a0,
>     from_signal_index=27, to_signal_index=27, argv=0x7fff24ca8000)
>     at kernel/qobject.cpp:2940
> #4  0x00002b1a86e12c2a in QMetaObject::activate (sender=0x18297a0,
>     m=0x2b1a86a959a0, local_signal_index=0, argv=0x7fff24ca8000)
>     at kernel/qobject.cpp:2983
> #5  0x00002b1a866b5108 in QAbstractSlider::valueChanged (this=0x18297a0, 
> _t1=1)
>     at .moc/debug-shared/moc_qabstractslider.cpp:160
> #6  0x00002b1a864a2cd8 in QAbstractSlider::setValue (this=0x18297a0, value=1)
>     at widgets/qabstractslider.cpp:509
> #7  0x00002b1a864a2e27 in QAbstractSlider::triggerAction (this=0x18297a0,
>     action=QAbstractSlider::SliderMove) at widgets/qabstractslider.cpp:593
> #8  0x00002b1a864a3362 in QAbstractSlider::setSliderPosition (this=0x18297a0,
>     position=1) at widgets/qabstractslider.cpp:466
> #9  0x00002b1a8653498f in QSlider::mouseMoveEvent (this=0x18297a0,
>     ev=0x7fff24ca8a00) at widgets/qslider.cpp:471
> ---Type <return> to continue, or q <return> to quit---
> #10 0x00002b1a861de48a in QWidget::event (this=0x18297a0, 
> event=0x7fff24ca8a00)
>     at kernel/qwidget.cpp:5683
> #11 0x00002b1a86534638 in QSlider::event (this=0x18297a0, 
> event=0x7fff24ca8a00)
>     at widgets/qslider.cpp:391
> #12 0x00002b1a86189e45 in QApplicationPrivate::notify_helper (this=0x12a9bb0,
>     receiver=0x18297a0, e=0x7fff24ca8a00) at kernel/qapplication.cpp:3434
> #13 0x00002b1a8618aab8 in QApplication::notify (this=0x12ab3d0,
>     receiver=0x18297a0, e=0x7fff24ca8a00) at kernel/qapplication.cpp:3133
> #14 0x00002b1a861948c4 in QCoreApplication::sendSpontaneousEvent (
>     receiver=0x18297a0, event=0x7fff24ca8a00)
>     at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:186
> #15 0x00002b1a861fac69 in QETWidget::translateMouseEvent (this=0x18297a0,
>     event=0x7fff24ca92a0) at kernel/qapplication_x11.cpp:3666
> #16 0x00002b1a861f86f2 in QApplication::x11ProcessEvent (this=0x12ab3d0,
>     event=0x7fff24ca92a0) at kernel/qapplication_x11.cpp:2764
> #17 0x00002b1a86226855 in x11EventSourceDispatch (s=0x12b1af0, callback=0,
>     user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:122
> #18 0x00002b1a870fcf94 in g_main_context_dispatch ()
>    from /opt/gnome/lib64/libglib-2.0.so.0
> #19 0x00002b1a870ffdc5 in g_main_context_prepare ()
>    from /opt/gnome/lib64/libglib-2.0.so.0
> #20 0x00002b1a871002ee in g_main_context_iteration ()
>    from /opt/gnome/lib64/libglib-2.0.so.0
> ---Type <return> to continue, or q <return> to quit---
> #21 0x00002b1a86e2b198 in QEventDispatcherGlib::processEvents (this=0x12af8e0,
>     [EMAIL PROTECTED]) at kernel/qeventdispatcher_glib.cpp:363
> #22 0x00002b1a862262db in QGuiEventDispatcherGlib::processEvents (
>     this=0x12af8e0, [EMAIL PROTECTED])
>     at kernel/qguieventdispatcher_glib.cpp:178
> #23 0x00002b1a86dfcf11 in QEventLoop::processEvents (this=0x7fff24ca9600,
>     [EMAIL PROTECTED]) at kernel/qeventloop.cpp:126
> #24 0x00002b1a86dfd067 in QEventLoop::exec (this=0x7fff24ca9600,
>     [EMAIL PROTECTED]) at kernel/qeventloop.cpp:172
> #25 0x00002b1a86e008b5 in QCoreApplication::exec ()
>     at kernel/qcoreapplication.cpp:727
> #26 0x00002b1a86189a1c in QApplication::exec () at 
> kernel/qapplication.cpp:2927
> #27 0x0000000000ab2a09 in lyx::frontend::GuiApplication::exec (
>     this=<value optimized out>) at GuiApplication.C:155
> #28 0x000000000069fea8 in lyx::LyX::exec (this=0x7fff24caa820,
>     argc=<value optimized out>, argv=<value optimized out>) at lyx_main.C:401
> #29 0x0000000000428ddf in main (argc=1, argv=0x7fff24caa938) at main.C:48
> 
> 
> Jürgen
> 


-- 
Peter Kümmel

Reply via email to