[kmail2] [Bug 482367] kmail / kontact eates all my memory during startup and crashes than.

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue Mar 19 08:49:12 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=482367

--- Comment #9 from shivarryn at 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 the assignee for the bug.


More information about the Kdepim-bugs mailing list