Can anyone else reproduce?

1. Open Additional.lyx in LyX
2. Go to a URL inset (e.g. search for "www.literateprogramming.com")
3. Highlight the inside of the inset (e.g. ctrl-a).
4. Change that URL externally (e.g. add a letter somewhere)
5. Click "Reload" in LyX's blue banner notification.
6. Click "Reload" in the dialog that pops up.

I get a crash.

I can reproduce on 2.3.x and master. I can't reproduce in splash.lyx

I can sometimes reproduce without any particular cursor placement or
highlighting, by just loading the file, making a trivial edit (and even
undoing that edit after saving, just to trigger the reload warning). So
I'm not sure that steps 2, 3, and 4 are so critical to the recipe above.
But the above recipe seems to crash more consistently for me.

bt is attached. Note that it was harder for me to reproduce with gdb.

Scott
(gdb) bt
#0  0x00007ffff5859610 in std::__cxx11::basic_string<wchar_t, 
std::char_traits<wchar_t>, std::allocator<wchar_t> >::size() const ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x0000000000dbb06c in lyx::Paragraph::size (this=0x37dfd90) at 
/home/scott/lyxbuilds/master/repo/src/Paragraph.cpp:3825
#2  0x0000000000ebdcad in lyx::lookupChangeType (dit=..., outer=true) at 
/home/scott/lyxbuilds/master/repo/src/BufferView.cpp:1027
#3  0x0000000000ebdf38 in lyx::BufferView::getStatus (this=0x354b110, cmd=..., 
flag=...)
    at /home/scott/lyxbuilds/master/repo/src/BufferView.cpp:1054
#4  0x00000000011ee9a1 in lyx::frontend::GuiApplication::getStatus 
(this=0x202a410, cmd=...)
    at 
/home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiApplication.cpp:1181
#5  0x0000000000f32a81 in lyx::getStatus (action=...) at 
/home/scott/lyxbuilds/master/repo/src/LyX.cpp:1455
#6  0x00000000013e1857 in lyx::frontend::(anonymous 
namespace)::MenuDefinition::addWithStatusCheck (this=0x31e8990, i=...)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/Menus.cpp:407
#7  0x00000000013f40b1 in lyx::frontend::Menus::Impl::expand (this=0x20bde20, 
frommenu=..., tomenu=..., bv=0x0)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/Menus.cpp:2312
#8  0x00000000013f3fe3 in lyx::frontend::Menus::Impl::expand (this=0x20bde20, 
frommenu=..., tomenu=..., bv=0x0)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/Menus.cpp:2299
#9  0x00000000013f3fe3 in lyx::frontend::Menus::Impl::expand (this=0x20bde20, 
frommenu=..., tomenu=..., bv=0x0)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/Menus.cpp:2299
#10 0x00000000013f4daa in lyx::frontend::Menus::searchMenu (this=0x206f6d0, 
func=..., names=...)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/Menus.cpp:2434
#11 0x00000000011f961e in lyx::frontend::GuiApplication::searchMenu 
(this=0x202a410, func=..., names=...)
    at 
/home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiApplication.cpp:2918
#12 0x000000000113d241 in lyx::InsetInfo::updateInfo (this=0x343c3f0) at 
/home/scott/lyxbuilds/master/repo/src/insets/InsetInfo.cpp:379
#13 0x000000000113b6fc in lyx::InsetInfo::read (this=0x343c3f0, lex=...) at 
/home/scott/lyxbuilds/master/repo/src/insets/InsetInfo.cpp:150
#14 0x0000000000ed7db0 in lyx::readInset (lex=..., buf=0x2c38960) at 
/home/scott/lyxbuilds/master/repo/src/factory.cpp:685
#15 0x0000000000d549b8 in lyx::Text::readParToken (this=0x2d95728, par=..., 
lex=..., token="\\begin_inset", font=..., change=..., errorList=...)
    at /home/scott/lyxbuilds/master/repo/src/Text.cpp:414
#16 0x0000000000d569b5 in lyx::Text::readParagraph (this=0x2d95728, par=..., 
lex=..., errorList=...)
    at /home/scott/lyxbuilds/master/repo/src/Text.cpp:568
#17 0x0000000000d5cad3 in lyx::Text::read (this=0x2d95728, lex=..., 
errorList=..., insetPtr=0x2d95710)
    at /home/scott/lyxbuilds/master/repo/src/Text.cpp:1867
#18 0x0000000000e35caa in lyx::Buffer::readDocument (this=0x2c38960, lex=...) 
at /home/scott/lyxbuilds/master/repo/src/Buffer.cpp:1068
#19 0x0000000000e36db8 in lyx::Buffer::readFile (this=0x2c38960, fn=...) at 
/home/scott/lyxbuilds/master/repo/src/Buffer.cpp:1192
#20 0x0000000000e50d2d in lyx::Buffer::loadThisLyXFile (this=0x2c38960, fn=...) 
at /home/scott/lyxbuilds/master/repo/src/Buffer.cpp:4665
#21 0x0000000000e50d07 in lyx::Buffer::loadLyXFile (this=0x2c38960) at 
/home/scott/lyxbuilds/master/repo/src/Buffer.cpp:4659
#22 0x0000000000e53391 in lyx::Buffer::reload (this=0x2c38960) at 
/home/scott/lyxbuilds/master/repo/src/Buffer.cpp:5169
#23 0x000000000121dca4 in lyx::frontend::GuiView::reloadBuffer (this=0x2464310, 
buf=...)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiView.cpp:3176
#24 0x0000000001222f87 in lyx::frontend::GuiView::dispatch (this=0x2464310, 
cmd=..., dr=...)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiView.cpp:3860
#25 0x00000000011f420d in lyx::frontend::GuiApplication::dispatch 
(this=0x202a410, cmd=..., dr=...)
    at 
/home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiApplication.cpp:2071
---Type <return> to continue, or q <return> to quit---
#26 0x00000000011effe9 in lyx::frontend::GuiApplication::dispatch 
(this=0x202a410, cmd=...)
    at 
/home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiApplication.cpp:1405
#27 0x0000000000f32ae9 in lyx::dispatch (action=...) at 
/home/scott/lyxbuilds/master/repo/src/LyX.cpp:1462
#28 0x00000000014338dd in lyx::frontend::GuiWorkAreaContainer::dispatch 
(this=0x35660f0, f=...)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiWorkArea.cpp:2164
#29 0x000000000143396f in lyx::frontend::GuiWorkAreaContainer::reload 
(this=0x35660f0)
    at /home/scott/lyxbuilds/master/repo/src/frontends/qt4/GuiWorkArea.cpp:2170
#30 0x000000000143487d in 
lyx::frontend::GuiWorkAreaContainer::qt_static_metacall (_o=0x35660f0, 
_c=QMetaObject::InvokeMetaMethod, _id=1, 
    _a=0x7fffffffc130) at 
/home/scott/lyxbuilds/master/CMakeBuild/src/frontends/qt4/moc_GuiWorkArea.cpp:657
#31 0x00007ffff6019012 in QMetaObject::activate (sender=0x3559090, 
signalOffset=7, local_signal_index=2, argv=0x7fffffffc130)
    at /usr/src/qt/qt5/qtbase/src/corelib/kernel/qobject.cpp:3730
#32 0x00007ffff60187f8 in QMetaObject::activate (sender=0x3559090, 
m=0x7ffff7306ee0 <QAbstractButton::staticMetaObject>, local_signal_index=2, 
    argv=0x7fffffffc130) at 
/usr/src/qt/qt5/qtbase/src/corelib/kernel/qobject.cpp:3595
#33 0x00007ffff6d6915d in QAbstractButton::clicked (this=0x3559090, _t1=false) 
at .moc/moc_qabstractbutton.cpp:310
#34 0x00007ffff6d66836 in QAbstractButtonPrivate::emitClicked (this=0x3586fe0) 
at /usr/src/qt/qt5/qtbase/src/widgets/widgets/qabstractbutton.cpp:404
#35 0x00007ffff6d667a3 in QAbstractButtonPrivate::click (this=0x3586fe0) at 
/usr/src/qt/qt5/qtbase/src/widgets/widgets/qabstractbutton.cpp:397
#36 0x00007ffff6d67e81 in QAbstractButton::mouseReleaseEvent (this=0x3559090, 
e=0x7fffffffcbb0)
    at /usr/src/qt/qt5/qtbase/src/widgets/widgets/qabstractbutton.cpp:1002
#37 0x00007ffff6c82bd7 in QWidget::event (this=0x3559090, event=0x7fffffffcbb0) 
at /usr/src/qt/qt5/qtbase/src/widgets/kernel/qwidget.cpp:8748
#38 0x00007ffff6d67c8e in QAbstractButton::event (this=0x3559090, 
e=0x7fffffffcbb0)
    at /usr/src/qt/qt5/qtbase/src/widgets/widgets/qabstractbutton.cpp:959
#39 0x00007ffff6e3b8ee in QPushButton::event (this=0x3559090, e=0x7fffffffcbb0) 
at /usr/src/qt/qt5/qtbase/src/widgets/widgets/qpushbutton.cpp:673
#40 0x00007ffff6c2b63a in QApplicationPrivate::notify_helper (this=0x2029f70, 
receiver=0x3559090, e=0x7fffffffcbb0)
    at /usr/src/qt/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3804
#41 0x00007ffff6c290cf in QApplication::notify (this=0x202a410, 
receiver=0x3559090, e=0x7fffffffcbb0)
    at /usr/src/qt/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3277
#42 0x00000000011f83f6 in lyx::frontend::GuiApplication::notify 
(this=0x202a410, receiver=0x3559090, event=0x7fffffffcbb0)

Attachment: signature.asc
Description: PGP signature

Reply via email to