This is lyx-build/LyX-2.2.0dev-7416064 (git commit hash 
74160640337b63b1fb21c9690289f0ebb29c0820)

After quit LyX with the cursor at a line containing an icon and restart it I 
get a crash on load of the mentioned LyX file.
I tried to activate malloc debug but this did not help to pin point the 
problem. I cannot interpret the state of the stack trace and of the local 
variables. The ParagraphMetrics instance in TextMetrics::redoParagraph (stack 
frame 4) is corrupt. The call stack is:

(lldb) bt
* thread #1: tid = 0x6e90c1, 0x00000001000ebecc LyX`std::_Rb_tree<lyx::Inset 
const*, std::pair<lyx::Inset const* const, lyx::Dimension>, 
std::_Select1st<std::pair<lyx::Inset const* const, lyx::Dimension> >, 
std::less<lyx::Inset const*>, std::allocator<std::pair<lyx::Inset const* const, 
lyx::Dimension> > >::_M_begin(this=0x00000003d7e79fd0) const + 12 at 
stl_tree.h:482, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
(code=1, address=0x3d7e79fe0)
  * frame #0: 0x00000001000ebecc LyX`std::_Rb_tree<lyx::Inset const*, 
std::pair<lyx::Inset const* const, lyx::Dimension>, 
std::_Select1st<std::pair<lyx::Inset const* const, lyx::Dimension> >, 
std::less<lyx::Inset const*>, std::allocator<std::pair<lyx::Inset const* const, 
lyx::Dimension> > >::_M_begin(this=0x00000003d7e79fd0) const + 12 at 
stl_tree.h:482
    frame #1: 0x0000000100297c50 LyX`std::_Rb_tree<lyx::Inset const*, 
std::pair<lyx::Inset const* const, lyx::Dimension>, 
std::_Select1st<std::pair<lyx::Inset const* const, lyx::Dimension> >, 
std::less<lyx::Inset const*>, std::allocator<std::pair<lyx::Inset const* const, 
lyx::Dimension> > >::find(this=0x00000003d7e79fd0, __k=0x00007fff5fbfa638) 
const + 32 at stl_tree.h:1395
    frame #2: 0x0000000100296b8d LyX`std::map<lyx::Inset const*, 
lyx::Dimension, std::less<lyx::Inset const*>, 
std::allocator<std::pair<lyx::Inset const* const, lyx::Dimension> > 
>::find(this=0x00000003d7e79fd0, __x=0x00007fff5fbfa638) const + 29 at 
stl_map.h:557
    frame #3: 0x0000000100295bde 
LyX`lyx::ParagraphMetrics::insetDimension(this=0x00000003d7e79f98, 
inset=0x00000003938fbf60) const + 46 at ParagraphMetrics.cpp:124
    frame #4: 0x00000001002fff11 
LyX`lyx::TextMetrics::redoParagraph(this=0x00000003d7e77f48, pit=0) + 2385 at 
TextMetrics.cpp:449
    frame #5: 0x00000001003009ca 
LyX`lyx::TextMetrics::metrics(this=0x00000003d7e77f48, mi=0x00007fff5fbfb540, 
dim=0x00007fff5fbfb610, min_width=0) + 250 at TextMetrics.cpp:200
    frame #6: 0x00000001005dafd8 
LyX`lyx::InsetText::metrics(this=0x000000039365fee0, mi=0x00007fff5fbfb540, 
dim=0x00007fff5fbfb610) const + 232 at InsetText.cpp:206
    frame #7: 0x00000001004d55bf 
LyX`lyx::InsetCollapsable::metrics(this=0x000000039365fee0, 
mi=0x00007fff5fbfb540, dim=0x00007fff5fbfb610) const + 479 at 
InsetCollapsable.cpp:199
    frame #8: 0x00000001002ffecf 
LyX`lyx::TextMetrics::redoParagraph(this=0x00000003d5d6df48, pit=162) + 2319 at 
TextMetrics.cpp:448
    frame #9: 0x00000001000d4a13 
LyX`lyx::BufferView::updateMetrics(this=0x00000003af232fe0) + 963 at 
BufferView.cpp:2709
    frame #10: 0x000000010089ab55 
LyX`lyx::frontend::GuiWorkArea::redraw(this=0x00000003ae582fc0, 
update_metrics=true) + 181 at GuiWorkArea.cpp:475
    frame #11: 0x000000010089ae8c LyX`non-virtual thunk to 
lyx::frontend::GuiWorkArea::redraw(this=0x00000003ae582ff0, 
update_metrics=true) + 44 at GuiWorkArea.cpp:501
    frame #12: 0x00000001005ed525 
LyX`lyx::frontend::WorkAreaManager::redrawAll(this=0x00000003362aeff0, 
update_metrics=true) + 117 at WorkAreaManager.cpp:39
    frame #13: 0x0000000100035cce 
LyX`lyx::Buffer::changed(this=0x000000031f804fc0, update_metrics=true) const + 
78 at Buffer.cpp:625
    frame #14: 0x00000001000d61b2 
LyX`lyx::BufferView::showCursor(this=0x00000003af232fe0, 
dit=0x00000003af234b58, recenter=false, update=true) + 114 at BufferView.cpp:856
    frame #15: 0x00000001000d437c 
LyX`lyx::BufferView::showCursor(this=0x00000003af232fe0) + 44 at 
BufferView.cpp:848
    frame #16: 0x00000001000d7155 
LyX`lyx::BufferView::moveToPosition(this=0x00000003af232fe0, bottom_pit=163, 
bottom_pos=17, top_id=0, top_pos=0) + 1173 at BufferView.cpp:813
    frame #17: 0x0000000100866eb4 
LyX`lyx::frontend::GuiView::setBuffer(this=0x0000000293e5dfa0, 
newBuffer=0x000000031f804fc0) + 500 at GuiView.cpp:1504
    frame #18: 0x000000010086a066 
LyX`lyx::frontend::GuiView::loadDocument(this=0x0000000293e5dfa0, 
filename=0x00007fff5fbfd248, tolastfiles=false) + 598 at GuiView.cpp:2011
    frame #19: 0x000000010062c021 
LyX`lyx::frontend::GuiApplication::dispatch(this=0x000000010c3a4fd0, 
cmd=0x0000000317fa1a70, dr=0x00007fff5fbfd3d0) + 7233 at GuiApplication.cpp:1664
    frame #20: 0x000000010062876c 
LyX`lyx::frontend::GuiApplication::dispatch(this=0x000000010c3a4fd0, 
cmd=0x0000000317fa1a70) + 220 at GuiApplication.cpp:1364
    frame #21: 0x0000000100628a6f LyX`non-virtual thunk to 
lyx::frontend::GuiApplication::dispatch(this=0x000000010c3a4fe0, 
cmd=0x0000000317fa1a70) + 47 at GuiApplication.cpp:1370
    frame #22: 0x00000001002361d4 LyX`lyx::dispatch(action=0x0000000317fa1a70) 
+ 84 at LyX.cpp:1360
    frame #23: 0x00000001005edfd0 
LyX`lyx::frontend::Action::action(this=0x00000003181a9fe0) + 32 at Action.cpp:65
    frame #24: 0x00000001005ee0d6 
LyX`lyx::frontend::Action::qt_static_metacall(_o=0x00000003181a9fe0, 
_c=InvokeMetaMethod, _id=1, _a=0x00007fff5fbfd8b0) + 118 at moc_Action.cpp:77
    frame #25: 0x0000000101f30f3b 
QtCore_debug`QMetaObject::activate(sender=0x00000003181a9fe0, signalOffset=3, 
local_signal_index=1, argv=0x00007fff5fbfd8b0) + 2939 at qobject.cpp:3681
    frame #26: 0x0000000101f303ad 
QtCore_debug`QMetaObject::activate(sender=0x00000003181a9fe0, 
m=0x0000000103e52770, local_signal_index=1, argv=0x00007fff5fbfd8b0) + 61 at 
qobject.cpp:3547
    frame #27: 0x000000010375be9b 
QtWidgets_debug`QAction::triggered(this=0x00000003181a9fe0, _t1=false) + 75 at 
moc_qaction.cpp:359
    frame #28: 0x000000010375bcd5 
QtWidgets_debug`QAction::activate(this=0x00000003181a9fe0, event=Trigger) + 405 
at qaction.cpp:1175
    frame #29: 0x000000010375da3a 
QtWidgets_debug`QAction::trigger(this=0x00000003181a9fe0) + 26 at qaction.h:185
    frame #30: 0x000000010375c1fd 
QtWidgets_debug`QAction::qt_static_metacall(_o=0x00000003181a9fe0, 
_c=InvokeMetaMethod, _id=5, _a=0x00007fff5fbfdd10) + 205 at moc_qaction.cpp:204
    frame #31: 0x0000000101f30f3b 
QtCore_debug`QMetaObject::activate(sender=0x0000000318231f80, signalOffset=3, 
local_signal_index=0, argv=0x0000000000000000) + 2939 at qobject.cpp:3681
    frame #32: 0x0000000101f303ad 
QtCore_debug`QMetaObject::activate(sender=0x0000000318231f80, 
m=0x0000000102deabe0, local_signal_index=0, argv=0x0000000000000000) + 61 at 
qobject.cpp:3547
    frame #33: 0x0000000102bfc0fb 
QtGui_debug`QPlatformMenuItem::activated(this=0x0000000318231f80) + 43 at 
moc_qplatformmenu.cpp:132
    frame #34: 0x000000010cc61828 libqcocoa_debug.dylib`-[QCocoaMenuDelegate 
itemFired:](self=0x00000002a0d5fff0, _cmd=0x000000010ccf75bf, 
item=0x000000031824dfa0) + 168 at qcocoamenu.mm:131
    frame #35: 0x00007fff895c2959 AppKit`-[NSApplication sendAction:to:from:] + 
342
    frame #36: 0x00007fff896f836c AppKit`-[NSMenuItem _corePerformAction] + 406
    frame #37: 0x00007fff896f805a AppKit`-[NSCarbonMenuImpl 
performActionWithHighlightingForItemAtIndex:] + 133
    frame #38: 0x00007fff893e520f AppKit`-[NSMenu 
_internalPerformActionForItemAtIndex:] + 36
    frame #39: 0x00007fff893e5131 AppKit`-[NSCarbonMenuImpl 
_carbonCommandProcessEvent:handlerCallRef:] + 289
    frame #40: 0x00007fff896f1165 AppKit`NSSLMMenuEventHandler + 342
    frame #41: 0x00007fff8a61ed1a 
HIToolbox`DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, 
HandlerCallRec*) + 1206
    frame #42: 0x00007fff8a61e1e9 
HIToolbox`SendEventToEventTargetInternal(OpaqueEventRef*, 
OpaqueEventTargetRef*, HandlerCallRec*) + 410
    frame #43: 0x00007fff8a633fc9 HIToolbox`SendEventToEventTarget + 40
    frame #44: 0x00007fff8a66aca9 HIToolbox`SendHICommandEvent(unsigned int, 
HICommand const*, unsigned int, unsigned int, unsigned char, void const*, 
OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 443
    frame #45: 0x00007fff8a60fa21 
HIToolbox`SendMenuCommandWithContextAndModifiers + 59
    frame #46: 0x00007fff8a60f9d3 HIToolbox`SendMenuItemSelectedEvent + 254
    frame #47: 0x00007fff8a60f85f HIToolbox`FinishMenuSelection(SelectionData*, 
MenuResult*, MenuResult*) + 94
    frame #48: 0x00007fff8a5eb8bb HIToolbox`MenuSelectCore(MenuData*, Point, 
double, unsigned int, OpaqueMenuRef**, unsigned short*) + 605
    frame #49: 0x00007fff8a5eaec8 HIToolbox`_HandleMenuSelection2 + 565
    frame #50: 0x00007fff895b08c6 AppKit`_NSHandleCarbonMenuEvent + 245
    frame #51: 0x00007fff894d2a9f AppKit`_DPSNextEvent + 2073
    frame #52: 0x00007fff894d1df2 AppKit`-[NSApplication 
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
    frame #53: 0x00007fff894c91a3 AppKit`-[NSApplication run] + 517
    frame #54: 0x000000010cc5a4c3 
libqcocoa_debug.dylib`QCocoaEventDispatcher::processEvents(this=0x00000001cbe24ff0,
 flags=QEventLoop::ProcessEventsFlags at 0x00007fff5fbff200) + 1155 at 
qcocoaeventdispatcher.mm:426
    frame #55: 0x0000000101ed518a 
QtCore_debug`QEventLoop::processEvents(this=0x00007fff5fbff390, 
flags=QEventLoop::ProcessEventsFlags at 0x00007fff5fbff238) + 122 at 
qeventloop.cpp:136
    frame #56: 0x0000000101ed53c1 
QtCore_debug`QEventLoop::exec(this=0x00007fff5fbff390, 
flags=QEventLoop::ProcessEventsFlags at 0x00007fff5fbff308) + 545 at 
qeventloop.cpp:212
    frame #57: 0x0000000101eda0f9 QtCore_debug`QCoreApplication::exec() + 393 
at qcoreapplication.cpp:1188
    frame #58: 0x0000000102781d76 QtGui_debug`QGuiApplication::exec() + 22 at 
qguiapplication.cpp:1483
    frame #59: 0x0000000103769549 QtWidgets_debug`QApplication::exec() + 9 at 
qapplication.cpp:2744
    frame #60: 0x0000000100633dc9 
LyX`lyx::frontend::GuiApplication::exec(this=0x000000010c3a4fd0) + 57 at 
GuiApplication.cpp:2338
    frame #61: 0x0000000100633dec LyX`non-virtual thunk to 
lyx::frontend::GuiApplication::exec(this=0x000000010c3a4fe0) + 28 at 
GuiApplication.cpp:2339
    frame #62: 0x000000010022f5b1 LyX`lyx::LyX::exec(this=0x00007fff5fbff660, 
argc=0x00007fff5fbff678, argv=0x00007fff5fbff6a0) + 1841 at LyX.cpp:359
    frame #63: 0x00000001003763e6 LyX`main(argc=1, argv=0x00007fff5fbff6a0) + 
86 at main.cpp:42
(lldb) 

Stephan

Reply via email to