Hello, I would like to report that LyX crashes with SIGSEGV when copying a cross reference from a "labeled list" or "description" layout on LyX 2.4.0 beta 5.
Environment: I compiled LyX 2.4.0 beta 5 on Ubuntu 22.04 with Qt6 enabled and my Tex Live install is up to date. Steps to reproduce: 1. Create new document: File > New 2. Insert label: Insert > Label... 3. On a new line, switch layout to "Labeling" or "Description" 4. Insert cross-reference: Insert > Cross-Reference... 5. Try copying this cross-reference Expected result (LyX 2.3.6): The cross-reference is copied to the clipboard. Actual result (LyX 2.4.0 beta 5): LyX crashes with the message "SIGSEGV signal caught!" Log: ``` ( 1) lyx-devel: lyx::frontend::Alert::doError(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, bool) ( 2) lyx-devel: lyx::frontend::Alert::error(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, bool) ( 3) lyx-devel: lyx-devel(+0x4d49c7) [0x561db228f9c7] ( 4) /lib/x86_64-linux-gnu/libc.so.6: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f7669100520] ( 5) lyx-devel: lyx::InsetRef::xhtml[abi:cxx11](lyx::XMLStream&, lyx::OutputParams const&) const ( 6) lyx-devel: lyx::Paragraph::firstWordLyXHTML(lyx::XMLStream&, lyx::OutputParams const&) const ( 7) lyx-devel: lyx-devel(+0x522df7) [0x561db22dddf7] ( 8) lyx-devel: lyx::xhtmlParagraphs(lyx::Text const&, lyx::Buffer const&, lyx::XMLStream&, lyx::OutputParams const&) ( 9) lyx-devel: lyx::Buffer::writeLyXHTMLSource(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, lyx::OutputParams const&, lyx::Buffer::OutputWhat) const ( 10) lyx-devel: lyx-devel(+0x45f751) [0x561db221a751] ( 11) lyx-devel: lyx::cap::copySelection(lyx::Cursor const&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) ( 12) lyx-devel: lyx::cap::copySelection(lyx::Cursor const&) ( 13) lyx-devel: lyx::BufferView::dispatch(lyx::FuncRequest const&, lyx::DispatchResult&) ( 14) lyx-devel: lyx::frontend::GuiView::dispatchToBufferView(lyx::FuncRequest const&, lyx::DispatchResult&) ( 15) lyx-devel: lyx::frontend::GuiView::dispatch(lyx::FuncRequest const&, lyx::DispatchResult&) ( 16) lyx-devel: lyx::frontend::GuiApplication::dispatch(lyx::FuncRequest const&, lyx::DispatchResult&) ( 17) lyx-devel: lyx::frontend::GuiApplication::dispatch(lyx::FuncRequest const&) ( 18) lyx-devel: lyx::frontend::GuiApplication::processKeySym(lyx::KeySymbol const&, unsigned int) ( 19) /lib/x86_64-linux-gnu/libQt6Core.so.6: /lib/x86_64-linux-gnu/libQt6Core.so.6(+0x1ac273) [0x7f76697c7273] ( 20) lyx-devel: lyx::frontend::CompressorProxy::signal(lyx::KeySymbol, unsigned int) ( 21) lyx-devel: lyx::frontend::CompressorProxy::slot(lyx::KeySymbol, unsigned int, bool) ( 22) lyx-devel: lyx-devel(+0x91bcf9) [0x561db26d6cf9] ( 23) /lib/x86_64-linux-gnu/libQt6Core.so.6: QObject::event(QEvent*) ( 24) /lib/x86_64-linux-gnu/libQt6Widgets.so.6: QApplicationPrivate::notify_helper(QObject*, QEvent*) ( 25) lyx-devel: lyx::frontend::GuiApplication::notify(QObject*, QEvent*) ( 26) /lib/x86_64-linux-gnu/libQt6Core.so.6: QCoreApplication::notifyInternal2(QObject*, QEvent*) ( 27) /lib/x86_64-linux-gnu/libQt6Core.so.6: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ( 28) /lib/x86_64-linux-gnu/libQt6Core.so.6: /lib/x86_64-linux-gnu/libQt6Core.so.6(+0x37c637) [0x7f7669997637] ( 29) /lib/x86_64-linux-gnu/libglib-2.0.so.0: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x26b) [0x7f7668fd2d3b] ( 30) /lib/x86_64-linux-gnu/libglib-2.0.so.0: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0xab258) [0x7f7669028258] ( 31) /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) [0x7f7668fd03e3] ( 32) /lib/x86_64-linux-gnu/libQt6Core.so.6: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ( 33) /lib/x86_64-linux-gnu/libQt6Core.so.6: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ( 34) /lib/x86_64-linux-gnu/libQt6Core.so.6: QCoreApplication::exec() ( 35) lyx-devel: lyx::LyX::exec(int&, char**) ( 36) lyx-devel: lyx-devel(main+0x59) [0x561db2124229] ( 37) /lib/x86_64-linux-gnu/libc.so.6: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f76690e7d90] ( 38) /lib/x86_64-linux-gnu/libc.so.6: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f76690e7e40] ( 39) lyx-devel: lyx-devel(_start+0x25) [0x561db2132c65] ``` -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel