Hello Craig, > However, if you switch to the "HTML Source" tab, then Calibre crashes when you > select any text. > Clicking in the tab is fine, but selecting text causes an almost-immediate > crash (sometimes delayed up to a quarter or half second or so).
Thank you. I can reproduce the bug. ---- $ gdb /usr/bin/python3 GNU gdb (Debian 17.1-1) 17.1 (gdb) run /usr/bin/calibre Starting program: /usr/bin/python3 /usr/bin/calibre Thread 1 "GUIPool" received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) where #0 0x0000000000000000 in ??? () #1 0x00007fffedd7e242 in QtWaylandClient::QWaylandClipboard::setMimeData (this=0x14845c0, data=0x1da9960, mode=QClipboard::Selection) at ./src/client/qwaylandclipboard.cpp:90 #2 0x00007ffff2826350 in QWidgetTextControlPrivate::mouseDoubleClickEvent (this=this@entry=0x6174a50, e=e@entry=0x7fffffffb550, button=<optimized out>, pos=..., modifiers=..., modifiers@entry=..., buttons=..., buttons@entry=..., globalPos=...) at ./src/widgets/widgets/qwidgettextcontrol.cpp:1901 #3 0x00007ffff28295bf in QWidgetTextControl::processEvent (this=<optimized out>, e=0x7fffffffb550, transform=..., contextWidget=<optimized out>) at ./src/gui/kernel/qevent.h:116 #4 0x00007ffff281dbdb in QWidgetTextControl::processEvent (this=0x6174a20, e=0x7fffffffb550, coordinateOffset=<optimized out>, contextWidget=0x6171210) at ./src/widgets/widgets/qwidgettextcontrol.cpp:994 #5 0x00007ffff27f7744 in QPlainTextEditPrivate::sendControlEvent (this=<optimized out>, e=0x7fffffffb550) at ./src/widgets/widgets/qplaintextedit_p.h:108 #6 QPlainTextEdit::mouseDoubleClickEvent (this=<optimized out>, e=0x7fffffffb550) at ./src/widgets/widgets/qplaintextedit.cpp:2089 ---- It seems segmentation fault inside Qt, so it might be a bug of PyQt or Qt. It seems the bug also happens on Frescobaldi v4. * Frescobaldi crashes when selecting text [Arch Linux] #2126 https://github.com/frescobaldi/frescobaldi/issues/2126 And the Frescobaldi developers reports the bug to upstream. * segfault using PyQt6 version 6.10.1 https://www.riverbankcomputing.com/pipermail/pyqt/2025-December/046406.html -- YOKOTA Hiroshi

