https://bugs.kde.org/show_bug.cgi?id=479983
Bug ID: 479983 Summary: Konsole crashes when selecting unicode glyphs (emoji) Classification: Applications Product: konsole Version: 24.01.90 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: copy-paste Assignee: konsole-de...@kde.org Reporter: o...@geek.co.il Target Milestone: --- Created attachment 165001 --> https://bugs.kde.org/attachment.cgi?id=165001&action=edit DrKonqi crash data, that I couldn't get to submit automatically due to an error response from bugs.kde.org SUMMARY Konsole version 24.01.95 installed from Neon testing. I have a terminal application that outputs some textual report that has unicode glyphs at the end of each line ("emoji"). When I try to use the mouse to select the text, when I get to the part that selects the emoji, Konsole crashes. I will attach a sample output shortly, as it cannot be posted in the description because bugs.kde.org thinks it is spam, for some weird reason. So far I reproduced the crash by either: - double clicking a word at the beginning, then swiping the mouse right to get to the end of the line - when it gets to the last work, before it shows it selected it (and I'm assuming also the emoji that is not separated by space), Konsole crashes. The backtrace for that is attached here. - triple clicking a line to select the entire line - Konsole markes the whole line as selected, then crashes. I can generate a new backtrace for that if you want. The crash can be reproduced every time. STEPS TO REPRODUCE 1. Output text with some emoji in it to Konsole, for example by storing the above output snippet in a file, then `cat`ing it. 2. Use the mouse to select the text that contains the emoji. OBSERVED RESULT Konsole crashes EXPECTED RESULT Konsole should not crash SOFTWARE/OS VERSIONS Qt Version: 6.6.1 Frameworks Version: 5.249.0 Operating System: Linux 6.5.0-14-generic x86_64 Windowing System: Wayland Distribution: KDE neon Testing Edition ADDITIONAL INFORMATION I have BiDi enabled in Konsole, I don't know if it is related, but its about glyphs and rendering, so 🤷 The relevant part of the crash backtrace is probably this: ---8<--- #11 0x00007f97c3cd86f3 in qAbort () at ./src/corelib/global/qglobal.cpp:161 #12 0x00007f97c3cd4055 in qt_message_fatal<QString&> (message=..., context=...) at ./src/corelib/global/qlogging.cpp:2003 #13 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=..., msg=<optimized out>, ap=ap@entry=0x7fff5daa61e0) at ./src/corelib/global/qlogging.cpp:378 #14 0x00007f97c3cd909f in QMessageLogger::fatal (this=<optimized out>, msg=<optimized out>) at ./src/corelib/global/qlogging.cpp:901 #15 0x00007f97c3ca9261 in qt_assert (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at ./src/corelib/global/qassert.cpp:68 #16 0x00007f97c50875d7 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.95 #17 0x00007f97c508b6ee in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.95 #18 0x00007f97c5142144 in Konsole::TerminalDisplay::findWordEnd(QPoint const&) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.95 #19 0x00007f97c5142af1 in Konsole::TerminalDisplay::extendSelection(QPoint const&) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.95 #20 0x00007f97c5142d3c in Konsole::TerminalDisplay::mouseMoveEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.24.01.95 ---8<--- -- You are receiving this mail because: You are watching all bug changes.