Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.9, 6.3.0
-
Windows
Description
When using simple QML TextEdit and pasting a lot of lines of text to it, memory consumption jumps by huge margin and this memory is never freed. When pasting text to the TextEdit and then removing that said text, the memory usage does drop maybe 10-20%, but rest of it is never freed.
It seems like the dimensions of the text have an effect on this; if you paste 200 lines of single "a" letter, and then go to the first line and add 1 "a" to that first line, almost 300kb of memory is allocated (for each new single added letter).
Reproduce steps:
- Run attached sample
- Observe memory usage
- Click the add 200 lines button
- Observe memory usage again
- Enter letters one by one to any line, observing the memory usage while doing it
Expected: - Memory usage stays somewhat steady as only one letter is being added
Actual: - 100-300kb of memory is allocated per letter
Attachments
Issue Links
- duplicates
-
QTBUG-95329 QML TextEdit leaks memory
- Reported
- relates to
-
QTBUG-107214 QML Text Memory leak
- Closed
- resulted in
-
QTBUG-105728 REG: TextArea & TextEdit breaks when selecting text with mouse
- Closed
-
QTBUG-105208 REG: Selecting text inside a TextEdit causes existing lines to disappear and empty lines to appear.
- Closed