https://bugs.kde.org/show_bug.cgi?id=482367
--- Comment #9 from shivar...@gmail.com --- I played a little more with gdb and discovered the following. The infinite loop happens in QTextDocumentLayoutPrivate::layoutBlock, in the "while (1)" block at line 3477: https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/text/qtextdocumentlayout.cpp?h=6.6.2 Here, tl->createLine is called. >From QTextLayout::createLine, on lines 802/803, https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/text/qtextlayout.cpp?h=6.6.2 I can see that the "from" field is always 0. So, the incoming text is never consumed, and an endless number of 0-length QTextLines are produced. This is where all the memory is consumed. With the help of gdb, I dumped the problematic html payload which is passed to QTextEdit::setHtml (it is the "reply" formatted html string prepared by kmail in response to the mail we're replying to) and created a test program populating a QTextLine with the same payload. The program worked correctly, so I don't really understand what is going on here. Maybe some layout settings from kmail are not handled correctly by Qt 6 code, who knows. A dev eye would be really appreciated at this point. At a first glance what kmail is doing seems correct to me. -- You are receiving this mail because: You are watching all bug changes.