Assertion in GuiFontLoader when doing undo on master after "replace all"

Scott Kostyshak skostysh at lyx.org
Wed Nov 25 14:40:24 UTC 2020


While experimenting with undo/redo after a "replace all" with Advanced
find, I received an assertion. I think the cursor was in the "Find" work
area. Unfortunately, I cannot reproduce. The assertion and terminal (not
GDB) backtrace is attached.

Scott
-------------- next part --------------
support/lassert.cpp (52): ASSERTION false VIOLATED IN /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiFontLoader.cpp:132
(  1) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::doAssertWithCallstack(bool)
(  2) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::doAssert(char const*, char const*, long)
(  3) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx(+0x17a4e76) [0x5596bb7d7e76]
(  4) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::FontLoader::metrics(lyx::FontInfo const&)
(  5) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::theFontMetrics(lyx::FontInfo const&)
(  6) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::theFontMetrics(lyx::Font const&)
(  7) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::Row::add(long, wchar_t, lyx::Font const&, lyx::Change const&)
(  8) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::TextMetrics::breakRow(lyx::Row&, int) const
(  9) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::TextMetrics::redoParagraph(long, bool)
( 10) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::BufferView::updateMetrics(lyx::Update::flags&)
( 11) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::BufferView::processUpdateFlags(lyx::Update::flags)
( 12) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::GuiApplication::updateCurrentView(lyx::FuncRequest const&, lyx::DispatchResult&)
( 13) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::GuiApplication::dispatch(lyx::FuncRequest const&)
( 14) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::dispatch(lyx::FuncRequest const&)
( 15) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::GuiApplication::processFuncRequest(lyx::FuncRequest const&)
( 16) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::GuiApplication::processKeySym(lyx::KeySymbol const&, lyx::KeyModifier)
( 17) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::GuiWorkArea::processKeySym(lyx::KeySymbol const&, lyx::KeyModifier)
( 18) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx(+0x1802f93) [0x5596bb835f93]
( 19) /lib/x86_64-linux-gnu/libQt5Core.so.5: QMetaObject::activate(QObject*, int, int, void**)
( 20) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::CompressorProxy::signal(lyx::KeySymbol, lyx::KeyModifier)
( 21) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::CompressorProxy::slot(lyx::KeySymbol, lyx::KeyModifier, bool)
( 22) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx(+0x180367e) [0x5596bb83667e]
( 23) /lib/x86_64-linux-gnu/libQt5Core.so.5: QObject::event(QEvent*)
( 24) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: QApplicationPrivate::notify_helper(QObject*, QEvent*)
( 25) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: QApplication::notify(QObject*, QEvent*)
( 26) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::GuiApplication::notify(QObject*, QEvent*)
( 27) /lib/x86_64-linux-gnu/libQt5Core.so.5: QCoreApplication::notifyInternal2(QObject*, QEvent*)
( 28) /lib/x86_64-linux-gnu/libQt5Core.so.5: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
( 29) /lib/x86_64-linux-gnu/libQt5Core.so.5: /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2de037) [0x7fbc9d832037]
( 30) /lib/x86_64-linux-gnu/libglib-2.0.so.0: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x27d) [0x7fbc9cf038bd]
( 31) /lib/x86_64-linux-gnu/libglib-2.0.so.0: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x51b40) [0x7fbc9cf03b40]
( 32) /lib/x86_64-linux-gnu/libglib-2.0.so.0: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x33) [0x7fbc9cf03be3]
( 33) /lib/x86_64-linux-gnu/libQt5Core.so.5: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
( 34) /lib/x86_64-linux-gnu/libQt5Core.so.5: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
( 35) /lib/x86_64-linux-gnu/libQt5Core.so.5: QCoreApplication::exec()
( 36) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::frontend::GuiApplication::exec()
( 37) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: lyx::LyX::exec(int&, char**)
( 38) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx(main+0x70) [0x5596bb4665b0]
( 39) /lib/x86_64-linux-gnu/libc.so.6: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fbc9d0151e3]
( 40) /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx: /home/scott/lyxbuilds/master/CMakeBuild/bin/lyx(_start+0x2e) [0x5596baf4b79e]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201125/fc833ac6/attachment.asc>


More information about the lyx-devel mailing list