On Wed, Sep 28, 2016 at 06:30:19PM +0200, Enrico Forestieri wrote: > On Wed, Sep 28, 2016 at 05:20:29PM +0200, Enrico Forestieri wrote: > > Steps to reproduce as follows. > > > > Make sure that the "Code Preview Pane" is closed and then: > > 1) open the attached document > > 2) open the "Code Preview Pane" > > 3) close the "Code Preview Pane" > > 4) close the document (not lyx) > > 5) go to 1) > > > > It will crash at step 2) on the second iteration. > > Does not occur on 2.2.x. > > Bisect points at ca586742.
Backtrace: #0 0x00000000004ab2bc in lyx::Buffer::params (this=0x0) at ../../src/Buffer.cpp:686 #1 0x0000000000991eb4 in lyx::frontend::ViewSourceWidget::currentFormatName ( this=0x1c2a800) at ../../../../src/frontends/qt4/GuiViewSource.cpp:317 #2 0x000000000099313c in lyx::frontend::GuiViewSource::updateTitle ( this=0x1c1ec90) at ../../../../src/frontends/qt4/GuiViewSource.cpp:457 #3 0x00000000009930fc in lyx::frontend::GuiViewSource::initialiseParams ( this=0x1c1ec90) at ../../../../src/frontends/qt4/GuiViewSource.cpp:450 #4 0x00000000009dbe7e in lyx::frontend::Dialog::showData (this=0x1c1ecc0, data="") at ../../../../src/frontends/qt4/Dialog.cpp:138 #5 0x000000000097cf73 in lyx::frontend::GuiView::doShowDialog ( this=0x199ab80, qname=..., qdata=..., inset=0x0) at ../../../../src/frontends/qt4/GuiView.cpp:4316 #6 0x000000000097de1c in lyx::frontend::GuiView::qt_static_metacall ( _o=0x199ab80, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0x7fffffffadb0) at ./moc_GuiView.cpp:161 #7 0x00007ffff6429c46 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/local/qt/5.7.0/lib/libQt5Core.so.5 #8 0x000000000097e0f5 in lyx::frontend::GuiView::triggerShowDialog ( this=0x199ab80, _t1=..., _t2=..., _t3=0x0) at ./moc_GuiView.cpp:237 #9 0x000000000097ce57 in lyx::frontend::GuiView::showDialog (this=0x199ab80, name="view-source", data="", inset=0x0) at ../../../../src/frontends/qt4/GuiView.cpp:4298 -- Enrico