Bug 424199 - Cannot replace more than 300,000 characters if I do memory will overflow
Summary: Cannot replace more than 300,000 characters if I do memory will overflow
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: search (show other bugs)
Version: Git
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-14 14:29 UTC by shann
Modified: 2021-01-14 10:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.04


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shann 2020-07-14 14:29:06 UTC
SUMMARY


STEPS TO REPRODUCE
1. download this dictionary https://www.sogou.com/labs/resource/w.php or others dictionary
2. try to research "	" to replace to "-"
3. can't replace more than 300,000 characters and running out of memory

OBSERVED RESULT

Cannot replace characters more than 300,000 if I do memory will overflow

EXPECTED RESULT

work like kwrite do this

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.16-1-MANJARO
OS Type: 64-bit
Processors: 4 × Intel® Core™ i3-9100F CPU @ 3.60GHz
Memory: 7.7 GiB

ADDITIONAL INFORMATION

kwrite can do this and not running out of memory
Comment 1 Justin Zobel 2020-10-30 03:00:55 UTC
Confirmed on git master, kwrite takes about 5 seconds to process all 300,000+ replacements and uses minimal RAM

Running on kate I gave up after about 2 minutes and it was still consuming RAM, 8GB and counting.
Comment 2 Bug Janitor Service 2020-12-15 17:42:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/137
Comment 3 Waqar Ahmed 2021-01-14 10:44:00 UTC
This has been fixed with https://invent.kde.org/utilities/kate/-/merge_requests/142