To reproduce: 1. save both attached files to the same directory. 2. open includer.24.lyx. 3. open shared-lyx-macros.24.lyx in a *different* instance of LyX, and change the TeX of the first macro from "P" to "Pr". And save. 4. go back to the session of LyX from step (2), click on the now-visible tab "shared-lyx-macros.24" and click "Reload".
I usually get the assertion right away. Occasionally, I need to scroll up to trigger it. Result I get the following: support/lassert.cpp (57): ASSERTION false VIOLATED IN /home/scott/lyxbuilds/master-master/repo/src/CursorSlice.cpp:225 I attach the backtrace. Can anyone reproduce? Scott
includer.24.lyx
Description: application/lyx
shared-lyx-macros.24.lyx
Description: application/lyx
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0)
at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (threadid=<optimized out>, signo=6) at
./nptl/pthread_kill.c:89
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at
./nptl/pthread_kill.c:100
#3 0x00007ffff5c4579e in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#4 0x00007ffff5c288cd in __GI_abort () at ./stdlib/abort.c:73
#5 0x0000555555926cdb in lyx::lyx_exit (exit_code=1) at
/home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:262
#6 0x00005555562125a2 in lyx::doAssertWithCallstack (value=false) at
/home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp:50
#7 0x0000555556212c6e in lyx::doAssert (expr=0x55555626b791 "false",
file=0x555556238712
"/home/scott/lyxbuilds/master-master/repo/src/CursorSlice.cpp", line=225)
at /home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp:59
#8 0x000055555584802a in lyx::operator< (p=..., q=...) at
/home/scott/lyxbuilds/master-master/repo/src/CursorSlice.cpp:225
#9 0x000055555574e6ca in lyx::operator< (p=..., q=...) at
/home/scott/lyxbuilds/master-master/repo/src/DocIterator.h:342
#10 0x000055555577a1f1 in std::less<lyx::DocIterator>::operator()
(this=0x555557b50cd0, __x=..., __y=...)
at
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_function.h:405
#11 0x000055555577a130 in std::_Rb_tree<lyx::DocIterator,
std::pair<lyx::DocIterator const, lyx::Buffer::Impl::ScopeMacro>,
std::_Select1st<std::pair<lyx::DocIterator const,
lyx::Buffer::Impl::ScopeMacro> >, std::less<lyx::DocIterator>,
std::allocator<std::pair<lyx::DocIterator const, lyx::Buffer::Impl::ScopeMacro>
> >::_M_lower_bound
(this=0x555557b50cd0, __x=0x555556b09380, __y=0x555557b50cd8, __k=...) at
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_tree.h:2604
#12 0x000055555577a0ce in std::_Rb_tree<lyx::DocIterator,
std::pair<lyx::DocIterator const, lyx::Buffer::Impl::ScopeMacro>,
std::_Select1st<std::pair<lyx::DocIterator const,
lyx::Buffer::Impl::ScopeMacro> >, std::less<lyx::DocIterator>,
std::allocator<std::pair<lyx::DocIterator const, lyx::Buffer::Impl::ScopeMacro>
> >::lower_bound (this=0x555557b50cd0, __k=...)
at
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_tree.h:1900
#13 0x000055555577a05d in std::map<lyx::DocIterator,
lyx::Buffer::Impl::ScopeMacro, std::less<lyx::DocIterator>,
std::allocator<std::pair<lyx::DocIterator const, lyx::Buffer::Impl::ScopeMacro>
> >::lower_bound (this=0x555557b50cd0, __x=...) at
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_map.h:1374
#14 0x000055555574e54b in lyx::greatest_below<std::map<lyx::DocIterator,
lyx::Buffer::Impl::ScopeMacro, std::less<lyx::DocIterator>,
std::allocator<std::pair<lyx::DocIterator const, lyx::Buffer::Impl::ScopeMacro>
> > const> (m=std::map with 2 elements = {...}, x=...) at
/home/scott/lyxbuilds/master-master/repo/src/Buffer.cpp:3744
#15 0x0000555555739c7b in lyx::Buffer::Impl::getBufferMacro
(this=0x55555777b500, name=L"omSupp", pos=...) at
/home/scott/lyxbuilds/master-master/repo/src/Buffer.cpp:3771
#16 0x000055555573a152 in lyx::Buffer::getMacro (this=0x5555577864c0,
name=L"omSupp", pos=..., global=true) at
/home/scott/lyxbuilds/master-master/repo/src/Buffer.cpp:3838
#17 0x0000555555b57e79 in lyx::MacroContext::get (this=0x7fffffff39a0,
name=L"omSupp") at
/home/scott/lyxbuilds/master-master/repo/src/mathed/MacroTable.cpp:281
#18 0x0000555555b33abd in lyx::InsetMathMacroTemplate::metrics
(this=0x5555584c91c0, mi=..., dim=...) at
/home/scott/lyxbuilds/master-master/repo/src/mathed/InsetMathMacroTemplate.cpp:562
#19 0x0000555555a12674 in lyx::TextMetrics::redoInset (this=0x5555579474b8,
elt=..., parPos=..., w=1804) at
/home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:1118
#20 0x0000555555a1076c in lyx::TextMetrics::breakParagraph
(this=0x5555579474b8, bigrow=...) at
/home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:1231
#21 0x0000555555a0a78c in lyx::TextMetrics::redoParagraph (this=0x5555579474b8,
pit=1, align_rows=false) at
/home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:510
#22 0x0000555555a0bb9b in lyx::TextMetrics::metrics (this=0x5555579474b8,
mi=..., dim=..., min_width=0) at
/home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:302
#23 0x0000555555d92e72 in lyx::InsetText::metrics (this=0x5555584c9550, mi=...,
dim=...) at
/home/scott/lyxbuilds/master-master/repo/src/insets/InsetText.cpp:229
#24 0x0000555555c2ff14 in lyx::InsetCollapsible::metrics (this=0x5555584c9550,
mi=..., dim=...) at
/home/scott/lyxbuilds/master-master/repo/src/insets/InsetCollapsible.cpp:256
#25 0x0000555555a12674 in lyx::TextMetrics::redoInset (this=0x555557bb5818,
elt=..., parPos=..., w=1812) at
/home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:1118
#26 0x0000555555a1076c in lyx::TextMetrics::breakParagraph
(this=0x555557bb5818, bigrow=...) at
/home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:1231
#27 0x0000555555a0a78c in lyx::TextMetrics::redoParagraph (this=0x555557bb5818,
pit=14, align_rows=true) at
/home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:510
#28 0x0000555555a0b90d in lyx::TextMetrics::updateMetrics (this=0x555557bb5818,
anchor_pit=0, anchor_ypos=53, bv_height=932)
at /home/scott/lyxbuilds/master-master/repo/src/TextMetrics.cpp:261
#29 0x00005555557caac4 in lyx::BufferView::updateMetrics (this=0x5555577716b0,
force=true) at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:3390
#30 0x00005555557de93e in lyx::BufferView::updateMetrics (this=0x5555577716b0)
at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:3350
#31 0x0000555555e6ac98 in lyx::frontend::GuiWorkArea::scheduleRedraw
(this=0x555556aa44f0, update_metrics=true)
at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:372
#32 0x0000555555dc47ae in lyx::frontend::WorkAreaManager::redrawAll
(this=0x5555577f0b60, update_metrics=true)
at
/home/scott/lyxbuilds/master-master/repo/src/frontends/WorkAreaManager.cpp:41
#33 0x000055555571fa36 in lyx::Buffer::changed (this=0x5555577864c0,
update_metrics=true) at
/home/scott/lyxbuilds/master-master/repo/src/Buffer.cpp:697
#34 0x00005555557460ae in lyx::Buffer::reload (this=0x5555577864c0) at
/home/scott/lyxbuilds/master-master/repo/src/Buffer.cpp:5599
#35 0x0000555555e457a2 in lyx::frontend::GuiView::reloadBuffer
(this=0x555556e81840, buf=...) at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiView.cpp:4144
#36 0x0000555555e4da4c in lyx::frontend::GuiView::dispatch
(this=0x555556e81840, cmd=..., dr=...) at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiView.cpp:4941
--Type <RET> for more, q to quit, c to continue without paging--
#37 0x0000555555dd800f in lyx::frontend::GuiApplication::dispatch
(this=0x55555667ba20, cmd=..., dr=...) at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:2294
#38 0x0000555555dd1b5b in lyx::frontend::GuiApplication::dispatch
(this=0x55555667ba20, cmd=...) at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:1588
#39 0x000055555592e583 in lyx::dispatch (action=...) at
/home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:1479
#40 0x0000555555e73a51 in lyx::frontend::GuiWorkAreaContainer::dispatch
(this=0x555557991120, f=...) at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:2286
#41 0x0000555555e73ad8 in lyx::frontend::GuiWorkAreaContainer::reload
(this=0x555557991120) at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:2292
#42 0x0000555555e74b48 in
lyx::frontend::GuiWorkAreaContainer::qt_static_metacall (_o=0x555557991120,
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffb2a0)
at
/home/scott/lyxbuilds/master-master/CMakeBuild/src/frontends/qt/moc_GuiWorkArea.cpp:873
#43 0x00007ffff65e228a in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#44 0x00007ffff78d2504 in QAbstractButton::clicked(bool) () at
/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#45 0x00007ffff78c95af in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#46 0x00007ffff78c9882 in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#47 0x00007ffff78d6efd in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#48 0x00007ffff77f295c in QWidget::event(QEvent*) () at
/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#49 0x00007ffff77980c8 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#50 0x00007ffff779e406 in QApplication::notify(QObject*, QEvent*) () at
/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#51 0x0000555555ddec61 in lyx::frontend::GuiApplication::notify
(this=0x55555667ba20, receiver=0x555557a8de60, event=0x7fffffffbb80)
at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:3046
#52 0x00007ffff65813f0 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt6Core.so.6
#53 0x00007ffff7791ff6 in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#54 0x00007ffff780aaa1 in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#55 0x00007ffff780e06f in ??? () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#56 0x00007ffff77980c8 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#57 0x0000555555ddec61 in lyx::frontend::GuiApplication::notify
(this=0x55555667ba20, receiver=0x5555570631f0, event=0x7fffffffc2e0)
at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:3046
#58 0x00007ffff65813f0 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt6Core.so.6
#59 0x00007ffff6dd91bf in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
() at /lib/x86_64-linux-gnu/libQt6Gui.so.6
#60 0x00007ffff6e3e60c in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() at /lib/x86_64-linux-gnu/libQt6Gui.so.6
#61 0x00007ffff7286454 in ??? () at /lib/x86_64-linux-gnu/libQt6Gui.so.6
#62 0x00007ffff62f7de2 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#63 0x00007ffff63691f8 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#64 0x00007ffff62f8223 in g_main_context_iteration () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#65 0x00007ffff67e6c63 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /lib/x86_64-linux-gnu/libQt6Core.so.6
#66 0x00007ffff658bd5b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/lib/x86_64-linux-gnu/libQt6Core.so.6
#67 0x00007ffff6584f7e in QCoreApplication::exec() () at
/lib/x86_64-linux-gnu/libQt6Core.so.6
#68 0x0000555555ddd503 in lyx::frontend::GuiApplication::exec
(this=0x55555667ba20) at
/home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:2809
#69 0x000055555592761d in lyx::LyX::exec (this=0x7fffffffca90,
argc=@0x7fffffffcaa8: 2, argv=0x7fffffffcbd8) at
/home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:376
#70 0x0000555555aafea3 in main (argc=2, argv=0x7fffffffcbd8) at
/home/scott/lyxbuilds/master-master/repo/src/main.cpp:55
(gdb)
signature.asc
Description: PGP signature
-- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
